Page 1 of 1

CLI or PHP info from Nagios

Posted: Thu Jan 10, 2013 9:29 pm
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

Re: CLI or PHP info from Nagios

Posted: Fri Jan 11, 2013 4:19 pm
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.