Rest API to trigger system commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Rest API to trigger system commands

Post 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
"Machines don't make mistakes, we do."
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Rest API to trigger system commands

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Rest API to trigger system commands

Post 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?
"Machines don't make mistakes, we do."
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Rest API to trigger system commands

Post 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 .
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Rest API to trigger system commands

Post by karthek »

Thanks! You may lock this thread.
"Machines don't make mistakes, we do."
bolson

Re: Rest API to trigger system commands

Post by bolson »

Closing topic as resolved.

Thank you for using the Nagios Support Forum.
Locked