[ 
https://issues.apache.org/jira/browse/AMBARI-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416781#comment-13416781
 ] 

vitthal (Suhas) Gogate commented on AMBARI-641:
-----------------------------------------------

Sorry Hitesh, did not see your comment before committing... actually I checked 
the php_uname and PHP_OS constant, although the name of the os they return on 
SLES didn't look good, so wasn't sure if it is useful. 

Here is what I get on SLES

echo php_uname();
Linux ip-10-68-107-124 2.6.32.46-0.3-ec2 #1 SMP 2011-09-29 17:49:31 +0200 x86_64

echo PHP_OS;
Linux

Although agree we may need something better to check for OS than specific file 
existence :) 
 
                
> change the nagios status.data file location according to platform
> -----------------------------------------------------------------
>
>                 Key: AMBARI-641
>                 URL: https://issues.apache.org/jira/browse/AMBARI-641
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: vitthal (Suhas) Gogate
>            Assignee: vitthal (Suhas) Gogate
>             Fix For: 0.9.0
>
>         Attachments: AMBARI-641.patch
>
>
> Nagios has status.dat file that is read by nagios_alerts.php script in 
> monitoring dashboard nagios addons component to display the nagios alerts on 
> the dashboard. It should change the path of this file depending upon the 
> platform e.g. on redhat/centos it is /var/nagios/status.dat  vs on SLES it is 
> /var/lib/nagios/status.dat 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to