<br><font size=2 face="sans-serif">OK, I know there were a lot of problems
with the last "dtd" sent out (comments and all). </font>
<br>
<br><font size=2 face="sans-serif">While the Nagios configuration files
would do much better with a schema based design, a simple dtd is sufficient
for the status file for the moment. I'll try and pump out a schema design
for the statuslog file soon.  I am working on an entire XML tier for
interfacing with Nagios 1.x. I will release components as they become useful.
</font>
<br>
<br><font size=2 face="sans-serif">The first component I have is a small
Perl app that will create an XML document from the Nagios 1.0 status file
according to the dtd included in this message. This app can be used either
from the command-line (for pipeline processing) or as a CGI. Just change
the path to your status file in the first line of code (and make sure you
have setup permissions properly) and you should be good to go.</font>
<br>
<br><font size=2 face="sans-serif">This app can be used to integrate Nagios
status information into any application that understands XML. This weekend
I intend to setup a Sourceforge project for these components. The posted
version will also contain the ability to transform the XML via XSLT stylesheets
before outputting the data. I hope to have completed a sample Web UI for
reporting Nagios Status using these techniques.</font>
<br>
<br><font size=2 face="sans-serif">If anyone has any problems with this
code, please let me know. Also if anyone tries it on Nagios 1.1 I would
appreciate knowing how it works.</font>
<br>
<br><font size=2 face="sans-serif">Thanks, </font>
<br>
<br><font size=2 face="sans-serif">__________________<br>
Daniel Koffler<br>
dan@julieanddan.com<br>
Tel: 514.497.1411<br>
Fax: 206.600.4642<br>
GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F
A874 A2C6 DC83 </font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>John Arley Burns <johnarleyburns@yahoo.com></b>
</font>
<p><font size=1 face="sans-serif">17/06/2003 11:22 AM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">dan@julieanddan.com, nagios-devel@lists.sourceforge.net</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [Nagios-devel] status
log dtd again</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt><br>
Good start, but it would have to be substantially expanded to include<br>
everything currently in the Nagios config files.<br>
<br>
You might want to switch to XSchema since it's much clearer and allows<br>
for tighter definitions.<br>
<br>
PS Your DTD can't contain comments <!-- * --> within the element<br>
definition.<br>
<br>
--- dan@julieanddan.com wrote:<br>
<br>
---------------------------------<br>
<br>
Sorry about the html garbage in my lastpost, let's try that again<br>
<br>
<br>
__________________<br>
Daniel Koffler<br>
dan@julieanddan.com<br>
Tel: 514.497.1411<br>
Fax: 206.600.4642<br>
GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA<br>
AE8FA874 A2C6 DC83 <br>
<br>
<br>
<br>
> ATTACHMENT part 2 application/octet-stream<br>
name=nagios_status_log_dtd.xml<br>
<br>
<br>
</tt></font>
<br>