(no subject)

Thomas Stocking tstocking at groundworkopensource.com
Thu Apr 5 00:35:15 CEST 2007


Curious of it's the log rotation HUP signal that is doing this. Does it 
do the same thing on a restart of nagios?
Also, have you tried shutting down nagios, checking for any old nagios 
processes hanging around and killing them off, then restarting?
     Thomas

Prigge Scott wrote:
> 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:
> [04-04-2007 00:00:00] CURRENT SERVICE STATE:
> <hidden>;Ping;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 51.00 ms
> [04-04-2007 00:00:00] CURRENT SERVICE STATE:
> <hidden>;Ping;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 212.99 ms
> [04-04-2007 00:00:00] CURRENT HOST STATE: <hidden>r;UP;HARD;1;PING OK -
> Packet loss = 0%, RTA = 11.14 ms
> [04-04-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
>
>
> -------------------------------------------------------------------------
> 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
> 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
>   

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