<div class="gmail_quote">On Fri, Mar 19, 2010 at 7:28 PM, David Dyer-Bennet <span dir="ltr"><<a href="mailto:dd-b@dd-b.net">dd-b@dd-b.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The init file built and installed by "make install-init" doesn't seem to<br>
work right. I apparently have nagios running after saying "service nagios<br>
start" (it reported success), based on receiving some notifications and on<br>
ps showing /usr/local/nagios/bin/nagios running as a daemon, but "service<br>
nagios status" reports "nagios is not running".<br>
<br>
(This is on a Centos 4.8 system, with Nagios 3.2.1 built from source.)<br>
<br>
I configured this version with<br>
"--with-lockfile=/usr/local/nagios/var/nagios.pid" after the previous<br>
version, without that, logged a permissions error when it tried to start<br>
up nagios. I suppose that could be the wrong fix for that problem, and<br>
hence causing this one.<br></blockquote><div><br>This is probably because the init script says:<br><br>NagiosRunFile=${prefix}/var/nagios.lock<br><br>But your pid file is called nagios.pid.<br><br>So either recompile Nagios, or edit your init script to look in the nagios.pid file instead (probably the easier route, eh? :-)<br>
<br></div></div>-- <br>Martin Melin<br><br>May your delusions be benign and your compulsions have utility<br>____________________________<br>op5 AB<br><a href="http://www.op5.com">http://www.op5.com</a><br><br><a href="http://www.op5.org/">http://www.op5.org/</a><br>
<a href="http://www.op5.com/op5/products/network-monitor/nagios/">http://www.op5.com/op5/products/network-monitor/nagios/</a> <br>