Hello,
Is there a way to make bulk changes in order to add event handlers to a group of hosts/services? Apart from a lot of sed, that is.
Thanks as always,
-- Mike Beebe
Bulk Change: Event Handlers?
Re: Bulk Change: Event Handlers?
Do you have Nagios Enterprise add-on? If so, then you have the Bulk Change Tool in the Core Config Manager that will allow you to enable/disable the event handler for multiple services. It does not, however, let you specify what the event handler command is (this should be a feature request!)
The best thing you can do is to make a new service template that has the correct event handler information and then use the bulk change tool to apply the service template to multiple services. Then you've effectively added a layer of abstraction that does what you want.
But it still requires the bulk change tool. Otherwise, it's export/modify/import at the Nagios Core config file level.
The best thing you can do is to make a new service template that has the correct event handler information and then use the bulk change tool to apply the service template to multiple services. Then you've effectively added a layer of abstraction that does what you want.
But it still requires the bulk change tool. Otherwise, it's export/modify/import at the Nagios Core config file level.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Bulk Change: Event Handlers?
Thanks Eric! I'll put in a feature request for the setting the event handler command in the Bulk Mods Tool.
@mbeebe, Just let us know if you have any additional questions.
@mbeebe, Just let us know if you have any additional questions.
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: Bulk Change: Event Handlers?
Thanks, Ben and Eloyd;
Will Global Event Handlers do what I want? I need to add an event handler to every host and service I'm monitoring.
-- Mike Beebe
Will Global Event Handlers do what I want? I need to add an event handler to every host and service I'm monitoring.
-- Mike Beebe
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk Change: Event Handlers?
Global Event Handlers would do what you want if you want to add the same event handler to ALL hosts/services, but it cannot handle different handlers per host/service.
Re: Bulk Change: Event Handlers?
You could program logic into a global event handler that did different sub tasks for different services though.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk Change: Event Handlers?
trueeloyd wrote:You could program logic into a global event handler that did different sub tasks for different services though.
Re: Bulk Change: Event Handlers?
Can I please request this thread not be locked yet? I will have some other questions, but time prohibits me from asking them now.
Thanks,
-- Mike Beebe
Thanks,
-- Mike Beebe
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Bulk Change: Event Handlers?
No problem. We'll keep it open.Can I please request this thread not be locked yet? I will have some other questions, but time prohibits me from asking them now.
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: Bulk Change: Event Handlers?
Hello,
You may close this thread now as we're going to come at this from a different direction.
-- Mike Beebe
You may close this thread now as we're going to come at this from a different direction.
-- Mike Beebe