I
am trying to integrate BMC Patrol into my current opsview build and am
having some issues getting alerts to call the event handler I am
using.  I it basically a shell script on a debian box that calls a BMC
Binary and populates it with nagios ENV Variables similar to something
notify-by-email does.  However, I am not seeing the handler get
executed and am not finding it anywhere in the logs stating it is
erroring out or otherwise.  Anyone have any other suggestions where I
can look or what I can try to find out why the event handler is not
being called on?
 
Here is my script.  And I am tying it directly to the service check using the 
eventhandler exception.
 
MCELL_DIR=/usr/local/nagios/mcell.dir
MSEND=/usr/local/nagios/msend
BUFF_DIR=/usr/local/nagios/msend_buffer
 
if [[ "$NAGIOS_SERVICESTATE" = "CRITICAL" ]]
then
#        echo "conditions match"
        # insert event handler action here...
 
$MSEND
-q -f $MCELL_DIR -n EP2 -a NAGIOS_EV -j $BUFF_DIR -b
"nagios_ipAddress=x.x.x.x;nagios_notificationtype=fred;nagios_server=opsview"
-m "$NOTIFICATIONTYPE$: $SERVICEDESC$ is $SERVICESTATE$ on host
$HOSTNAME$: $SERVICEOUTPUT$\n\nService: $SERVICEDESC$\ nHost:
$HOSTNAME$\nAlias: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\nComment: $SERVICEACKCOMMENT$
($SERVICEACKAUTHOR$)\nDate/Time: $LONGDATE TIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$"
 
fi
 
Any help is appreciated…Thanks.
 
~Phil                                     
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/201469229/direct/01/
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to