<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Current States logged upon log rotation</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Tahoma">I recently upgraded from 1.0b to 2.7. I noticed that immediately after my daily log rotation, the current state of all hosts and services is entered in the log file. As I have thousands of hosts/services, this makes the log (in my case) unnecessarily large, and was hoping to find an option to prevent those states from being logged.</FONT></P>

<P><FONT SIZE=2 FACE="Tahoma">Here is a sample of entries I am referring to:</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">Informational Message[03-07-2007 00:00:00] CURRENT SERVICE STATE: <hidden>;Ping;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 29.40 ms Informational Message[03-07-2007 00:00:00] CURRENT SERVICE STATE: <hidden>;Ping;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 73.01 ms Informational Message[03-07-2007 00:00:00] CURRENT HOST STATE: <hidden>;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 10.64 ms Informational Message[03-07-2007 00:00:00] CURRENT HOST STATE: <hidden>;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 28.26 ms</FONT></P>

<P><FONT SIZE=2 FACE="Tahoma">The documentation references the "log_initial_states" entry in the main configuration file, which seems like it should control this option. But as you can see by my config file below, it's disabled. Should I be looking at a different option(s)? </FONT></P>

<P><FONT SIZE=2 FACE="Tahoma">Thanks.</FONT>
</P>

<P><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/host_templates.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/hosts.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/commands.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/timeperiods.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/contactgroups.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/contacts.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/hostgroups.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/service_templates.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/services.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/servicegroups.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">resource_file=/usr/local/nagios/etc/resources.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/hostextinfo.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/dependencies.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">cfg_file=/usr/local/nagios/etc/escalations.cfg</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_file=/usr/local/nagios/var/nagios.log</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">temp_file=/usr/local/nagios/var/nagios.tmp</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">status_file=/usr/local/nagios/var/status.dat</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">aggregate_status_updates=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">status_update_interval=30</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">nagios_user=nagios</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">nagios_group=nagios</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">enable_notifications=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">execute_service_checks=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">accept_passive_service_checks=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">enable_event_handlers=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_rotation_method=d</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_archive_path=/usr/local/nagios/var/archives</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">check_external_commands=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">command_check_interval=-1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">command_file=/usr/local/nagios/var/rw/nagios.cmd</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">downtime_file=/usr/local/nagios/var/downtime.dat</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">comment_file=/usr/local/nagios/var/comment.dat</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">lock_file=/usr/local/nagios/var/nagios.lock</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">retain_state_information=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">state_retention_file=/usr/local/nagios/var/retention.dat</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">retention_update_interval=15</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">use_retained_program_state=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">use_syslog=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_notifications=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_service_retries=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_host_retries=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_event_handlers=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_initial_states=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_external_commands=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">log_passive_checks=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">service_interleave_factor=s</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">service_reaper_frequency=10</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">interval_length=60</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">service_check_timeout=60</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">host_check_timeout=60</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">notification_timeout=60</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">date_format=us</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">illegal_object_name_chars=`~!$%^&*"|'<>?,()=</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">illegal_macro_output_chars=`~$^&"|'<></FONT>

<BR><FONT SIZE=2 FACE="Tahoma">object_cache_file=/usr/local/nagios/var/objects.cache</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">execute_host_checks=1</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">service_inter_check_delay_method=s</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">use_retained_scheduling_info=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">accept_passive_host_checks=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">host_inter_check_delay_method=s</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">host_perfdata_file_mode=a</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">service_perfdata_file_mode=a</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">host_perfdata_file_processing_interval=0</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">service_perfdata_file_processing_interval=0</FONT>
</P>
<BR>

</BODY>
</HTML>