Run Command When Service Down
Jeremy Kister
argus-03 at jeremykister.com
Sat May 17 20:51:06 EDT 2014
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
}
}
More information about the Arguslist
mailing list