XML from Hobbit via url
Andrew Martin
agmweb at ilovemaths.co.uk
Sun May 25 12:27:01 CEST 2008
Hi,
This is my first post. I have searched the archives and the web as much as
possible but cant find anything so please point me in the right direction if
this has been covered before.
I'm trying to obtain xml from Hobbit so I can integrate the results into
other web based projects.
I can use the command
bb 127.0.0.1 "hobbitdxboard host=AServer"
within terminal to obtain the xml output below. This is suitable for the
purposes I require.
<?xml version='1.0' encoding='ISO-8859-1'?>
<StatusBoard>
<ServerStatus>
<ServerName>AServer</ServerName>
<Type>perf</Type>
<Status>green</Status>
<TestFlags></TestFlags>
<LastChange>Wed May 21 08:41:07 2008</LastChange>
<LogTime>Sat May 24 11:06:11 2008</LogTime>
<ValidTime>Sat May 24 11:36:11 2008</ValidTime>
<AckTime>N/A</AckTime>
<DisableTime>N/A</DisableTime>
<Sender>xxx.xxx.xxx.xxx</Sender>
<Cookie>N/A</Cookie>
<MessageSummary><![CDATA[status AServer.perf green Sat 24/05/2008
10:50:07]]></MessageSummary>
</ServerStatus>
</StatusBoard>
However, I'd like to obtain this output via a url.
For example,
http://<<hobbitserver>>/hobbit-cgi/bb-xmlreport.sh?HOST=AServer
would return the above xml. The host variable would of course need to be
passed appropriately to hobbitdxboard.
I'm not sure of how to correctly write my bb-xmlreport.sh file, or if im
going about this
the correct way or not.
Any help much appreciated.
Andrew
More information about the Xymon
mailing list