Hello,
I need to have different notification for different states (hosts and services) is it possilbe to do this,
without creating the same contact two times?
For example i want to get notified by SMS for critical states and for all the other states i want to get an email.
Is it possible to create two different templates of contact with diferent notification method and use in the definition of contact both of these?
Thank you.
How can I have different Notification For Diferrent states?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: How can I have different Notification For Diferrent stat
Well you would more than likely need to create a contact group, that contains your two contact's. They would both receive the notifications that their contact definition allows them to "w,c,u,s,r, etc."
Re: How can I have different Notification For Diferrent stat
Or write a notification script that can differentiate between the types of alerts and send the alert to the appropriate address.
Re: How can I have different Notification For Diferrent stat
^This. It can be done as others have done so. You will need to make use of a number of nagiso macros. If you choose this route, I would suggest that you start with the following documents:grimm26 wrote:Or write a notification script that can differentiate between the types of alerts and send the alert to the appropriate address.
http://nagios.sourceforge.net/docs/3_0/macrolist.html
http://nagiosplug.sourceforge.net/devel ... lines.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.