Problems with nagios.cmd

Andreas Koch a.koch at eurodata.de
Mon Dec 27 09:16:18 CET 2004


Hi,

have you nagios whith mysql install?

When you have, check_nagios can not check, if the nagios is running.....

Search in google, and you find a check_nagios for mysql.

Andreas

Am Montag, den 27.12.2004, 19:19 +1100 schrieb adamn at eyemedia.com.au:
> 
> Hi all,
> 
> Well I have exhausted my google options and thought I best put this to
> the mailing list.
> 
> I'm running Fedora Core 3 with Apache/2.0.5 (Default RPM)...
> 
> It took me a while to get the cgi's working (for those that have had
> problems I had to do this to get the cgi's working with suexec and
> Apache 2 on Fedora)
> chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/  
> chcon -R -t httpd_sys_content_t /usr/local/nagios/share/ 
> After running those commands all the cgi's run fine.
> 
> I've set-up authorization on the cgi's so I can submit commands via
> the web, but now I have a problem with the nagios.cmd file. 
> 
> I have used the FAQ's and set all permission's and have tried all
> sorts of combinations.
> This is the error I get.. 
> 
> Error: Could not stat() command file
> '/usr/local/nagios/var/rw/nagios.cmd'! 
> The external command file may be missing, Nagios may not be running,
> and/or Nagios may not be checking external commands. 
> An error occurred while attempting to commit your command for
> processing 
> 
> I'm not sure what/where to go from here to get this working.
> nagios creates/removes the nagios.cmd file as you start and stop
> nagios.
> I have set all the permission's on the /usr/local/nagios/var/rw/ as
> instructed in  http://nagios.sourceforge.net/docs/1_0/commandfile.html
> and restarted apache.
> 
> Is there any logging/output/debug that I can check/run to try and
> figure out why the cgi's cannot
> access /usr/local/nagios/var/rw/nagios.cmd
> 
> Thanks in advance 
> 
> Regards,
> Adam Niedzwiedzki
> 
> c: eye media (aust) pty ltd
> a: suite 301, 685 burke rd, camberwell, victoria, 3124, au, earth
> p: +61 (0)3 8080 5850
> f: +61 (0)3 8080 5840
> m: +61 (0)439 646 941
> w: http://www.eyemedia.com.au
> pgp: http://www.eyemedia.com.au/adamn.asc



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list