Retention Problem

Iassen Anadoliev korio at ma3x.net
Mon Jul 19 19:21:03 CEST 2004


Hello guys.
	 I am trying to setup nagios on debian unstable. Using nagios-text 
version 1.2-3.4 + nagios-plugins version 1.3.1.0-7. All is fine but i 
cannot save my state information. retain_state_information is set to 1 
but... without any success. Part of my config files:



nagios.cfg


log_file=/var/log/nagios/nagios.log
cfg_file=/etc/nagios/checkcommands.cfg
cfg_file=/etc/nagios/misccommands.cfg
cfg_file=/etc/nagios/contactgroups.cfg
cfg_file=/etc/nagios/contacts.cfg
cfg_file=/etc/nagios/dependencies.cfg
cfg_file=/etc/nagios/escalations.cfg
cfg_file=/etc/nagios/hostgroups.cfg
cfg_file=/etc/nagios/hosts.cfg
cfg_file=/etc/nagios/services.cfg
cfg_file=/etc/nagios/timeperiods.cfg
resource_file=/etc/nagios/resource.cfg
status_file=/var/log/nagios/status.log
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=30s
command_file=/var/log/nagios/rw/nagios.cmd
comment_file=/var/log/nagios/comment.log
downtime_file=/var/log/nagios/downtime.log
lock_file=/var/log/nagios/nagios.lock
temp_file=/var/log/nagios/nagios.tmp
log_rotation_method=d
log_archive_path=/var/log/nagios/archives
use_syslog=1
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_service_checks=1
inter_check_delay_method=s
service_interleave_factor=s
max_concurrent_checks=0
service_reaper_frequency=10
sleep_time=1
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/var/log/nagios/status.sav
retention_update_interval=60
use_retained_program_state=0
interval_length=60
use_agressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
enable_notifications=1
enable_event_handlers=1
process_performance_data=1
obsess_over_services=0
check_for_orphaned_services=1
check_service_freshness=1
freshness_check_interval=60
aggregate_status_updates=1
status_update_interval=15
enable_flap_detection=1
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=iso8601
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
admin_email=nagios at ma3x.net
admin_pager=nagios at ma3x.net






hosts.cfg



define host{
name                            generic-host 
notifications_enabled           	1
event_handler_enabled           1
flap_detection_enabled          1
process_perf_data               1
retain_status_information       1
retain_nonstatus_information    1
notification_interval   60
notification_period     24x7
notification_options    d,u,r
max_check_attempts      20
register                        0
         }

define host{
use                     generic-host

         host_name               localhost
         alias                   Localhost
         address                 127.0.0.1
         check_command           check-host-alive
         }







hostgroups.cfg



define hostgroup{
         hostgroup_name  linuxservers
         alias           Linux Servers
         contact_groups  admins
         members         localhost
         }







services.cfg



define service{
         name                            generic-service
         active_checks_enabled           1
         passive_checks_enabled          1
         parallelize_check               1

         obsess_over_service             1
         check_freshness                 1
         notifications_enabled           1
         event_handler_enabled           1
         flap_detection_enabled          1
         process_perf_data               1
         retain_status_information       1
         retain_nonstatus_information    1
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           5
         retry_check_interval            1
         notification_interval           240
         notification_period             24x7
         notification_options            c,r
         register                        0
         }
define service{
         use                             generic-service

         host_name                       localhost
         service_description             Connectivity
         contact_groups                  admins
         check_command                   check_ping!100.0,20%!500.0,60%
         }








Any help will be apreciated.




10x in Advance and WWell by

Iassen Anadoliev


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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