Streamlining notifications in Nagios Core 4.1.1.
Streamlining notifications in Nagios Core 4.1.1.
We're currently getting notifications of servers and services via email and pagers sent to a handful of admins. We are hoping to discard the use of pagers for smartphones, and want to streamline the notifications so our phones don't get inundated with unneeded text msgs. Basically, we want to divide which alerts send txt msgs are sent to phones and which services are emailed to admins.
In a nutshell, what we'd like to do is :
get text msgs on phones for our Windows servers going down or recovering, and getting emails for other monitored services.
Could someone point me in the needed direction, as info on this would be appreciated...thanks!
In a nutshell, what we'd like to do is :
get text msgs on phones for our Windows servers going down or recovering, and getting emails for other monitored services.
Could someone point me in the needed direction, as info on this would be appreciated...thanks!
Re: Streamlining notifications in Nagios Core 4.1.1.
You would need to create two separate contacts for each person, and from there you can use contact groups to assign to the hosts / services as needed.
Here's a link to more information about contacts and contact groups -
https://assets.nagios.com/downloads/nag ... ml#contact
https://assets.nagios.com/downloads/nag ... ntactgroup
Here's a link to more information about contacts and contact groups -
https://assets.nagios.com/downloads/nag ... ml#contact
https://assets.nagios.com/downloads/nag ... ntactgroup
Former Nagios Employee
Re: Streamlining notifications in Nagios Core 4.1.1.
Thanks again!
Re: Streamlining notifications in Nagios Core 4.1.1.
Is there anything else we can do for you?
Former Nagios Employee.
me.
me.
Re: Streamlining notifications in Nagios Core 4.1.1.
Not at this time. Your help is appreciated.
Re: Streamlining notifications in Nagios Core 4.1.1.
Ok, I may have spoken too soon. I've been reviewing your links to contacts & contact groups but can't seem to make the pieces fit. I didn't initially setup our Nagios Core server so I'm wading through trying to see what is defined where. Each of the admins have to contact names: one for email and one for a pager. We're getting rid of the pager and using smartphones to receive txt alerts instead. Below is a part of our contacts.cfg file which might help. I'm by no means a programmer, so any help would be appreciated.
define contact{
contact_name patterse ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Ed Patterson ; Full name of user
email [email protected] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
#define contact{
# contact_name patterse-pager
# use ccvit-pager
# pager 2400603
# }
define contact{
contact_name patterse ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Ed Patterson ; Full name of user
email [email protected] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
#define contact{
# contact_name patterse-pager
# use ccvit-pager
# pager 2400603
# }
Re: Streamlining notifications in Nagios Core 4.1.1.
To clarify, what would you like to accomplish with that definition?
Former Nagios Employee
Re: Streamlining notifications in Nagios Core 4.1.1.
Well, I'd like to replace 'pager' with 'phone' or something similar to reflect the notification device. We want to be selective about who receives alerts about hosts being up or down via sms, and also using email for certain notifications of services.
Re: Streamlining notifications in Nagios Core 4.1.1.
I can gladly send more info from cfg files or whatever is needed. Just say the word...thanks.
Re: Streamlining notifications in Nagios Core 4.1.1.
Ok - you should be able to create a new contact then for each of the SMS contacts. From there use the contacts / contact groups to assign to the specific hosts / services you would like that receive alerts.
An email corresponding to their SMS email address will work for text alerts. Here's a list of more providers and their corresponding [email protected] address - http://www.notepage.net/smtp.htm
An example for Ed -
An email corresponding to their SMS email address will work for text alerts. Here's a list of more providers and their corresponding [email protected] address - http://www.notepage.net/smtp.htm
An example for Ed -
Code: Select all
define contact{
contact_name patterse-cell
use generic-contact
alias Ed Patterson
email [email protected]
}
Former Nagios Employee