<br><font size=2 face="sans-serif">Figured it out. Nagios needs to write
to /var/tmp/nagios/status.sav but the permissions were not right. There
was no error message to indicate this. </font>
<br><font size=2 face="sans-serif">__________________________________________<br>
Ranga Nathan / CSG<br>
Systems Programmer - Specialist; Technical Services; <br>
BAX Global Inc. Irvine-California<br>
Tel: 714-442-7591 Fax: 714-442-2840<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Ranga Nathan <RNathan@baxglobal.com></b></font>
<br>
<br><font size=1 face="sans-serif">Sent by: nagios-users-admin@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">09/14/2004 10:34 AM</font>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To:
nagios-users@lists.sourceforge.net</font>
<br><font size=1 face="sans-serif"> cc:
</font>
<br><font size=1 face="sans-serif"> Subject:
[Nagios-users] NAGIOS CRITICAL - could
not find status log: /var/log/nagios/status.log</font></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
I have Nagios running successfully on one box and I cloned it on another.
The second box has problems. When Nagios starts up, I see the log like
below and the CGIs do not show the status info. The status.log file is
not being created. I checked permissions, nagios.cfg etc. and
everything seems OK. Can someone give me a handle? I checked the
config with the -v and it reported only warnings, none of which is related
to this. Thanks for the help.</font><font size=3> </font><font size=2 face="sans-serif"><br>
....... scrolled off....</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
+++ /sbin/consoletype</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' en_US = ja_JP.eucJP -a pty '!=' pty ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ /sbin/consoletype</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' en_US = ko_KR.eucKR -a pty '!=' pty ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ /sbin/consoletype</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' en_US = zh_CN.GB2312 -a pty '!=' pty ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ /sbin/consoletype</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' en_US = zh_TW.Big5 -a pty '!=' pty ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ export LANG</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' -z '' ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' -f /etc/sysconfig/init ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ . /etc/sysconfig/init</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ BOOTUP=color</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ RES_COL=60</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ MOVE_TO_COL=echo -en \033[60G</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ SETCOLOR_SUCCESS=echo -en \033[1;32m</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ SETCOLOR_FAILURE=echo -en \033[1;31m</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ SETCOLOR_WARNING=echo -en \033[1;33m</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ SETCOLOR_NORMAL=echo -en \033[0;39m</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ LOGLEVEL=3</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ PROMPT=yes</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' -x /sbin/consoletype ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
+++ consoletype</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' pty = serial ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ '[' color '!=' verbose ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ INITLOG_ARGS=-q</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ prefix=/usr</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ exec_prefix=/usr</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosBin=/usr/bin/nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosCfg=/etc/nagios/nagios.cfg</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosLog=/var/log/nagios/status.log</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosTmp=/var/log/nagios/nagios.tmp</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosSav=/var/log/nagios/status.sav</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosCmd=/var/log/nagios/rw/nagios.cmd</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosVar=/var/log/nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosRun=/var/run/nagios.pid</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosLckDir=/var/lock/subsys</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosLckFile=nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosCGI=/usr/lib/nagios/cgi</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ Nagios=nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ test -f /usr/bin/nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ test -f /etc/nagios/nagios.cfg</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ echo 'Starting network monitor: nagios'</font><font size=3> </font><font size=2 face="sans-serif"><br>
Starting network monitor: nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ su -l nagios -c 'touch /var/log/nagios/nagios.log /var/log/nagios/status.sav'</font><font size=3>
</font><font size=2 face="sans-serif"><br>
+ rm -f /var/log/nagios/rw/nagios.cmd</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ /usr/bin/nagios -d /etc/nagios/nagios.cfg</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ '[' -d /var/lock/subsys ']'</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ touch /var/lock/subsys/nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ sleep 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ status_nagios nagios</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ test '!' -f /var/run/nagios.pid</font><font size=3> </font><font size=2 face="sans-serif"><br>
++ head -n 1 /var/run/nagios.pid</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ NagiosPID=10646</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ test -x /usr/lib/nagios/cgi/daemonchk.cgi</font><font size=3> </font><font size=2 face="sans-serif"><br>
+ /usr/lib/nagios/cgi/daemonchk.cgi -l /var/run/nagios.pid</font><font size=3>
</font><font size=2 face="sans-serif"><br>
NAGIOS CRITICAL - could not find status log: /var/log/nagios/status.log</font><font size=3>
</font><font size=2 face="sans-serif"><br>
+ return 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
__________________________________________<br>
Ranga Nathan / CSG<br>
Systems Programmer - Specialist; Technical Services; <br>
BAX Global Inc. Irvine-California<br>
Tel: 714-442-7591 Fax: 714-442-2840</font>
<br>