Nagios 4.2.0 support REST API POST ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Nagios 4.2.0 support REST API POST ?

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.2.0 support REST API POST ?

Post 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.
Former Nagios employee
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Nagios 4.2.0 support REST API POST ?

Post by nagmoto »

Thanks for the pointer on "POST" operation alternative (using NRDP), please close out this post.
Locked