Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Mar 24, 2017 8:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: how to graph Counter64
PostPosted: Wed Mar 07, 2012 10:32 am 
Offline
Cacti User

Joined: Sun Apr 16, 2006 2:03 am
Posts: 68
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:
[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:
      <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


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Thu Mar 08, 2012 3:14 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1573
Location: Japan
Before considering about Counter32 or 64,

manaf wrote:
Code:
[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?


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Thu Mar 08, 2012 3:37 am 
Offline
Cacti User

Joined: Sun Apr 16, 2006 2:03 am
Posts: 68
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


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Thu Mar 08, 2012 3:49 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1573
Location: Japan
Hmm, then try using <oid>.1.3.6.1.4.1.2636.3.64.1.1.1.1</oid> (removing ".0") for <jnxSubscriberTotalCount>.


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Thu Mar 08, 2012 4:25 am 
Offline
Cacti User

Joined: Sun Apr 16, 2006 2:03 am
Posts: 68
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:


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Thu Mar 08, 2012 4:39 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1573
Location: Japan
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


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Thu Mar 08, 2012 4:42 am 
Offline
Cacti User

Joined: Sun Apr 16, 2006 2:03 am
Posts: 68
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


Top
 Profile  
 
 Post subject: Re: how to graph Counter64
PostPosted: Sun Mar 19, 2017 11:56 am 
Offline

Joined: Sun Mar 19, 2017 11:53 am
Posts: 1
could you send me your template please. I can't output graph for this OID


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group