Nagios is forzen. status.dat file is in stale
Posted: Tue Sep 04, 2012 10:36 am
Hello All,
I have built my Nagios Core system recently and was about to Go-Live it's behaving weird. My problem is Nagios is not updating the check and I can see that in the CGI(Nagios Front End panel) has checked the checks 24 hours backs. Until I restarted the Nagios Service. And, this is keep on happening.
I have installed nagios core version 3.4.1 and has integrated Pnp4nagios for graphing.
Below is the statistics of my current setup:
-------------------------------------------------------------------
/usr/local/nagios/bin/nagiostats -c /usr/local/nagios/etc/nagios.cfg
Nagios Stats 3.4.1
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
Last Modified: 05-11-2012
License: GPL
CURRENT STATUS DATA
------------------------------------------------------
Status File: /usr/local/nagios/var/status.dat
Status File Age: 0d 0h 0m 13s
Status File Version: 3.4.1
Program Running Time: 0d 0h 27m 37s
Nagios PID: 17395
Used/High/Total Command Buffers: 0 / 166 / 4096
Total Services: 9364
Services Checked: 9364
Services Scheduled: 9364
Services Actively Checked: 9364
Services Passively Checked: 0
Total Service State Change: 0.000 / 29.930 / 0.041 %
Active Service Latency: 0.000 / 14.730 / 3.523 sec
Active Service Execution Time: 0.007 / 50.013 / 0.422 sec
Active Service State Change: 0.000 / 29.930 / 0.041 %
Active Services Last 1/5/15/60 min: 1600 / 8795 / 9364 / 9364
Passive Service Latency: 0.000 / 0.000 / 0.000 sec
Passive Service State Change: 0.000 / 0.000 / 0.000 %
Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit: 9071 / 116 / 7 / 170
Services Flapping: 2
Services In Downtime: 0
Total Hosts: 845
Hosts Checked: 845
Hosts Scheduled: 845
Hosts Actively Checked: 845
Host Passively Checked: 0
Total Host State Change: 0.000 / 6.250 / 0.014 %
Active Host Latency: 0.000 / 11.754 / 2.101 sec
Active Host Execution Time: 0.008 / 10.012 / 0.124 sec
Active Host State Change: 0.000 / 6.250 / 0.014 %
Active Hosts Last 1/5/15/60 min: 164 / 839 / 845 / 845
Passive Host Latency: 0.000 / 0.000 / 0.000 sec
Passive Host State Change: 0.000 / 0.000 / 0.000 %
Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0
Hosts Up/Down/Unreach: 842 / 3 / 0
Hosts Flapping: 0
Hosts In Downtime: 0
Active Host Checks Last 1/5/15 min: 367 / 1325 / 3900
Scheduled: 206 / 864 / 2625
On-demand: 161 / 461 / 1275
Parallel: 208 / 869 / 2636
Serial: 0 / 0 / 0
Cached: 159 / 456 / 1264
Passive Host Checks Last 1/5/15 min: 0 / 0 / 0
Active Service Checks Last 1/5/15 min: 2440 / 9693 / 28588
Scheduled: 2440 / 9693 / 28588
On-demand: 0 / 0 / 0
Cached: 0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 0 / 0 / 0
External Commands Last 1/5/15 min: 0 / 1 / 2
-------------------------------------------------------------------
OS:
Linux 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
It would be of great help if you can assist me in solving this problem.
Workaround: I have written a script to which checks the status.dat file freshness if it is not updating restart the nagios. by doing this I am making sure that Nagios is running.
Regards,
Babu Dhinakaran S
I have built my Nagios Core system recently and was about to Go-Live it's behaving weird. My problem is Nagios is not updating the check and I can see that in the CGI(Nagios Front End panel) has checked the checks 24 hours backs. Until I restarted the Nagios Service. And, this is keep on happening.
I have installed nagios core version 3.4.1 and has integrated Pnp4nagios for graphing.
Below is the statistics of my current setup:
-------------------------------------------------------------------
/usr/local/nagios/bin/nagiostats -c /usr/local/nagios/etc/nagios.cfg
Nagios Stats 3.4.1
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
Last Modified: 05-11-2012
License: GPL
CURRENT STATUS DATA
------------------------------------------------------
Status File: /usr/local/nagios/var/status.dat
Status File Age: 0d 0h 0m 13s
Status File Version: 3.4.1
Program Running Time: 0d 0h 27m 37s
Nagios PID: 17395
Used/High/Total Command Buffers: 0 / 166 / 4096
Total Services: 9364
Services Checked: 9364
Services Scheduled: 9364
Services Actively Checked: 9364
Services Passively Checked: 0
Total Service State Change: 0.000 / 29.930 / 0.041 %
Active Service Latency: 0.000 / 14.730 / 3.523 sec
Active Service Execution Time: 0.007 / 50.013 / 0.422 sec
Active Service State Change: 0.000 / 29.930 / 0.041 %
Active Services Last 1/5/15/60 min: 1600 / 8795 / 9364 / 9364
Passive Service Latency: 0.000 / 0.000 / 0.000 sec
Passive Service State Change: 0.000 / 0.000 / 0.000 %
Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit: 9071 / 116 / 7 / 170
Services Flapping: 2
Services In Downtime: 0
Total Hosts: 845
Hosts Checked: 845
Hosts Scheduled: 845
Hosts Actively Checked: 845
Host Passively Checked: 0
Total Host State Change: 0.000 / 6.250 / 0.014 %
Active Host Latency: 0.000 / 11.754 / 2.101 sec
Active Host Execution Time: 0.008 / 10.012 / 0.124 sec
Active Host State Change: 0.000 / 6.250 / 0.014 %
Active Hosts Last 1/5/15/60 min: 164 / 839 / 845 / 845
Passive Host Latency: 0.000 / 0.000 / 0.000 sec
Passive Host State Change: 0.000 / 0.000 / 0.000 %
Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0
Hosts Up/Down/Unreach: 842 / 3 / 0
Hosts Flapping: 0
Hosts In Downtime: 0
Active Host Checks Last 1/5/15 min: 367 / 1325 / 3900
Scheduled: 206 / 864 / 2625
On-demand: 161 / 461 / 1275
Parallel: 208 / 869 / 2636
Serial: 0 / 0 / 0
Cached: 159 / 456 / 1264
Passive Host Checks Last 1/5/15 min: 0 / 0 / 0
Active Service Checks Last 1/5/15 min: 2440 / 9693 / 28588
Scheduled: 2440 / 9693 / 28588
On-demand: 0 / 0 / 0
Cached: 0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 0 / 0 / 0
External Commands Last 1/5/15 min: 0 / 1 / 2
-------------------------------------------------------------------
OS:
Linux 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
It would be of great help if you can assist me in solving this problem.
Workaround: I have written a script to which checks the status.dat file freshness if it is not updating restart the nagios. by doing this I am making sure that Nagios is running.
Regards,
Babu Dhinakaran S