Custom event handlers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cunningrat
Posts: 29
Joined: Mon Nov 18, 2013 5:51 pm

Custom event handlers

Post by cunningrat »

Okay. Let's say I'm trying to configure an event handler: if a particular service is down on the 3rd SOFT check, fire off a restart script on the remote machine. I got that part. My problem is, if I understand this correctly, my event handler overrides the default XI event handler. So if my restart script fails and the service stays down, the users won't get an email/page.

1) Am I understanding this correctly?

2) If so, do I need to replicate this functionality (user notifications) within my script?

3) Any hints on how to do that?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Custom event handlers

Post by abrist »

1) I don't think so. There is no default *event handler* on objects. There are default *notification handlers*, but they are applied and treated differently than an event handler.
2) nope.
3) In XI, the event handler dropdown should default to nothing. Choose your script for the event and then enable the event with the bullet below the dropdown.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked