problem with new kernel
Dwan Norwood
dnorwood at Interelate.com
Thu Mar 27 01:23:24 CET 2003
The new version of the kernel changes the way that daemonized processes are display with ps. Now the appear to be enclosed in []. E.g.,
lp 877 1 0 17:52 ? 00:00:00 [lpd]
nobody 972 949 0 17:52 ? 00:00:00 [httpd]
In the past ps would show the nagios process as:
/usr/local/nagios/bin/nagios -d
Now it is displayed as: [nagios]
Example:
nagios 1102 1 0 17:52 ? 00:00:00 [nagios]
Your check_nagios command (in the cgi.cfg) looks for the process string returned from ps.
Your current configuration probably looks like this:
nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 30 '/usr/local/nagios/bin/nagios'
So, change the configuration entry to look like this:
nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 30 '[nagios]'
-- Dwan
>I upgrade on my linux server, th kernel version with Red Hat Linux
>(2.4.18-27.8.0), from Red Hat Linux (2.4.18-26.8.0) All work fine, the
>only problem are qith nagios process, because grep
>
>[root at consolefw nagios]# ps -aef |grep nag
>nagios 1241 1 0 11:05 ? 00:00:00 [nagios]
>
>check_nagios said
>[root at consolefw root]# /usr/local/nagios/libexec/check_nagios
>/usr/local/nagios/var/status.log 5 /usr/local/nagios/bin/nagios
>Could not locate a running Nagios process!
> And log
>[1047981881] Lockfile '/usr/local/nagios/var/nagios.lock' is held by PID
>0. Bailing out...
>
>whats append? Does anyone have same problem?
>
>I rollback on previous kernel and all return ok
>
>[root at consolefw root]# ps -aef|grep nagi
>nagios 783 1 0 11:11 ? 00:00:00
>/usr/local/nagios/bin/nagios -d
>
>
>
>-cd
>---
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
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