Custom e-mail to customers when web app is down or recovered

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rubbens16
Posts: 4
Joined: Mon Jul 11, 2016 9:34 am

Custom e-mail to customers when web app is down or recovered

Post by rubbens16 »

I've set up Nagios to monitor some internal and cloud servers. My customers asks to be notified when a web app is down.

Is it a good idea to use Nagios for this as well?

I was thinking of the following setup:
- Define 2 commands: one with a custom message when the web app goes down and another when the web app is recovered
- Define 2 contacts: one who is linked to the down-command and another contact that is triggered in case of a recovery and linked to the recovery-command
- Define 1 contact-group: containing the two contacts
- Define 1 host-escalation on the web server to escalate the topic to the contact-group

I want to be informed as soon as the web server goes down. But after 30 minutes or so, I would like to inform my customers. That would leave me time to try to recover the web server. That's why I was thinking of working with an escalation group.

So far, this setup didn't work. But before I start digging to make sure I've set it up correctly, I would like to know if this would be the way to set this up? Or should I not use an escalation group for this and use another method?

Tx for your advice

-- Ivan
rubbens16
Posts: 4
Joined: Mon Jul 11, 2016 9:34 am

Inform customers when web app is down

Post by rubbens16 »

What would be the best way to inform customers when web app is down or recovered?

I want to inform my customers 30 minutes after the web app goes down. That would leave us a 30 min. window to try to fix the issue. I also would like a more friendly e-mail (perhaps a different e-mail when the app goes down and another when it is recovered).

What would be the best way to go forward with this setup?

Ivan
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Custom e-mail to customers when web app is down or recov

Post by rkennedy »

The scenario you described should work, you might find it easy to use event handlers that will trigger on any state change, rather then going the contact route. Just have your event handler detect if it's back in an OK state, and trigger whatever script you'd like it to run.

As for the notifications, you'll want to take a look here at the notification_options. https://assets.nagios.com/downloads/nag ... tions.html

For more information about escalations, see this document - https://assets.nagios.com/downloads/nag ... ations.pdf

Event handlers - https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios Employee
Locked