Hello,
We have setup different host which share service checks. For example check_cpu.
Would it be possible to send a service notification to a group of users for a specific host?
For example we have a host in USA and a host in the Netherlands and both will have the same service check (check_cpu).
If the CPU check in USA fails, I only want the people in the USA to be notified and no notification to the Netherlands.
Do I need to create two different service checks ie. check_cpu_usa and check_cpu_nl or is there another way to distinguis the notification group?
Best regards,
Rob Hassing
Notification for services for a specific host
Notification for services for a specific host
Rob Hassing


-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Notification for services for a specific host
Hi Rob,
https://assets.nagios.com/downloads/nag ... tance.html
Let me know if that would work for your situation.
Best Regards,
Benjamin
If you don't assign a notification contact to the service itself, it will pull the contacts from the host using implied inheritance. For more of the rules, take a look a the following doc.Would it be possible to send a service notification to a group of users for a specific host?
https://assets.nagios.com/downloads/nag ... tance.html
Let me know if that would work for your situation.
Best Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notification for services for a specific host
Hello,
This will not work in all cases, as there are different contacts for the services on 1 host.
If a contact is defined on the service, I assume it will not inherit the contacts defined on the host as well.
Best regards,
Rob Hassing
This will not work in all cases, as there are different contacts for the services on 1 host.
If a contact is defined on the service, I assume it will not inherit the contacts defined on the host as well.
Best regards,
Rob Hassing
Rob Hassing


-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Notification for services for a specific host
Hi Rob,
That's right if there are contacts assigned at the service level that type of inheritance is not going to kick in. Another option would be to use Escalations as they will take priority over standard notifications. If you have two hostgroups, say USA and Netherlands, and then apply the service to those two host groups. You should be able to create separate service escalations for each host group and notify the different contacts.
The other option would take some custom scripting for the notification handlers (e.g. a wrapper script) to make this work using the macros provided by Core to run logic checks on the hosts and then notify the corresponding contacts.
--Benjamin
That's right if there are contacts assigned at the service level that type of inheritance is not going to kick in. Another option would be to use Escalations as they will take priority over standard notifications. If you have two hostgroups, say USA and Netherlands, and then apply the service to those two host groups. You should be able to create separate service escalations for each host group and notify the different contacts.
The other option would take some custom scripting for the notification handlers (e.g. a wrapper script) to make this work using the macros provided by Core to run logic checks on the hosts and then notify the corresponding contacts.
--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notification for services for a specific host
Thank you very much for this information. I will discuss the different options with the customer and see which option will fulfill their needs.
Best regards,
Rob
Best regards,
Rob
Rob Hassing


-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Notification for services for a specific host
Hi Rob,
Sounds good. We'll keep this open if you have any other questions.
Have a great weekend!
Sounds good. We'll keep this open if you have any other questions.
Have a great weekend!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!