Home Directory Addons APIs XML Status XML Generator

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Status XML Generator

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
License
GPL
Hits
103056
Files:
FileDescription
statusXML.phpstatusXML.php
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
statusXML.php is a simple PHP script that parses a local status.dat file and generates a simple XML description of the status of all hosts and services.
statusXML.php simply parses that Nagios status.dat file (at a location specified in the script) and generates a simple XML file containing the status information of all hosts and services. The PHP script can be run either from the command line or via a web server. Though its original use was to provide Nagios status information to an administrative portal page, it can be used whenever you need detailed status information from Nagios in an easy-to-parse format, and especially when serving raw status data (as XML) is required. The XML tags within each servicestatus and hoststatus entry are mostly identical to the field names in the status.dat file for ease of use. (Updated 2009-02-06 for Nagios3 compatibility).

Thanks to a contributor, this is also available as a native module for PHP, written in C.