Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


CBAND / General XML Query

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
eecue



Joined: 07 Nov 2002
Posts: 27
Location: Los Angeles, CA USA

PostPosted: Mon Jul 28, 2008 6:36 pm    Post subject: CBAND / General XML Query Reply with quote

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

PostPosted: Mon Jul 28, 2008 7:56 pm    Post subject: Reply with quote

Ok I need to set up a Data Query. Working on this now.

=]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group