Custom e-mail to customers when web app is down or recovered
Posted: Tue Jul 12, 2016 1:26 am
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
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