I am struggling to get a working graph for monitoring SDSL connectivity through Redback Active Subscribers MIB.
Everything is ok for input variable (SessionID) and Counter outputs (rbnSubsOctetsSent and rbnSubsOctetsReceived) to graph traffic.
But I also try to get a variable called rbnSubsActiveStartTime, which syntax is DateAndTime and looks like :
Code: Select all
snmpwalk -v 2c -c <community> <host> .1.3.6.1.4.1.2352.2.27.1.1.1.1.5
SNMPv2-SMI::enterprises.2352.2.27.1.1.1.1.5.17.48.48.58.50.50.58.56.51.58.99.50.58.99.98.58.56.48.25.48.51.48.51.70.70.70.70.55.56.48.48.48.48.67.65.45.52.65.56.66.70.53.55.70 = Hex-STRING: 07 D9 08 13 0C 34 0F 00 2B 00 00
I tried to parse out the interesting fields (year, month, day, hour, minutes) but the VALUE/REGEXP in output direction does not seem to work (I always have the same float returned by hexdec as if the value was not parsed).
I found an old Feature Request about this (http://bugs.cacti.net/view.php?id=444) but don't think is has been integrated...
Is that correct ?
Does anyone know a workaround ?
Code: Select all
<query>
<name>Get Redback Subscriber Active Statistics</name>
<description> Projet SHDSL </description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.2352.2.27.1.1.1.1.3</oid_index>
<index_order>SessionID</index_order>
<oid_index_parse>OID/REGEXP:1\.3\.6\.1\.4\.1\.2352\.2\.27\.1\.1\.1\.1\.3\.(.*)$</oid_index_parse>
<fields>
<SessionID>
<name>Session ID</name>
<method>walk</method>
<source>VALUE/REGEXP:^(.*) clips [0-9]+$</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2352.2.27.1.1.1.1.3</oid>
</SessionID>
<rbnSubsOctetsSent>
<name>rbnSubsOctetsSent</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2352.2.27.1.2.3.1.1</oid>
</rbnSubsOctetsSent>
<rbnSubsOctetsReceived>
<name>rbnSubsOctetsReceived</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2352.2.27.1.2.3.1.2</oid>
</rbnSubsOctetsReceived>
<rbnSubsActiveStartTime>
<name>rbnSubsActiveStartTime</name>
<method>walk</method>
<source>VALUE/REGEXP:^([0-9A-F][0-9A-F]).*$</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2352.2.27.1.1.1.1.5</oid>
</rbnSubsActiveStartTime>
</fields>
</query>