Nagios api

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagios_ant
Posts: 17
Joined: Tue Jul 11, 2017 2:03 am

Nagios api

Post by nagios_ant »

hi Team,
we have micro-services based architecture and we use Atlassian bamboo as our build and deployment tool.
We are planing to automate a process, in which when ever a new service is created in the build tool, it will first check whether the existing service( server+port) is configured in nagios, and if the service is not in nagios, this will automatically create nagios service.

Hope we can use the above method with the help of nagios api.
team, Any other options or suggestions

thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios api

Post by npolovenko »

Hello, @nagios_ant.
I'm not very familiar with Atlassian bamboo but looks like the process comes down to:
A) Checking whether a service with a given name already exists in Core Configurations Manager.
I suggest this query:
http://nagiosadmin:[email protected] ... erviceName

B) If it doesn't exist, create a new one. You can find the API commands you need in Help/ObjectsReference menu.
Untitled.png

Reference:
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
https://assets.nagios.com/downloads/nag ... gement.pdf
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked