Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hey people
I need your suggestion. I have setup a notification service by phone and getting the calls whenever services or hosts go down. But there is a twist that we are getting calls for recovery services/hosts too that we don't want it. But we want the emails for recovery services/host only.
However if I remove the "" r "" option from the notification (template.cfg), this will not call for recovery service but will not send email too. Any suggestion would be appreciated.
Thanks
You may need two separate contacts in Nagios for each real person: one with an e-mail address that receives all notifications and one with a phone address that doesn't receive recovery notifications.
cbeattie wrote:You may need two separate contacts in Nagios for each real person: one with an e-mail address that receives all notifications and one with a phone address that doesn't receive recovery notifications.
define contact {
name cesar-phone
use generic-contact
contactgroups support
pager xxxxx
}
define contact {
name cesar-email
use generic-contact-email
contactgroups support
email [email protected]
}
And both contacts are set to receive notifications from those hosts and services? It could be either by being directly assigned or as a member of the "support" contactgroup in the example.
define contact {
name cesar-phone
use generic-contact
contactgroups support
pager xxxxx
}
define contact {
name cesar-email
use generic-contact-email
contactgroups support
email [email protected]
}
And both contacts are set to receive notifications from those hosts and services? It could be either by being directly assigned or as a member of the "support" contactgroup in the example.
So now i have made the new contact but still not able to receive RECOVERY emails. my templates are still same like above
Can you manually define the recovery definitions in that contact and try using it without a template? Also, what do your host/service notification options look like in the actual host/service definition?
slansing wrote:Can you manually define the recovery definitions in that contact and try using it without a template? Also, what do your host/service notification options look like in the actual host/service definition?
You know what whatever you told me to make a change, i did and its working now BUT if i put notification option only "" r "" it doesn't work but if i add any other option "" f "" it works. Weird thing. its okay to keep both option for me so thats fine.
Thanks for your help.