I second livestatus, we use it all the time, plus there is a webservice as well, livestatusSlave which might work better with your php.
http://nagios.larsmichelsen.com/livestatusslave/ Dan -----Original Message----- From: C. Bensend [mailto:be...@bennyvision.com] Sent: Wednesday, May 16, 2012 7:01 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Querying nagios object information through command line > Is there a script or a module that can be called through a command line > and can retrieve nagios object definition , host , service? > > I am thinking of calling from php program. > > I found that config.cgi has an ability of fetching the object definition > but it seems that it returns html info. > > It would be helpful if someone can share their thoughts. Livestatus can do this, and it's MUCH quicker/more lightweight/better (IMHO) than NDOUtils. http://mathias-kettner.de/checkmk_livestatus.html Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null