Eventhandlers syntax
Capacci Thomas
mrcapacci at free.fr
Thu Sep 9 00:58:35 CEST 2004
Hi,
I am new to scripting and new to nagios, i monitor a machine with
check_http, i've write an eventhandler to restart http in case of
CRITICAL state, the service is ok but with no output so the httpd isn't
restarted.
I think i've made a fault in my script.
I use sudo to permit to nagios restart http
here's a part of my script:
case "$3" in
3° echo -n "Restarting HTTP service"
sudo -u nagios /etc/init.d/httpd restart
maybe this would be better
'sudo -u nagios /etc/init.d/httpd restart'
or
`sudo -u nagios /etc/init.d/httpd restart`
i really don't know.
Could you help me please.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list