[suggest] nagios-3.2.1-5.el4.rf.i386.rpm pid path problem

Mark D. Nagel mnagel at willingminds.com
Wed Aug 18 01:14:39 CEST 2010


 The path to nagios.pid was changed from /var/run/nagios.pid to
/var/nagios/nagios.pid between the 3.2.0 and 3.2.1 RPM release.  This
would be fine if the killproc function from /etc/init.d/functions in EL4
supported the -p flag as used in the init script, but this is not
available in EL4.  Thus, using the init script to restart or stop in EL4
is broken, generating all manner of errors due to invalid calls to pidof
and such.  Seems like the simplest fix would be to revert to the 3.2.0
init script for EL4, which works just fine, or keep the new script but
place the pid file back into /var/run for EL4.  The alternative would be
to roll your own replacement for killproc that behaves like the EL5
killproc.

Regards,
Mark

-- 
Mark D. Nagel, CCIE #3177 <mnagel at willingminds.com>
Principal Consultant, Willing Minds LLC (http://www.willingminds.com)
cell: 949-279-5817, desk: 714-495-4001, fax: 949-623-9854

*** Please send support requests to support at willingminds.com! *** 




More information about the users mailing list