|
|
| Author |
Message |
eecue
Joined: 07 Nov 2002 Posts: 27 Location: Los Angeles, CA USA
|
Posted: Mon Jul 28, 2008 6:36 pm Post subject: CBAND / General XML Query |
|
|
I would like to read data from the XML output of mod_cband. Mod_cband allows you to track the traffic of each of your apache virtual hosts. Here is what the XML output looks like:
| Code: | <?xml version="1.0" encoding="iso-8859-1"?>
<mod_cband>
<Server>
<uptime>0W 0D 00:11:02</uptime>
</Server>
<Virtualhosts>
<example.org>
<port>0</port>
<line>6</line>
<limits>
<total>0KiB</total>
<kbps>0</kbps>
<rps>0</rps>
<connections>0</connections>
</limits>
<usages>
<total>7266809KiB</total>
<kbps>34.63</kbps>
<rps>0.32</rps>
<connections>7</connections>
</usages>
<time_to_refresh>never</time_to_refresh> <user>none</user>
<scoreboard>/var/run/apache2/example.org.scoreboard</scoreboard>
<limit_exceeded_URL>none</limit_exceeded_URL>
</example.org>
</VirtualHosts>
</mod_cband>
|
It has a tag inside VirtualHosts for each of my virtual hosts. I would like to somehow write a script or import that can just pull all those values just like the network interface plugin works.
What is the best way to make this happen? |
|
| Back to top |
|
 |
eecue
Joined: 07 Nov 2002 Posts: 27 Location: Los Angeles, CA USA
|
Posted: Mon Jul 28, 2008 7:56 pm Post subject: |
|
|
Ok I need to set up a Data Query. Working on this now.
=] |
|
| Back to top |
|
 |
|