local and global event_handlers

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.
Locked
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

local and global event_handlers

Post by vvz »

Hello!
quick question - to enable local_event_handler we have to enable global_event_handler option in main config file.
In this case we are getting one event from global and one more from local event handler in /var/log/messages.
For sure I can assign fake script for global event handler, but - is there better way to get events only for local event handler (host or service)?
Thank you
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: local and global event_handlers

Post by slansing »

Well, I believe global event handlers are either on, or off, they are most typically seen as notification commands that are responsible for sending out email/sms/etc alerts upon host/service state changes. Though you can set up standard event handlers on a case by case basis as well. So, after that spiel, are you sure you want to disable them? If so, you can certainly do so that way.
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: local and global event_handlers

Post by vvz »

no, it was just a question.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: local and global event_handlers

Post by slansing »

Fair enough, I just wanted to make sure you understood it correctly, do you have further questions on it?
Locked