command line enabling/disabling checks and notifications
Posted: Wed Apr 09, 2014 8:39 am
As part of a event handler script on an HA nagios XI server pair, I want to write a script that takes a list of hostnames and enables notification and active checks for all services and the host itself. This will be run from the inactive failover Nagios XI server upon determining that the active Nagios XI server is not running properly.
This script can run on localhost. I assume that this script will probably use wget or curl to access the web interface and is a variation on the url below. Can you assist me with the URL to enable and disable notifications and active checks? Thanks!
https://<host>/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=rubyext-00-ls#
This script can run on localhost. I assume that this script will probably use wget or curl to access the web interface and is a variation on the url below. Can you assist me with the URL to enable and disable notifications and active checks? Thanks!
https://<host>/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=rubyext-00-ls#