Gürkan Aslan
2008-10-15 09:18:16 UTC
Hi,
I'm trying to define an event handler for nagios. Actually it will work
same as event handler example
(http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but
it doesn't work... i'm trying to create a file in /tmp folder to test,
but nothing in return. event_handler_enabled = 1 in service definition
and nagios.cfg.
with nagios user, i can create a file under /tmp folder
(touch /tmp/foo). Actually i'm trying to restart a service. I defined a
sudo command for nagios like this (in /etc/sudoers file)
nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart
sudo /etc/init.d/myservice restart command is properly running as nagios
user (I'm switching user by: su - nagios).
But i cannot run both of them via an event handler. As i feel that
nagios couldn't trigger the event file...
Any suggestion?
Best regards
I'm trying to define an event handler for nagios. Actually it will work
same as event handler example
(http://nagios.sourceforge.net/docs/3_0/eventhandlers.html#example) but
it doesn't work... i'm trying to create a file in /tmp folder to test,
but nothing in return. event_handler_enabled = 1 in service definition
and nagios.cfg.
with nagios user, i can create a file under /tmp folder
(touch /tmp/foo). Actually i'm trying to restart a service. I defined a
sudo command for nagios like this (in /etc/sudoers file)
nagios LOCAL=NOPASSWD:/etc/init.d/myservice restart
sudo /etc/init.d/myservice restart command is properly running as nagios
user (I'm switching user by: su - nagios).
But i cannot run both of them via an event handler. As i feel that
nagios couldn't trigger the event file...
Any suggestion?
Best regards
--
Gürkan Aslan
Senior Developer
Komturk Iletisim Ltd. Sti
Phone: +90 212 275 88 99 ext 125
Gürkan Aslan
Senior Developer
Komturk Iletisim Ltd. Sti
Phone: +90 212 275 88 99 ext 125