Page 1 of 1
Rest API to trigger system commands
Posted: Mon Aug 07, 2017 1:21 pm
by karthek
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
Re: Rest API to trigger system commands
Posted: Mon Aug 07, 2017 3:50 pm
by cdienger
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.
Re: Rest API to trigger system commands
Posted: Tue Aug 08, 2017 8:00 am
by karthek
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?
Re: Rest API to trigger system commands
Posted: Tue Aug 08, 2017 2:05 pm
by cdienger
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 .
Re: Rest API to trigger system commands
Posted: Wed Aug 09, 2017 8:52 am
by karthek
Thanks! You may lock this thread.
Re: Rest API to trigger system commands
Posted: Wed Aug 09, 2017 9:53 am
by bolson
Closing topic as resolved.
Thank you for using the Nagios Support Forum.