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
CLI or PHP info from Nagios
Re: CLI or PHP info from Nagios
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.