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" <alexande...@gmail.com> 
To: nagios-users@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@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 
------------------------------------------------------------------------------
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@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

Reply via email to