Loosing status info after restart

Sjaak Nabuurs sjaak at vsm-hosting.nl
Wed Feb 7 11:01:33 CET 2007


Thanks Andy
I had set this in nagios.cfg
Now i've found it, a typo in 
state_retention_file=/usr/local/nagios/var/spool/status.sav
But I've never seen any error's in my log files, that's strange or !!

Thanks

Sjaak




Andy Shellam (Mailing Lists) wrote:

>Is it set in Nagios generally, i.e. in your nagios.cfg?
>
># cat /usr/local/nagios/etc/nagios.cfg|grep retain
>retain_state_information=1
>use_retained_program_state=1
>use_retained_scheduling_info=0
>
>Andy
>
>Sjaak Nabuurs wrote:
>  
>
>>Hello Nagios users
>>
>>Nagios -v 2.5
>>
>>I've hanging around for a long time with a small problem
>>When i restart nagios i'm loosing the state information and every status 
>>returns to pending.
>>Also if I use
>>/bin/printf "[%lu] SAVE_STATE_INFORMATION\n" $now > $commandfile
>>/bin/printf "[%lu] RESTART_PROGRAM\n" $now > $commandfile
>>
>>define  host {^
>>        host_name                        server_domain
>>        alias                                  domain
>>        address                             domain.com
>>        check_command                   check-host-alive
>>        max_check_attempts              5
>>        check_interval                        5
>>        active_checks_enabled           1
>>        passive_checks_enabled         1
>>        check_period                         24x7
>>        obsess_over_host                  1
>>        check_freshness                     0
>>        event_handler_enabled            0
>>        flap_detection_enabled           1
>>        process_perf_data                  0
>>        retain_status_information        1      <-------------
>>        retain_nonstatus_information    1   <--------------
>>        contact_groups                      administrator
>>        notification_interval                5
>>        notification_period                 24x7
>>        notification_options               d,u,r,f
>>        notifications_enabled             1
>>        register                                 1
>>        }      
>>
>>Thanks for reading
>>
>>
>>    
>>
>
>
>  
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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