Behavior of event handler - doesn't work alarm light

Sumit Malhotra smalhotra at dataarmor.net
Thu Sep 8 08:35:36 CEST 2005


Takashi, 

Please enable log_event_handlers=1 , log_host_retries=1,
log_service_retries=1 in your main config files and paste the logs.

Also you are using Macro $STATETYPE$ instead of $HOSTSTATETYPE$.

Service event handler macros: $SERVICESTATE$, $SERVICESTATETYPE$,
$SERVICEATTEMPT$
Host event handler macros: $HOSTSTATE$, $HOSTSTATETYPE$, $HOSTATTEMPT$

Thanks.
Sumit Malhotra
Data Armor


-----Original Message-----
From: nagios-devel-admin at lists.sourceforge.net
[mailto:nagios-devel-admin at lists.sourceforge.net] On Behalf Of Takashi
Maruyama
Sent: Thursday, September 08, 2005 7:12 AM
To: nagios-devel at lists.sourceforge.net
Subject: RE: [Nagios-devel] Behavior of event handler - doesn't work
alarm light




Dear Sumit san,

Thank you for your advise and now I've confirmed about your advise.

I tried to do "su nagios" and my script "notify-to-keiko-chan", it
worked fine,
alarm light was turn-on.
So again I tried to plug off LAN line for target host and watch event
log of
Nagios.
Nagios says some HOST ALART and EVENT HANDLER messages about terget host
LAN
connection, I looked following message on the event log at last;

[09-08-2005 10:18:21] SERVICE ALERT: local1-ATX135;PING;CRITICAL;HARD;1;
CRITICAL
- Host Unreachable (172.17.0.150)
[09-08-2005 10:18:21] HOST EVENT HANDLER:
local1-ATX135;DOWN;HARD;10;notify-to-keiko-chan
[09-08-2005 10:18:21] HOST ALERT: local1-ATX135;DOWN;HARD;10;CRITICAL -
Host
Unreachable (172.17.0.150)
[09-08-2005 10:18:18] HOST EVENT HANDLER:
local1-ATX135;DOWN;SOFT;9;notify-to-keiko-chan
[09-08-2005 10:18:18] HOST ALERT: local1-ATX135;DOWN;SOFT;9;CRITICAL -
Host
Unreachable (172.17.0.150)

But alarm light didn't work. I seem to look like it has no problem about
permission of my script "notify-to-keiko-chan" and user account
"nagios".

My Nagios environment is wrong for Nagios 2.0B4? Do I forget to check
anything?
It's better to down grade from FC4 to FC3 for Nagios server? Please
advise me.

Thank you lots of your help,


Takashi Maruyama

Aucnet Inc.
IT Department






"Sumit Malhotra" <smalhotra at dataarmor.net> 2005/09/07 18:51:30



宛先: Takashi Maruyama/A/AUCNET at AUCNET,
nagios-devel at lists.sourceforge.net
cc:
件名: RE: [Nagios-devel] Behavior of event handler - doesn't work alarm
light





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf




More information about the Developers mailing list