Skip to Content.
Sympa Menu

perfsonar-user - No match from MA - format of RRD file ?

Subject: perfSONAR User Q&A and Other Discussion

List archive

No match from MA - format of RRD file ?


Chronological Thread 
  • From: Sven Ubik <>
  • To: <>
  • Subject: No match from MA - format of RRD file ?
  • Date: Tue, 20 Dec 2005 12:25:12 +0100 (CET)

Hi all,

I am getting "No match" results from our MA. I guess that it can be
related to RRD file format required by MA. I created RRD file like this:

rrdtool create myrouter.rrd --start 0 --step 1 \
DS:in:COUNTER:5:U:U \
RRA:AVERAGE:0.5:1:60 \
RRA:AVERAGE:0.5:5:60

and I am filling it like this:

while true; do
snmpget -v 2c -c commodity r85.cesnet.cz ifInOctets.72 > tmp

# $timestamp obtained and $in extracted here

rrdtool update myrouter.rrd $timestamp:$in
sleep 1;
done

I can query RRD by fetch:

rrdtool fetch myrouter.rrd AVERAGE -s 1135004260 -e 1135004275 -r 5

1135004265: 2.2407650400e+07
1135004270: 2.1342136200e+07
1135004275: 4.6648000000e+03

But when I try the same query from Java test client with these parameters:

<select:parameter name="startTime">1135004260</select:parameter>
<select:parameter name="endTime">1135004275</select:parameter>
<select:parameter name="consolidationFunction">AVERAGE</select:parameter>
<select:parameter name="resolution">5</select:parameter>

I get:

<perfsonar:datum value="No Match" /></perfsonar:data>

I am getting the same result from Python client.

Our service.properties on MA includes:

# location of rrd configuration file
service.ma.rrd.conf_file=/usr/local/sonar/perfsonar/conf/cesnet.xml

Attached are these files:

client-run-targets.xml for "ant run-cesnet"
cesnet.xml refered from service.properties on MA
SetupDataRequest.xml request
response.xml response

Can anybody advice me where I did error in my configuration?

Could you send me your rrdtool create command?

Thanks a lot.

Regards,

Sven Ubik
<!-- ===================================================================
<description>

   $Id: client-run-targets.xml,v 1.6 2005/09/01 15:30:33 metzger Exp $
   project: perfSONAR

   Notes: Targets to run sample client applications against development servers.

</description>
==================================================================== -->

	<property name="ma.cesnet" value="http://perfmon1.cesnet.cz:8080/axis/services/MeasurementArchiveService"/>

        <target name="run-cesnet" 
                description="Runs Java client2">
                <java classname="org.perfsonar.service.testHarness.MATestClient"
                        classpathref="classpath" fork="true">
                        <arg value="${ma.cesnet}"/>
                        <arg value="${basedir}/ant/SetupDataRequest-FilterRRDSelect-Esnet.xml"/> 
                        <arg value="${basedir}/ant/response.xml"/>
                </java>
        </target>

<perfsonar:message id="msg4"
            type="SetupDataRequest"
            timeValue="1135004276"
            timeType="unix"
            xmlns:perfsonar="http://perfsonar.org/ns/perfsonar/";
            xmlns:nmwg="http://ggf.org/ns/nmwg/";
            xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/";
            xmlns:rrdfile="http://perfsonar.org/ns/perfsonar/keys/rrdfile/";
            xmlns:select="http://ggf.org/ns/nmwg/ops/select/";>

  <perfsonar:metadata id="meta1">
    <perfsonar:subject id="iusub1">
      <nmwgt:interface>
        <nmwgt:direction>in</nmwgt:direction>
      </nmwgt:interface>
    </perfsonar:subject>
    <nmwg:characteristic>utilization</nmwg:characteristic>
  </perfsonar:metadata>

  <perfsonar:metadata id="meta2">
    <perfsonar:subject id="iusub2" metadataIdRef="meta1"/>
    <nmwg:characteristic>select</nmwg:characteristic>
    <select:parameters id="param1">
        <select:parameter name="startTime">1135004260</select:parameter>
        <select:parameter name="endTime">1135004275</select:parameter>
        <select:parameter name="consolidationFunction">AVERAGE</select:parameter>
        <select:parameter name="resolution">5</select:parameter>
    </select:parameters>
  </perfsonar:metadata>

  <perfsonar:data id="data1" metadataIdRef="meta2"/>

</perfsonar:message>
<?xml version="1.0" encoding="UTF-8"?>


<!-- ===================================================================
<description>
   MA RRD configuration file

   $Id: rrd-database_Abilene.xml,v 1.8 2005/09/21 20:18:43 boote Exp $
   project: perfSONAR

Notes:
   This is the configuration file which contains the information 
   about RRD files from ESnet

</description>
==================================================================== -->

<store xmlns="http://perfsonar.org/ns/perfsonar/";
       xmlns:perfsonar="http://perfsonar.org/ns/perfsonar/";
       xmlns:rrdfile="http://perfsonar.org/ns/perfsonar/keys/rrdfile/";
       xmlns:nmtm="http://ggf.org/ns/nmwg/time/";
       xmlns:nmwg="http://ggf.org/ns/nmwg/";
       xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/";>


    <!--  metadata section  -->


    <metadata id="meta1">
        <subject id="subj1">
            <nmwgt:interface>
                <nmwgt:ifAddress type="ipv4">195.113.144.251</nmwgt:ifAddress>
                <nmwgt:hostName>perfmon1.cesnet.cz</nmwgt:hostName>
                <nmwgt:ifName>myrouter</nmwgt:ifName>
                <nmwgt:ifDescription>something strange</nmwgt:ifDescription>
                <nmwgt:direction>in</nmwgt:direction>
                <nmwgt:authRealm>Cesnet</nmwgt:authRealm>
            </nmwgt:interface>
        <subject>
        <nmwg:characteristic>utilization</nmwg:characteristic>
    <metadata>




    <!-- data section -->




    <data id="data1" metadataIdRef="meta1">
     	<nmwg:key>
      		<nmwg:parameters>
            		<nmwg:parameter name="file">/usr/local/sonar/rrdtemp/myrouter.rrd</nmwg:parameter>
            		<nmwg:parameter name="dataSource">in</nmwg:parameter>
              	</nmwg:parameters>        
    	</nmwg:key> 
    <data>




<store>
<?xml version="1.0" encoding="UTF-8"?>

<perfsonar:message xmlns:perfsonar="http://perfsonar.org/ns/perfsonar/"; id="msg4" timeType="unix" timeValue="1135004276" type="SetupDataRequest"><perfsonar:metadata id="meta1"><perfsonar:subject id="iusub1"><nmwgt:interface xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/";><nmwgt:direction>in</nmwgt:direction></nmwgt:interface></perfsonar:subject><nmwg:characteristic xmlns:nmwg="http://ggf.org/ns/nmwg/";>utilization</nmwg:characteristic></perfsonar:metadata><perfsonar:metadata id="meta2"><perfsonar:subject id="iusub2" metadataIdRef="meta1" /><select:parameters xmlns:select="http://ggf.org/ns/nmwg/ops/select/"; id="param1"><select:parameter name="startTime">1135004260</select:parameter><select:parameter name="endTime">1135004275</select:parameter><select:parameter name="consolidationFunction">AVERAGE</select:parameter><select:parameter name="resolution">5</select:parameter></select:parameters><nmwg:characteristic xmlns:nmwg="http://ggf.org/ns/nmwg/";>select</nmwg:characteristic></perfsonar:metadata><perfsonar:data id="data1" metadataIdRef="meta2"><perfsonar:datum value="No Match" /></perfsonar:data></perfsonar:message>



  • No match from MA - format of RRD file ?, Sven Ubik, 12/20/2005

Archive powered by MHonArc 2.6.16.

Top of Page