Page 1 of 1
Nagios questions - down duration and multiple email notify
Posted: Fri Dec 09, 2016 4:51 am
by soamz
Hi, we use nagios for monitoring over 300+ devices and it works WOW.
Just 2 things, Im trying to achieve.
1. In the notification emails, I need it to show the duration also.
For example,
The monitor CISCOABC-POPSWITCH (103.111.111.12) is back UP (Host Is Reachable) (It was down for 3 hours, 45 minutes and 15 seconds).
2. I need to send the nagios notifications to multiple emails, like 2 emails right now.
Both are gmail Ids only.
How do we achieve ?
Re: Nagios questions - down duration and multiple email noti
Posted: Fri Dec 09, 2016 5:06 am
by rhassing
For the multiple mail addresses you can use contactgroups.
A contactgroup can maintain multiple contacts.
Re: Nagios questions - down duration and multiple email noti
Posted: Fri Dec 09, 2016 12:57 pm
by mcapra
soamz wrote:In the notification emails, I need it to show the duration also.
You may find the $SERVICEDURATION$ and $HOSTDURATION$ macros useful:
https://assets.nagios.com/downloads/nag ... ceduration
https://assets.nagios.com/downloads/nag ... stduration
soamz wrote:I need to send the nagios notifications to multiple emails, like 2 emails right now.
As
@rhassing indicated, contactgroups are the perfect candidate for this:
https://assets.nagios.com/downloads/nag ... ntactgroup
You could include multiple members in this contactgroup (contact1,contact2,alice,bob,etc) then assign the contactgroup to your service.
Re: Nagios questions - down duration and multiple email noti
Posted: Sat Dec 10, 2016 6:48 am
by soamz
Awesome thanks.
So, better to use both service and host then ?
I see both have the vars.
Re: Nagios questions - down duration and multiple email noti
Posted: Mon Dec 12, 2016 10:58 am
by rkennedy
You can specify your contacts or contactgroups at either level, host or service. It really depends on how you want your notifications to flow, so I'm not sure how to answer your question.
Re: Nagios questions - down duration and multiple email noti
Posted: Mon Dec 12, 2016 11:15 am
by soamz
email thing is done already
But stuck at the notification downtime thing.
Re: Nagios questions - down duration and multiple email noti
Posted: Mon Dec 12, 2016 12:21 pm
by dwhitfield
soamz wrote:
But stuck at the notification downtime thing.
What version of Core are you using? 4.2 and newer made several improvements to downtime. Upgrade instructions at
https://assets.nagios.com/downloads/nag ... ading.html. Also, there are important security updates, so if you aren't running the latest, I would highly suggest upgrading.
Please let us know if that does not resolve your issue.
Re: Nagios questions - down duration and multiple email noti
Posted: Tue Dec 13, 2016 1:13 am
by soamz
Im using
NagiosĀ® Coreā¢
Version 4.1.1
Upgrading it, breaks my Nagios.
Re: Nagios questions - down duration and multiple email noti
Posted: Tue Dec 13, 2016 10:16 am
by dwhitfield
Well, that's no good! How does it break? Did you compile from source or install from distribution repos?
Also, I just want to clarify, the issue you were having in your first post in this thread is fixed. The downtime thing is a new issue, right? I just want to be sure if anyone else jumps in that they are looking at the correct issue (and of course that I am too!).