soft state, hard state and event handler

serwah sabet ghadam serwah_s_gh at yahoo.com
Tue Jun 29 13:03:35 CEST 2004


Dear friends,
 
first I thnk Andy Harrison for his advise.
I am working on RedHat 7.3 and nagios 1.2.
I want to use Event Handlers.
 
As you know Event Handlers are activated when there is:
- a service in soft state 
- change from soft to hard state 
- recover from hard state
 
my problem is that when I start Nagios,
and it's the first attempt of aservice (for example : check_http)
it is initialy in HARD !!! state.
Here is what I see in the web interface:
Current Status:  OK    
Status Information:HTTP OK HTTP/1.1 200 OK - 36036 bytes in 0.204 secondsCurrent Attempt:1/3State Type:HARDLast Check Type:ACTIVELast Check Time:06-29-2004 15:15:19Status Data Age:0d 0h 0m 30sNext Scheduled Active Check:  06-29-2004 15:18:19Latency:< 1 secondCheck Duration:< 1 secondLast State Change:06-29-2004 15:15:19Current State Duration:0d 0h 0m 30sLast Service Notification:N/ACurrent Notification Number:0Is This Service Flapping?N/APercent State Change:N/AIn Scheduled Downtime?  NO  
Last Update:06-29-2004 15:15:40
 

as you see its the first attempt, so it must be in soft state but it is in hard state.

so none of the three conditions above is used.

another one is something like below:

Current Status:  CRITICAL    
Status Information:PING CRITICAL - Packet loss = 100%Current Attempt:3/3State Type:HARDLast Check Type:ACTIVELast Check Time:06-29-2004 10:43:37Status Data Age:0d 4h 49m 35sNext Scheduled Active Check:  06-29-2004 15:33:32Latency:< 1 secondCheck Duration:< 1 secondLast State Change:06-28-2004 13:26:01Current State Duration:1d 2h 7m 11sLast Service Notification:N/ACurrent Notification Number:0Is This Service Flapping?N/APercent State Change:N/AIn Scheduled Downtime?  NO  
Last Update:06-29-2004 15:33:02

 

this result is shown just after stopping and starting Nagios.

although it is critical but since it is in HARD state feom the first notification,

no event handlers can be done upon it.

Thanks for any help.

S.S

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040629/53580916/attachment.html>


More information about the Users mailing list