Disable EH on NAGIOS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Nabi
Posts: 18
Joined: Thu Apr 12, 2018 7:13 am

Disable EH on NAGIOS

Post by Nabi »

Hello,

We have to disable EH on NAGIOS server when NAGIOS got crashed so we can decrease the load on the server.

However, when we do that from the GUI, then after some time it gets enabled on its own. Any idea please what is the reason?

We tried even via the CMD to modify some parameters like:

egrep -i "accept_passive_service_checks|retain_state_information" /usr/local/nagios/etc/nagios.cfg
accept_passive_service_checks=0
retain_state_information=0


Also we were not sure if this really can disable the EH or not as the GUI does not give correct information.

Any help please?

Thanks,

Nabi
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Disable EH on NAGIOS

Post by cdienger »

https://assets.nagios.com/downloads/nag ... t_handlers has information on disabling event handlers. Note that you may need to also disable state retention if it is enabled.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Nabi
Posts: 18
Joined: Thu Apr 12, 2018 7:13 am

Re: Disable EH on NAGIOS

Post by Nabi »

Thanks, yeah we were trying with these options, but it seems on the GUI for some reason it gets enabled on its own after some time.
So i am not sure if we still miss some option or we have some other issue..

Thanks,

Nabi
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Disable EH on NAGIOS

Post by cdienger »

Can you provide a copy of your nagios.cfg after you've edited it to disable event handlers?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Nabi
Posts: 18
Joined: Thu Apr 12, 2018 7:13 am

Re: Disable EH on NAGIOS

Post by Nabi »

Ok, if i could ask the question differently for now.

If we disable the EH via external command like this:

=================
now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'
 
/usr/bin/printf "[%lu] DISABLE_EVENT_HANDLERS\n" $now > $commandfile

=================

Is there any way please to show that EH is really disabled?


Thanks,

Nabi
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Disable EH on NAGIOS

Post by lmiltchev »

You can just run:

Code: Select all

grep enable_event_handlers /usr/local/nagios/var/status.dat
or

Code: Select all

grep enable_event_handlers /var/nagiosramdisk/status.dat
if you are using ramdisk
or

Code: Select all

grep enable_event_handlers /custom/path/to/the/status.dat
You should see:

Code: Select all

enable_event_handlers=0
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked