Takashi,=20
Please enable log_event_handlers=3D1 , log_host_retries=3D1,
log_service_retries=3D1 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: [email protected]
[mailto:[email protected]] On Behalf Of Takashi
Maruyama
Sent: Thursday, September 08, 2005 7:12 AM
To: [email protected]
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" 2005/09/07 18:51:30
=1B$B08@h=1B(B: Takashi Maruyama/A/AUCNET@AUCNET,
[email protected]
cc:
=1B$B7oL>=1B(B: RE: [Nagios-devel] Behavior of event handler - doesn't wo=
rk alarm
light
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]