A question about "initial_state"

Assaf Flatto nagios at flatto.net
Fri Dec 2 15:59:38 CET 2011


Since this is a passive state , until it gets a state submissions from the NSCA it will be in a Pending state . 

The initial_state directive is for Active services AFAIK. 



----- Original Message -----

From: "Alexander Tiurin" <alexanderyt at gmail.com> 
To: nagios-users at lists.sourceforge.net 
Sent: Friday, 2 December, 2011 1:17:06 PM 
Subject: [Nagios-users] A question about "initial_state" 

Hello! 

I added "initial_state u" to passive service template definition, but after restart Nagios, all passive service checks have the status "PENDING" , not "UNKNOWN" 

define service{ 
name passive-service 
retain_status_information 
0 
retain_nonstatus_information 0 
active_checks_enabled 0 
passive_checks_enabled 1 
flap_detection_enabled 0 
is_volatile 0 
check_period 24x7 
max_check_attempts 1 
normal_check_interval 5 
retry_check_interval 1 
check_freshness 1 
freshness_threshold 15 ; seconds 
initial_state u 
contact_groups admins 
check_command check_dummy!0 
notification_interval 60 
notification_period 24x7 
notification_options w,u,c,r 
stalking_options w,c,u 
register 0 
} 

Whats wrong? 

nagios3-3.2.0-4ubuntu2.2 
------------------------------------------------------------------------------ 
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense. 
http://p.sf.net/sfu/splunk-novd2d 
_______________________________________________ 
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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111202/215b80b8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
-------------- next part --------------
_______________________________________________
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