[rt-users] http-datacollection-config.xml regex
b-boy
thys.kitshoff at rocketseed.com
Mon Mar 9 07:08:23 EDT 2009
OOPS !!!
Sorry, I posted in the wrong place please ignore my mail
b-boy wrote:
>
> Hi all
>
> I have setup the http data collection but it’s not adding any data to my
> /share/rrd/snmp/ folder , I have a feeling I screwed something up with my
> regex statement, could someone please have a look at it and point me in
> the right direction?
>
> The page I’m pulling the data from looks like this
>
> 1199344091,1195804426,0.21,0.13,0.05,1982798,1380132,3965678,2910720,61319248,54165068,0,4,25,1,0,548,5.0.7
>
>
> Raw file
> <html><head></head><body>1199344091,1195804426,0.21,0.13,0.05,1982798,1380132,3965678,2910720,61319248,54165068,0,4,25,1,0,548,5.0.7</body></html>
>
>
> And this is my collector configuration
>
> <?xml version="1.0" encoding="UTF-8"?>
> <http-datacollection-config
>
> xmlns:http-dc="http://xmlns.opennms.org/xsd/config/http-datacollection"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://xmlns.opennms.org/xsd/config/http-datacollection
> http://www.opennms.org/xsd/config/http-datacollection-config.xsd"
> rrdRepository="/usr/opennms/share/rrd/snmp/" >
>
> <http-collection name="medic">
> <rrd step="300">
> <rra>RRA:AVERAGE:0.5:1:8928</rra>
> <rra>RRA:AVERAGE:0.5:12:8784</rra>
> <rra>RRA:MIN:0.5:12:8784</rra>
> <rra>RRA:MAX:0.5:12:8784</rra>
> </rrd>
> <uris>
> <uri name="medic">
> <url path="/RocketSeed/medic_stat.htm"
>
> matches="matches="<body>*([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*)"**"
> response-range="100-399" >
> </url>
> <attributes>
> <attrib alias="rsTimestamp" match-group="1" type="gauge32"/>
> <attrib alias="rsUptime" match-group="2" type="gauge32"/>
> <attrib alias="rsLoadave1" match-group="3" type="gauge32"/>
> <attrib alias="rsLoadave5" match-group="4" type="gauge32"/>
> <attrib alias="rsLoadave15" match-group="5" type="gauge32"/>
> <attrib alias="rsHDrootTotal" match-group="6" type="gauge32"/>
> <attrib alias="rsHDrootAvail" match-group="7" type="gauge32"/>
> <attrib alias="rsHDusrTotal" match-group="8" type="gauge32"/>
> <attrib alias="rsHDusrAvail" match-group="9" type="gauge32"/>
> <attrib alias="rsHDvarTotal" match-group="10" type="gauge32"/>
> <attrib alias="rsHDvarAvail" match-group="11" type="gauge32"/>
> <attrib alias="rsReceive" match-group="12" type="gauge32"/>
> <attrib alias="rsSend" match-group="13" type="gauge32"/>
> <attrib alias="rsQcount" match-group="14" type="gauge32"/>
> <attrib alias="rsDNS" match-group="15" type="gauge32"/>
> <attrib alias="rsO" match-group="16" type="gauge32"/>
> <attrib alias="rsCounter" match-group="17" type="gauge32"/>
> <attrib alias="rsVersion" match-group="18" type="gauge32"/>
> </attributes>
> </uri>
> </uris>
> </http-collection>
>
>
--
View this message in context: http://www.nabble.com/http-datacollection-config.xml-regex-tp22411055p22411088.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users
mailing list