Prevent current state from being logged to event log during daily log rollover?
Tony
tocoro at yahoo.com
Thu Sep 8 19:31:05 CEST 2011
Greetings all, is it possible to configure nagios from logging the existing state of hosts each time the log rolls over?
Currently we have the log set to roll over daily and with the number of hosts we have it causes tons of informational messages at the beginning of each log rollover event..not a huge deal but it is a bit annoying that the number of log entries increases the amount of time it takes to paint the page when we click the http://nagios-host/nagios/cgi-bin/showlog.cgi link.
Example states that get logged on the log rollover..
================================
[09-08-2011 00:00:00] CURRENT HOST STATE: cdf;1;OK - 10.198.142.41: rta 85.968ms, lost 0%
[09-08-2011 00:00:00] CURRENT HOST STATE: abc;UP;HARD;1;OK - Certificate will expire on 06/16/2015 11:47.
[09-08-2011 00:00:00] CURRENT HOST STATE: xyz;UP;HARD;1;OK - Certificate will expire on 07/03/2014 12:50.
[09-08-2011 00:00:00] LOG VERSION: 2.0
[09-08-2011 00:00:00] LOG ROTATION: DAILY
================================
I tried setting the following in the nagios.cfg file but it did not stop the existing state of the hosts from being logged on the rollover of the log at midnight (not sure if it is supposed to or not)
# INITIAL STATES LOGGING OPTION
# 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 by setting this value to 1. If you
# are not using an external application that does long term state
# statistics reporting, you do not need to enable this option. In
# this case, set the value to 0.
log_initial_states=0
Thanks much for any insight anyone on the list can provide.
--TR
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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
More information about the Users
mailing list