Current States logged upon log rotation

Prigge Scott PriggeScottM at JohnDeere.com
Wed Mar 7 22:52:25 CET 2007


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.

Here is a sample of entries I am referring to:
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

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)? 

Thanks.

cfg_file=/usr/local/nagios/etc/host_templates.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/service_templates.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/servicegroups.cfg
resource_file=/usr/local/nagios/etc/resources.cfg
cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
log_file=/usr/local/nagios/var/nagios.log
temp_file=/usr/local/nagios/var/nagios.tmp
status_file=/usr/local/nagios/var/status.dat
aggregate_status_updates=1
status_update_interval=30
nagios_user=nagios
nagios_group=nagios
enable_notifications=1
execute_service_checks=1
accept_passive_service_checks=0
enable_event_handlers=0
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
downtime_file=/usr/local/nagios/var/downtime.dat
comment_file=/usr/local/nagios/var/comment.dat
lock_file=/usr/local/nagios/var/nagios.lock
retain_state_information=1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=15
use_retained_program_state=1
use_syslog=0
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=0
service_interleave_factor=s
service_reaper_frequency=10
interval_length=60
service_check_timeout=60
host_check_timeout=60
notification_timeout=60
date_format=us
illegal_object_name_chars=`~!$%^&*"|'<>?,()=
illegal_macro_output_chars=`~$^&"|'<>
object_cache_file=/usr/local/nagios/var/objects.cache
execute_host_checks=1
service_inter_check_delay_method=s
use_retained_scheduling_info=0
accept_passive_host_checks=0
host_inter_check_delay_method=s
host_perfdata_file_mode=a
service_perfdata_file_mode=a
host_perfdata_file_processing_interval=0
service_perfdata_file_processing_interval=0


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070307/8a809e2b/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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