nagios can't run nagios_check?

Jack Coates jack at monkeynoodle.org
Thu Nov 21 21:28:28 CET 2002


msec at level 4 sets up /proc so that nagios can't read it. I've fixed
that and nagios can now run the script from the command line
successfully, however the CGI still doesn't see it. any ideas?

thanks,
Jack

On Wed, 2002-11-20 at 21:32, Jack Coates wrote:
> New install, Mandrake 9.0, working with contrib RPMs recompiled from
> src.rpm.
> 
> [jack at missouri jack]$ ls -l /var/log/nagios
> total 24
> drwxr-xr-x    2 nagios   nagios       4096 Nov 20 20:37 archives/
> -rw-rw-r--    1 nagios   nagios          0 Nov 20 20:39 comment.log
> -rw-rw-r--    1 nagios   nagios          0 Nov 20 20:39 downtime.log
> -rw-r--r--    1 nagios   nagios       3694 Nov 20 20:39 nagios.log
> -rw-rw-r--    1 nagios   nagios       4253 Nov 20 21:30 status.log
> -rw-------    1 nagios   nagios       3102 Nov 20 20:39 status.sav
> drwx------    2 nagios   nagios       4096 Nov 19 21:17 tmp/
> [jack at missouri jack]$ sudo /usr/lib/nagios/plugins/check_nagios
> /var/log/nagios/status.log 5 '/usr/sbin/nagios'
> Nagios ok: located 1 process, status log updated 5 seconds ago
> [jack at missouri jack]$ sudo -u nagios
> /usr/lib/nagios/plugins/check_nagios -F /var/log/nagios/status.log -e 5
> -C '/usr/sbin/nagios'
> Could not locate a running Nagios process!
> [jack at missouri jack]$ sudo -u nagios bash
> [nagios at missouri jack]$ tail -2 /var/log/nagios/status.log
> [1037856707]
> SERVICE;phttpacp1;http_acp_1;OK;1/3;HARD;1037856514;1037857114;ACTIVE;1;1;1;1037827698;0;OK;25074;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;HTTP ok: HTTP/1.1 200 OK - 0 second response time
> [1037856707]
> SERVICE;phttpacp2;http_acp_2;OK;1/3;HARD;1037856557;1037857157;ACTIVE;1;1;1;1037827728;0;OK;25044;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;HTTP ok: HTTP/1.1 200 OK - 0 second response time
> [nagios at missouri jack]$ /usr/lib/nagios/plugins/check_nagios -F
> /var/log/nagios/status.log -e 5 -C '/usr/sbin/nagios'
> Could not locate a running Nagios process!
> 
> I'm kind of confused why my user account can do this, but the owner of
> the logfile can't...
> -- 
> Jack Coates
> Monkeynoodle: A Scientific Venture...
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list