Scott, Marc is right - this is neither a bug, nor a misconfiguration. It is purposeful behavior. It was added to Nagios by the developer as a fix for another issue with the reports. You can't control it without modification to the source code, unless both you and I and Marc are all missing something. I also see these log entries at log rotation, regardless of my log_initial_states setting. If I enable this option I *also* see these at, or just after, restart, and it balloons my log files in large systems, hence I refrain from setting it. I tolerate the entries at log rotation, though I admit that it would be nice to be able to turn these off :) Thomas
Prigge Scott wrote: > It's not clear to me where you got your description from. This > description is taken from the Main Configuration File Options page, and > its pretty clear to me from that it is the option to control the > behavior I'm referring to: > ********************************* > Initial States Logging Option > > Format: log_initial_states=<0/1> > Example: log_initial_states=1 > > This variable determines whether or not Nagios will force all initial > host and service states to be logged, even if they result in an OK > state. Initial service and host states are normally only logged when > there is a problem on the first check. Enabling this option is useful if > you are using an application that scans the log file to determine > long-term state statistics for services and hosts. > > * 0 = Don't log initial states (default) > * 1 = Log initial states > ********************************* > > It just doesn't seem to have any effect on my system. So the question > I'm struggling with is whether this is a purposeful behavior as Marc > describes? Is it a bug? Or is it some misconfiguration on my part? If > the log_initial_states=0 option is set on your system and you are not > seeing those log entries, then there is likely a misconfiguration on my > system. But even if that's the case, it doesn't correlate with Marc's > assertation that the inclusion of these entries is intentional and > irreversable. If Marc's assertation is incorrect, then there must be > some way to control the behavior - but what are the correct options? It > obviously isn't entirely controlled by this option, otherwise I could > control it. > > >> Well, the "log_initial_states" option has this description: >> "If you want Nagios to log all initial host and service >> states to the main log file (the first time the service or >> host is checked) you can enable this option" >> It then goes on to recommend against setting this option >> unless you are using an external application that does >> long-term state statistics reporting. >> >> What I have observed its effect to be is to write out a >> snapshot of the state of each host and service to the log >> file on restart of nagios. >> This would be useful in some situations, I suppose. I leave >> it off, for the same reasons you mention. >> Thomas >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
