PENDING status of HOST after restart..

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

PENDING status of HOST after restart..

Postby vlecaroz » Mon Sep 12, 2011 5:36 am

Hi All,

I have setup Nagios 3.3.1 and its working fine but the only thing it bothers me was when I restart/reload Nagios(I add a host or a service), all the existing hosts (before I restart nagios) have PENDING status when I check the nagios webpage. Is this normal or not?is there something I need to configure on nagios.cfg or cgi.cfg to retain the last status of all of my hosts before the reload/restart?

In nagios.cfg i have this:
object_cache_file=/var/log/nagios/objects.cache
status_file=/var/log/nagios/status.dat
state_retention_file=/var/log/nagios/retention.dat

This last status of all hosts should on the above files, but it seems its not getting anything that is why its always having a PENDING status if i restart nagios(this is only my assumption)?

Hope someone can help me.Thanks.
vlecaroz
 
Posts: 4
Joined: Mon Sep 12, 2011 5:13 am

Re: PENDING status of HOST after restart..

Postby crfriend » Mon Sep 12, 2011 4:28 pm

vlecaroz wrote:I have setup Nagios 3.3.1 and its working fine but the only thing it bothers me was when I restart/reload Nagios(I add a host or a service), all the existing hosts (before I restart nagios) have PENDING status when I check the nagios webpage. Is this normal or not?is there something I need to configure on nagios.cfg or cgi.cfg to retain the last status of all of my hosts before the reload/restart?

In nagios.cfg i have this:
object_cache_file=/var/log/nagios/objects.cache
status_file=/var/log/nagios/status.dat
state_retention_file=/var/log/nagios/retention.dat

Do you also have "retain_state_information=1" set? There are several options like that which allow one to control precisely what Nagios retains across shutdowns/restarts and what it does not.
crfriend
 
Posts: 61
Joined: Thu Sep 01, 2011 7:53 am
Location: Central New England (USA)

Re: PENDING status of HOST after restart..

Postby vlecaroz » Tue Sep 13, 2011 1:58 am

Hi,

thanks for your reply, yes the retain_state_information=1 in my nagios.cfg.
vlecaroz
 
Posts: 4
Joined: Mon Sep 12, 2011 5:13 am

Re: PENDING status of HOST after restart..

Postby vlecaroz » Tue Sep 13, 2011 1:59 am

Is there any other option that I can set to retain the host status after the restart?aside from the retain_state_information..
thanks.
vlecaroz
 
Posts: 4
Joined: Mon Sep 12, 2011 5:13 am

Re: PENDING status of HOST after restart..

Postby garioz » Mon Sep 19, 2011 1:33 am

I have the same problem.
garioz
 
Posts: 1
Joined: Mon Sep 19, 2011 1:27 am

Re: PENDING status of HOST after restart..

Postby crfriend » Tue Sep 20, 2011 5:28 pm

Do the hosts in question eventually transition out of "Pending" status whilst Nagios is running? If they do not, you may need to turn "aggressive host checking" on so those data will get written to the state-retention file.
crfriend
 
Posts: 61
Joined: Thu Sep 01, 2011 7:53 am
Location: Central New England (USA)

Re: PENDING status of HOST after restart..

Postby vlecaroz » Tue Sep 20, 2011 11:59 pm

Hi,

I have found the culprit after my last message :lol: I overlooked the host template, the retain_state_information set to 0 that is why even my retain_state_information is set to 1 in nagios.cfg the host still is in pending status. After setting the retain_state_info to 1 in my host template, no pending status for all the monitored hosts.

@garioz, you have to check the host template that your hosts are using, maybe same issue with mine.

Thanks guys for your time.

Cheers.....
vlecaroz
 
Posts: 4
Joined: Mon Sep 12, 2011 5:13 am


Return to Nagios Core

Who is online

Users browsing this forum: bennyrapp and 28 guests