Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.
Moderators: Developers , Moderators
manaf
Cacti User
Posts: 68 Joined: Sun Apr 16, 2006 2:03 am
Post
by manaf » Wed Mar 07, 2012 10:32 am
i have Juniper router running as BRAS router. I want to graph all number of connected subscribers. when I run snmpwalk with OID i got the output as Counter64!
Code: Select all
[manaf@NMS ~]$ snmpwalk -v2c -c WiTribe 92.241.33.248 .1.3.6.1.4.1.2636.3.64.1.1.1.1
SNMPv2-SMI::enterprises.2636.3.64.1.1.1.1.0 = Counter64: 30
I tried to make graph using date template putting the OID in Custom Data [data input: Get SNMP Data]. but the graph is empty.
I also made date query:
Code: Select all
<name>Get PPPoE Sessions</name>
<description>PPPoE Sessions</description>
<oid_index>.1.3.6.1.4.1.2636.3.64.1.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,2})$</oid_index_parse>
<index_order>Index</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<Index>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</Index>
<jnxSubscriberTotal>
<name>PPPoE Sessions</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2636.3.64.1.1.1.1</oid>
</jnxSubscriberTotal>
<jnxSubscriberTotalCount>
<name>PPPoE</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2636.3.64.1.1.1.1.0</oid>
</jnxSubscriberTotalCount>
</fields>
</interface>
also i got empty graph.
i have another cisco device running perfectly but the snmpwalk output as Gauge32
noname
Cacti Guru User
Posts: 1566 Joined: Thu Aug 05, 2010 2:04 am
Location: Japan
Post
by noname » Thu Mar 08, 2012 3:14 am
Before considering about Counter32 or 64,
manaf wrote:
Code: Select all
[manaf@NMS ~]$ snmpwalk -v2c -c WiTribe 92.241.33.248 .1.3.6.1.4.1.2636.3.64.1.1.1.1
SNMPv2-SMI::enterprises.2636.3.64.1.1.1.1.0 = Counter64: 30
I tried to make graph using date template putting the OID in Custom Data [data input: Get SNMP Data]. but the graph is empty.
Did you use ".1.3.6.1.4.1.2636.3.64.1.1.1.1
.0 " for OID in the data template?
manaf
Cacti User
Posts: 68 Joined: Sun Apr 16, 2006 2:03 am
Post
by manaf » Thu Mar 08, 2012 3:37 am
yes I already use .1.3.6.1.4.1.2636.3.64.1.1.1.1.0 in data template but the graph shows 0 output
noname
Cacti Guru User
Posts: 1566 Joined: Thu Aug 05, 2010 2:04 am
Location: Japan
Post
by noname » Thu Mar 08, 2012 3:49 am
Hmm, then try using <oid>.1.3.6.1.4.1.2636.3.64.1.1.1.1</oid> (removing ".0") for <jnxSubscriberTotalCount>.
manaf
Cacti User
Posts: 68 Joined: Sun Apr 16, 2006 2:03 am
Post
by manaf » Thu Mar 08, 2012 4:25 am
no didn't solve the problem
in cacti.log i got this error:
03/08/2012 11:24:03 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'x.x.x.x', and OID:
noname
Cacti Guru User
Posts: 1566 Joined: Thu Aug 05, 2010 2:04 am
Location: Japan
Post
by noname » Thu Mar 08, 2012 4:39 am
manaf wrote:
in cacti.log i got this error:
03/08/2012 11:24:03 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'x.x.x.x', and OID:
Then,
1) Increase "SNMP Timeout" in device settings
2) Please post result of "Verbose Query" of the data query in device settings
manaf
Cacti User
Posts: 68 Joined: Sun Apr 16, 2006 2:03 am
Post
by manaf » Thu Mar 08, 2012 4:42 am
ops my mistake!
i should have made "Data Source Type" as GAUGE not COUNTER
now i can see the graph without the use of date query. only put OID in Custom Data
thank you for your help
Users browsing this forum: No registered users and 0 guests