backend API for Nagios Core

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
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

backend API for Nagios Core

Post by lafargeuser »

Nagios XI includes a backend API that allows developers to pull current status information and more in XML format for use by external systems. This API makes it easy to integrate Nagios information into third-party applications.

But can be this possible with Nagios core. I have to get working similarily in core for backeend API.
How do I do that ? Or is this only available with Nagios XI ? Pls. clarify.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: backend API for Nagios Core

Post by abrist »

You can write a script that parses status.dat and objects.cache. But more often people just use the cgis for pulling information, though you do need parsing skills in order to scrape the web content for what you are looking for. You can also look at mklivestatus as that will provide a way of pulling info from nagios through their json interface.

Additionally, you could build the json cgi branch of core 4 - this branch includes json cgis that can be queried through ajax requests. See the following presentation from the last conference (shameless plug):
http://www.youtube.com/watch?v=kFJrEdeCqfg
http://www.slideshare.net/nagiosinc/eri ... and-nagios
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked