Page 1 of 1

Nagios 4.2.0 support REST API POST ?

Posted: Fri Aug 12, 2016 5:58 pm
by nagmoto
From jsonqery.html interface, I only see query operation but not post to do update

https:/nagios.test.com/nagios/jsonquery.html

Searching around, looks like only Nagios XI support POST.

Question is how do I do REST post operation ?
ie, To trigger an alert from other system for a host using REST post operation.

Re: Nagios 4.2.0 support REST API POST ?

Posted: Mon Aug 15, 2016 9:39 am
by tmcdonald
If you want to update a host/service's status you are essentially talking about passive checks, for which you should be using NRDP:

https://github.com/NagiosEnterprises/nrdp

If you are looking to create a new config with an API, that is only available in XI.

Re: Nagios 4.2.0 support REST API POST ?

Posted: Tue Aug 16, 2016 6:31 pm
by nagmoto
Thanks for the pointer on "POST" operation alternative (using NRDP), please close out this post.