Hi,
Do we have an option to run system commands/scripts on XI servers through API. And can we get the status of XI components through API? ex: SNMP trap sender?
As far as i have learnt, we can manipulate host/s and services through REST API.
Version: Nagios XI 5.4.0
Rest API to trigger system commands
Rest API to trigger system commands
"Machines don't make mistakes, we do."
Re: Rest API to trigger system commands
The eventual goal for the API is for it "to do everything" but at this time running commands and checking the status of components is not available.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Rest API to trigger system commands
It would be great to have an fully functional API.
I have an idea to run a script on XI by sending passive (HARD DOWN) check to some dummy host through API and then having XI trigger the script through event handler.
What do you think?
I have an idea to run a script on XI by sending passive (HARD DOWN) check to some dummy host through API and then having XI trigger the script through event handler.
What do you think?
"Machines don't make mistakes, we do."
Re: Rest API to trigger system commands
There is the NRDP API you can use to submit passive checks. Access it by going to http://XI_SERVER_IP/nrdp/ and more info can be found at https://assets.nagios.com/downloads/nrd ... erview.pdf .
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Rest API to trigger system commands
Thanks! You may lock this thread.
"Machines don't make mistakes, we do."
-
bolson
Re: Rest API to trigger system commands
Closing topic as resolved.
Thank you for using the Nagios Support Forum.
Thank you for using the Nagios Support Forum.