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
103431
Files:
FileDescription
statusXML.phpstatusXML.php
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.