<div>I am looking at the status.dat file and I noticed that the current_state is =1 even when the host is down and is in critical state. I assume that if a host is down, the current_state should be =2. I am not sure how Nagios sets the current_status but in my case, the host is definitely off:</div>
<div><br></div><div><div>admin1@serverr1:~> ping userver02</div><div>PING userver02.localhost (192.168.0.11) 56(84) bytes of data.</div><div><br></div><div>--- userver02.localhost ping statistics ---</div><div>7 packets transmitted, 0 received, 100% packet loss, time 6012ms</div>
</div><div><br></div><div>So why does the status.dat file say that the current_status=1? Does it mean that the host is in Warning state only, and not in Critical as opposed to what I am seeing in the web console? Anyway, I am bothered by this because I am using the <a href="http://check_summary.pl">check_summary.pl</a> plugin (<a href="http://exchange.nagios.org/directory/Plugins/Network-and-Systems-Management/Nagios/check_summary/details">http://exchange.nagios.org/directory/Plugins/Network-and-Systems-Management/Nagios/check_summary/details</a>) and it reads the status.dat file.</div>
<div><br></div><div>Btw, the status.dat file looks like this:</div><div><br></div><div><div>hoststatus {</div><div> host_name=userver02</div><div> modified_attributes=0</div><div> check_command=check-host-alive</div>
<div> check_period=24x7</div><div> notification_period=24x7</div><div> check_interval=5.000000</div><div> retry_interval=1.000000</div><div> event_handler=</div><div> has_been_checked=1</div>
<div> should_be_scheduled=1</div><div> check_execution_time=2.114</div><div> check_latency=0.239</div><div> check_type=0</div><div> current_state=1</div><div> last_hard_state=1</div>
<div> last_event_id=505</div><div> current_event_id=509</div><div> current_problem_id=232</div><div> last_problem_id=0</div><div> plugin_output=CRITICAL - userver02.localhost: rta nan, lost 100%</div>
<div> long_plugin_output=</div><div> performance_data=rta=0.000ms;800.000;1000.000;0; pl=100%;80;100;; rtmax=0.000ms;;;; rtmin=0.000ms;;;;</div><div> last_check=1300344149</div><div> next_check=1300344459</div>
<div> check_options=0</div><div> current_attempt=1</div><div> max_attempts=2</div><div> current_event_id=509</div><div> last_event_id=505</div><div> state_type=1</div><div> last_state_change=1299383163</div>
<div> last_hard_state_change=1299383163</div><div> last_time_up=0</div><div> last_time_down=1300344159</div><div> last_time_unreachable=0</div><div> last_notification=1300344079</div><div>
next_notification=1300347679</div><div> no_more_notifications=0</div><div> current_notification_number=267</div><div> current_notification_id=2857</div><div> notifications_enabled=1</div>
<div> problem_has_been_acknowledged=0</div><div> acknowledgement_type=0</div><div> active_checks_enabled=1</div><div> passive_checks_enabled=1</div><div> event_handler_enabled=1</div><div>
flap_detection_enabled=1</div><div> failure_prediction_enabled=1</div><div> process_performance_data=1</div><div> obsess_over_host=1</div><div> last_update=1300344223</div><div> is_flapping=0</div>
<div> percent_state_change=0.00</div><div> scheduled_downtime_depth=0</div><div> }</div></div><div><br></div>