Loosing status info after restart

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Wed Feb 7 09:33:32 CET 2007


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
>
> !DSPAM:37,45c9732b18511055269334!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


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