Status file incorrect

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
wleister-fs
Posts: 2
Joined: Tue Apr 10, 2012 10:18 am

Status file incorrect

Post by wleister-fs »

I have a nagios installation where the status file shows incorrect(old) information. If a state changes to ok, the notifications are sent out correctly, the log files are written correctly. The state file changes to the new state, then changes back. It bounces back and forth for hours before settling on the correct state. Most of the time it shows the old down/warning state. I'm not sure if the same is happening on the ok to down/warning transition. I though I might have a buggy version, so I upgraded to the latest; no change. This is a nagios server that I inherited. Now I'm wondering if there is something weird in the config files. I can't seem to find it. Anyone have any ideas on how to troubleshoot this further?
Thanks in advance for any help.
wormfishin
Posts: 31
Joined: Tue Apr 10, 2012 8:11 am

Re: Status file incorrect

Post by wormfishin »

Is it possible that your seeing soft failures change the state, but the alerts aren't going out because it recovers before they are triggered?
wleister-fs
Posts: 2
Joined: Tue Apr 10, 2012 10:18 am

Re: Status file incorrect

Post by wleister-fs »

I don't think so. The last check time reverts back to an older check time before it was ok. When the status file is correct the correct last check is shown.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Status file incorrect

Post by mguthrie »

It's possible you've spawned multiple instances of Nagios, in which case two processes would be writing info to the status file, and one of them would be stale. Stop the nagios process, then run:

Code: Select all

killalll -9 nagios
Then start the nagios process again.
Locked