Page 1 of 1

backend API for Nagios Core

Posted: Mon Feb 03, 2014 4:25 am
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.

Re: backend API for Nagios Core

Posted: Mon Feb 03, 2014 11:48 am
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