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
Disabling Active checks of host/hostgroup from command line
-
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Disabling Active checks of host/hostgroup from command l
You can do many things via the external commands available to Nagios Core:
https://old.nagios.org/developerinfo/ex ... ndlist.php
For services under a hostgroup:
https://old.nagios.org/developerinfo/ex ... mand_id=84
https://old.nagios.org/developerinfo/ex ... mand_id=83
For services under a host:
https://old.nagios.org/developerinfo/ex ... mand_id=34
https://old.nagios.org/developerinfo/ex ... mand_id=33
https://old.nagios.org/developerinfo/ex ... ndlist.php
For services under a hostgroup:
https://old.nagios.org/developerinfo/ex ... mand_id=84
https://old.nagios.org/developerinfo/ex ... mand_id=83
For services under a host:
https://old.nagios.org/developerinfo/ex ... mand_id=34
https://old.nagios.org/developerinfo/ex ... mand_id=33
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Disabling Active checks of host/hostgroup from command l
Hey thanks man thats the thing i was searching for
will check and get back if any help will be required.
thanks again
will check and get back if any help will be required.
thanks again
Re: Disabling Active checks of host/hostgroup from command l
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/
https://www.mcapra.com/
-
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Disabling Active checks of host/hostgroup from command l
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
Check the /usr/local/nagios/var/status.dat file which should have some sort of variables corresponding.
Former Nagios Employee
Re: Disabling Active checks of host/hostgroup from command l
Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
-
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Disabling Active checks of host/hostgroup from command l
Yeah, Thanks a lot for the information , its very helpful.
Re: Disabling Active checks of host/hostgroup from command l
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.