I have made some modifications to the
dtd sent out last week by Subhendu Ghosh. The changes are documented in
the dtd.
Does anyone know if there is already
a working version of a dtd for the configuration files? If not, I'm going
to have a go at it tonight.
Does the CVS version of Nagios 2.0 have
the daemon interface working for requesting the current status?
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<!--
XML DTD for Nagios status log:
$Revision: 1.2$
$Author: Subhendu Ghosh$
There are a number of data entities
used by Nagios for status and commands.
This is an initial draft of the XML
spec. covering 3 types of data entities
that need to be logged for status information.
There is a process entry - currently
only one (but we may want more if we
want to monitor the group of Nagios
daemons or a distributed setup)
The other 2 entries are for host status
and service status. The current
definitions borrow (shamelessly) from
Russell Scibetti's efforts at
documenting the status log data format.
(FAQ_id=66)
Additional acknowledgement for the XML
DTD is due to the Ganglia project.
Change History:
12/06/2003 Revision 1.2 by Daniel Koffler
-Changed
the structure slightly making hosts and services entries elements of the
nag_proc element instead of the root.
This
will allow status logs from multiple sources to be delivered in a single
document.
-Removed
parser specific datatypes (INT8, INT16, FLOAT) that do not appear in the
XML 1.0 specification.
-Changed
attribute datatypes to enumerated where relevant for stricter compliance
to this DTD
-Changed
HOST_NAME att in NAG_PROC to ID datatype & made it implied as it is
not actually in the status.log file.
-Changed
HOSTNAME att in HOST to ID datatype.
-Changed
SVC_DESC att in SERVICE to ID datatype.
-Changed
HOSTNAME att in SERVICE to IDREF datatype.
-->
<!DOCTYPE NAGIOS_STATUS_XML [
<!ELEMENT NAGIOS_STATUS_XML (NAG_PROC)+>
<!ATTLIST NAGIOS_STATUS_XML VERSION
CDATA #REQUIRED
NAME ID #REQUIRED
&nbs
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]