Run Command When Service Down
William Schroeder
wschroeder at expertnetworks.us
Sat May 17 20:53:30 EDT 2014
That's what I ended up doing something similar. Oddly though I sent the emails that just came through a couple of months ago. The use of notifyalso is probably a better way than I did it. I'll change mine to that, thank you for the feedback.
Will
-----Original Message-----
From: arguslist-bounces at tcp4me.com [mailto:arguslist-bounces at tcp4me.com] On Behalf Of Jeremy Kister
Sent: Sunday, May 18, 2014 02:51 AM
To: Discussion about Argus
Subject: Re: Run Command When Service Down
On 4/13/2014 9:37 AM, William Schroeder wrote:
> Is it possible to run a command when a service is down (preferably if
looks like <someone> just kicked the list. if you're still looking for a solution, you can use a notify method to kick off your code. it'll be triggered as soon as the object is "down".
Method "somemethod" {
qtime: 0
nolotsmsgs: yes
command: /usr/local/script/somescript -a %R }
Host "test1" {
Service Ping {
notifyalso: somemethod:
# or, to also send an argument-
#notifyalso: somemethod:someargument
}
}
_______________________________________________
http://argus.tcp4me.com/
Arguslist at tcp4me.com
http://www.tcp4me.com/mailman/listinfo/arguslist
More information about the Arguslist
mailing list