CLI or PHP info from Nagios

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
estebanmonge
Posts: 50
Joined: Mon Feb 06, 2012 11:13 pm

CLI or PHP info from Nagios

Post by estebanmonge »

Hello I want retrieve information from Nagios via CLI or PHP, but without third party add-ons.

I want one way similar to mklivestatus and LQL queries.

Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: CLI or PHP info from Nagios

Post by mguthrie »

Without an addon like mklivestatus or ndoutils, you have to parse the information from the status.dat and objects.cache file. There are also some projects on exchange that have XML and JSON versions of the web CGI's that you can use to fetch the information that way.
Locked