Disabling Active checks of host/hostgroup from command line

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Disabling Active checks of host/hostgroup from command line

Post 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
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Disabling Active checks of host/hostgroup from command l

Post 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 :)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Disabling Active checks of host/hostgroup from command l

Post by mcapra »

Awesome! Did you have additional questions regarding this topic, or can we close this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Disabling Active checks of host/hostgroup from command l

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Disabling Active checks of host/hostgroup from command l

Post by rkennedy »

Check the /usr/local/nagios/var/status.dat file which should have some sort of variables corresponding.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Disabling Active checks of host/hostgroup from command l

Post by tmcdonald »

Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Disabling Active checks of host/hostgroup from command l

Post by Ayush Jain »

Yeah, Thanks a lot for the information , its very helpful.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Disabling Active checks of host/hostgroup from command l

Post by cdienger »

Were there any further questions or are we ok to lock this?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked