<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3660" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=640392601-09032010>Hi
all:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>Got Nagios core
3.2.0 on CentOS5. Been trying to get an event handler to execute but it will
not. My configs;</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>define
service{</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>use
local_service</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>host_name
my_host</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>
service_description NFS
Check</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>check_period 24x7</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>check_interval
20</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>max_check_attempts 4</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>check_command
check_nrpe!check_nfs_mounts</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>event_handler_enabled 1</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>event_handler
remount-nfs!$SERVICESTATE$!$SERVICESTATETYPE$!$SERVICEATTEMPT$</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>notification_period 24x7</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>notification_interval
120</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>contact_groups
colorado</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>define
command{</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>command_name
remount-nfs</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010> <FONT face=Arial
size=2>command_line $USER1$/eventhandlers/remount-nfs
$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2>enable_event_handlers=1 in the nagios.cfg file</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>The script itself is
very simple. At CRITICAL/SOFT/3 and CRITCAL/HARD/4 the script will execute.
Running at command line as UID=nagios it runs fine.</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>sudo is configured
and nagios can mount NFS. </FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>The entry in the
nagios.log</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>[1268099555]
SERVICE_EVENT_HANDLER: my_host;NFS
CHECK;CRITCAL;SOFT;3;remount-nfs!CRITCAL!SOFT!3</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>I have followed the
process through and it will not execute the remount-nfs event handler command.
</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>What is
missing?</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial size=2>Many
thanks</FONT></SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010></SPAN> </DIV>
<DIV><SPAN class=640392601-09032010> </SPAN></DIV>
<DIV><SPAN class=640392601-09032010> </SPAN></DIV>
<DIV><SPAN class=640392601-09032010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<HR>The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through anti virus and spam software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.<BR>
</BODY></HTML>