How to limit the amout of SMS notifications?
Andrew Thompson
andrew at fulgent.co.uk
Tue Nov 15 15:50:20 CET 2011
Thanks Assaf
I can a quick look at those but I didn't think it suited my needs.
Now I have had a play I have come up with the following
(rules have slightly changed)
Now I want the following
Notification No.................Time Host Down...................Notification Method
.........1................................3 min.....................................Email............
.........2................................8 min.....................................Email............
.........3...............................13 min....................................Email, SMS..
.........4...............................18 min....................................Email............
.........5...............................23 min....................................Email............
.........6...............................28 min....................................Email............
.........RECOVER.....................?????.....................................Email, SMS..
I have managed it with the following escalations
define hostescalation{
host_name.....................................Test Switch
first_notification.............................1
last_notification.............................5
notification_interval.......................5
contact_groups.............................admin email
escalation_options........................d,r
}
define hostescalation{
host_name.....................................Test Switch
first_notification.............................3
last_notification.............................3
notification_interval.......................5
contact_groups.............................admin sms
escalation_options........................d,r
}
define hostescalation{
host_name.....................................Test Switch
first_notification.............................6
last_notification.............................0
notification_interval.......................0
contact_groups.............................admin email
escalation_options........................d,r
}
I get 6 emails as I should at N1-6, I get the SMS at N3.
I also get the recovery email but I don't get the recovery SMS.
Is this because I told it not to text me again after N3, and this also includes recovery alerts?
Thanks
Kind Regards
Andrew
From: Andrew Thompson
Sent: 15 November 2011 10:20
To: 'nagios-users at lists.sourceforge.net'
Subject: How to limit the amout of SMS notifications?
Hi all,
I have Nagios 3.3.1 setup on Ubuntu Desktop 11.04.
I monitor approx. 70 hosts (mixture of Windows Servers, Switches, Firewalls) by PING only.
Down hosts are notified to me via email and SMS at the moment.
What I would like to so is limit the amount of SMS messages that are sent from my Nokia phone connected to my Ubuntu box.
As it stands I allow 3 checks 1 minute apart before I am alerted via email - after that I am alerted via email every 5 minutes until recovery.
I have just implemented the phone to SMS alerts aswell but I want to limit the amount of texts as I don't want a text every 5 minutes until recovery for sanity reasons and also cost reasons!
This is what I would like to happen If a host goes down:
Email and SMS to be sent out on the 3rd failed check to the host (So 1st alert is sent out after 3 minutes of the host being down.)
Then......
I want to be alerted via email every 5 minutes until the host recovers
But......
I only want 2 more SMS after the initial SMS, 5 minutes apart and then no more SMS until the host is recovered. So I want an SMS after 3, 8 and 13 minutes of the host being down, then a recovery SMS.
Is this possible?
Thanks in advance
Kind Regards
Andrew
T: 01386 834000
F: 01386 834100
Andrew at fulgent.co.uk<mailto:Andrew at fulgent.co.uk>
www.fulgent.co.uk<http://www.fulgent.co.uk/>
Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, Evesham, WR11 8JJ. This communication contains information which is confidential and may also be privileged or protected by copyright. It is for the exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information is prohibited. If you have received this communication in error, please telephone us immediately and also delete the communication from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111115/e1310656/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list