Hello Team,
1) I want to execute Event handler on some different host, so I need your help to do that.
For Example: Assume we have a Nagios server and 2 clients or Host : Client 1 and Client 2. Now if notification service get down in Client 1 so I want to execute some service in Client 2.
2) I also want to execute Event handler on host groups.
Need Event Handler execute on specified Host or Client
Re: Need Event Handler execute on specified Host or Client
#2 first: Event handlers occur on hosts and services. Not groups of hosts or services. So make a host template called "event handler hosts" and set the event handler on that template and assign a hostgroup to that template. Then use that template to assign to your hosts and now you've assigned a host group and an event handler with one template.
#1 next: See your other question about event handlers. Then read the event handler documentation at https://assets.nagios.com/downloads/nag ... dlers.html. Event handlers can be specific to each host or service and custom for that host/service. Or you can make them generic and pass in the information that they need to know what host or service they're running on so the script can make decisions about what actions to take.
#1 next: See your other question about event handlers. Then read the event handler documentation at https://assets.nagios.com/downloads/nag ... dlers.html. Event handlers can be specific to each host or service and custom for that host/service. Or you can make them generic and pass in the information that they need to know what host or service they're running on so the script can make decisions about what actions to take.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Event Handler execute on specified Host or Client
It just dawned on me that you may be talking about service dependencies for #1. If you just want to execute service check 2 when service check 1 is in a failure state, then that's a service dependency.
Re: Need Event Handler execute on specified Host or Client
Thanks eloyd!
anjali, let us know if you have any questions or need any clarification.
anjali, let us know if you have any questions or need any clarification.
Re: Need Event Handler execute on specified Host or Client
Thanks, Team.
I achieve that by using argument in a custom command.
I achieve that by using argument in a custom command.
Re: Need Event Handler execute on specified Host or Client
Did the custom command solve your issue? If so, I will close the thread.
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: Need Event Handler execute on specified Host or Client
Yes, it solves my issue, you can close that thread.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need Event Handler execute on specified Host or Client
Great!anjali wrote:Yes, it solves my issue, you can close that thread.
Locking