Acknowledgement triggered actions

Tedman Eng teng at dataway.com
Tue Apr 25 20:46:33 CEST 2006


Can you change one of your contacts to use a different notification command?
Something like this:

define command{
        command_name    host-notify-normal
        command_line    notify.sh "normal" "$HOSTNAME$" "$HOSTSTATE$"....}

define command{
        command_name    host-notify-with-actions
        command_line    notify.sh "action" "$HOSTNAME$" "$HOSTSTATE$....}


Your same notification script would then just have to look for
"action/normal" and perform the extra actions or not.


> -----Original Message-----
> From: Kyle Tucker [mailto:kylet at panix.com]
> Sent: Tuesday, April 25, 2006 7:04 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Acknowledgement triggered actions
> 
> 
> Hi all,
> 	I have modified my notifications command such that 
> it checks that if $NOTIFICATIONTYPE = "ACKNOWLEDGEMENT" 
> then I am kicking off a couple actions; a snmpget and then
> an external Nagios command to submit the service check. But
> it runs the notification command for each recipient and I
> only want to trigger these actions once per acknowledgment.
> Any thoughts where I could tap into the CGI's action to
> kick off my triggers? I'm trying to avoid writing some
> elaborate tracing mechanism into my notification command.
> Thanks.
> 
> -- 
> - Kyle 
> ---------------------------------------------
> kylet at panix.com   http://www.panix.com/~kylet    
> ---------------------------------------------
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
dat=121642
_______________________________________________
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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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