Page 1 of 1
Disabling Active checks of host/hostgroup from command line
Posted: Fri Feb 17, 2017 2:22 pm
by Ayush Jain
Hi,
Can you please help me in getting, How can i disable/enable active checks for all services in host/hostgroup but not from UI
I want to perform above task using command line through script.
Nagiosxi version :5.4.0
Thanks and Regards,
Ayush Jain
Re: Disabling Active checks of host/hostgroup from command l
Posted: Fri Feb 17, 2017 3:13 pm
by mcapra
Re: Disabling Active checks of host/hostgroup from command l
Posted: Fri Feb 17, 2017 3:28 pm
by Ayush Jain
Hey thanks man thats the thing i was searching for
will check and get back if any help will be required.
thanks again

Re: Disabling Active checks of host/hostgroup from command l
Posted: Mon Feb 20, 2017 12:15 pm
by mcapra
Awesome! Did you have additional questions regarding this topic, or can we close this thread and mark the issue as resolved?
Re: Disabling Active checks of host/hostgroup from command l
Posted: Tue Feb 28, 2017 12:25 am
by Ayush Jain
one more question please , in above links we have to enable and disable.Is there any command to check whether its disabled or enabled ( notification/active checks ) at this point of time.
Re: Disabling Active checks of host/hostgroup from command l
Posted: Tue Feb 28, 2017 1:13 am
by rkennedy
Check the /usr/local/nagios/var/status.dat file which should have some sort of variables corresponding.
Re: Disabling Active checks of host/hostgroup from command l
Posted: Wed Mar 01, 2017 2:32 pm
by tmcdonald
Did
@rkennedy's post clear things up or has the issue otherwise been resolved?
Re: Disabling Active checks of host/hostgroup from command l
Posted: Wed Mar 08, 2017 1:42 pm
by Ayush Jain
Yeah, Thanks a lot for the information , its very helpful.
Re: Disabling Active checks of host/hostgroup from command l
Posted: Wed Mar 08, 2017 6:01 pm
by cdienger
Were there any further questions or are we ok to lock this?