MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
ocoralan
Posts: 21
Joined: Mon Apr 25, 2011 7:38 pm

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by ocoralan »

Very very nice job.

But I met a question, Cacti can draw TCP/UDP/Combined traffic graph, but the SNMP traffic is not shown.

My environment is cacti 0.8.7g+PA2.8.

Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by BSOD2600 »

Does the snmp specific graph/template work? Your device might not be reporting snmp specific data.
ocoralan
Posts: 21
Joined: Mon Apr 25, 2011 7:38 pm

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by ocoralan »

I installed the Cacti 0.8.7g+PA2.8 on Windows XP, I want to monitor the SNMP protocol traffic of the localhost, but the SNMP protocol graph can not be generated, TCP/UDP/IP/Combined traffic works very well.

My environment is:
Windows XP
Cacti 0.8.7g
PA v2.8

Anybody met the same question?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by BSOD2600 »

What SNMP agent are you using -- microsoft or net-snmp? I've only tried this script with Microsofts. Do the other templates for this package work; ip, udp, tcp?
ocoralan
Posts: 21
Joined: Mon Apr 25, 2011 7:38 pm

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by ocoralan »

I uses the Net-SNMP, other templates, such as TCP/UDP/IP works very very well. It's perfect.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by BSOD2600 »

Try to manually snmpwalk the snmp oid base (found in the php script file). If nothing is returned, then the net-snmp agent doesn't support that MIB (for some odd reason).
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by lcano »

Hi,

just installed the template in a debian box, I'm trying to create some graphs for the linux box itself. That means, that I add this data query to localhost (127.0.0.1).

Snmp daemon is running (snmp manual query answers correctly from the box where cacti is installed):

Code: Select all

# snmpwalk -c public -v2c 127.0.0.1 .1.3.6.1.2.1.7.2
UDP-MIB::udpNoPorts.0 = Counter32: 75
But when I tried to create graphs, and it is cacti who should query the box, it doesn't work. Either no snmp answer or no fake index created (attached file)

Any other graph for localhost is working perfectly, so I don't know why it doesn't. Any idea or someone who had a similar issue?

Thanks
Attachments
Verbosy query when adding data-query to localhost
Verbosy query when adding data-query to localhost
rfc1213_query_localhost.PNG (5.32 KiB) Viewed 4363 times
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by lcano »

Answering myself: It suddenly started to work. No idea why, but after some time now it is able to create the fake index, and all graphs successfully created.

Thanks for your template, BSD
xbolshe
Posts: 13
Joined: Sun Mar 17, 2013 2:44 am

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by xbolshe »

lcano wrote:

Code: Select all

# snmpwalk -c public -v2c 127.0.0.1 .1.3.6.1.2.1.7.2
UDP-MIB::udpNoPorts.0 = Counter32: 75
But when I tried to create graphs, and it is cacti who should query the box, it doesn't work. Either no snmp answer or no fake index created (attached file)

Any other graph for localhost is working perfectly, so I don't know why it doesn't. Any idea or someone who had a similar issue?

Thanks

Have the same problem. In my understanding there is a bug in RFC1213.xml:

instead of <oid_index>.1.3.6.1.2.1.7.2</oid_index> need to use <oid_index>.1.3.6.1.2.1.2</oid_index>


PS: I have modified RFC1213.xml (see an attachment).
If you have already installed this teamplate, just update this file, select a device and push a link Verbose Query:

1) RFC1213 Statistics (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]

During creating of New Graph select interfaces in Data Query [RFC1213 Statistics], select a graph type (below Data Query list) and push Create.

PPS: updated version, it works better in my case
Attachments
RFC1213.xml
2nd version of RFC1213.xml
(13.12 KiB) Downloaded 263 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by BSOD2600 »

xbolshe:
What snmp agent and OS are you using that has the problem?

.1.3.6.1.2.1.7.2 = UDP-MIB udpNoPorts
.1.3.6.1.2.1.2 = IF-MIB interfaces (table)

.1.3.6.1.2.1.2 shouldn't be valid to use because there are often many more interfaces than just 1. For this script to properly function, only 1 fake index needs to be created, as that's all defined in RFC1213 (i.e. all stats OIDs end in .1).
xbolshe
Posts: 13
Joined: Sun Mar 17, 2013 2:44 am

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by xbolshe »

BSOD2600 wrote:xbolshe:
What snmp agent and OS are you using that has the problem?
OS: Windows Server 2008 R2 Standard Edition Service Pack 1
SNMP agent: NET-SNMP version: 5.6.1.1
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by BSOD2600 »

Hmm, must be the net-snmp agent which is the problem. Any particular reason you dont want to use the Microsoft SNMP agent?
zimbawe998
Posts: 1
Joined: Sat Apr 13, 2013 3:35 am

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by zimbawe998 »

Hi BSOD2600,
when i try to execute SNMP Query, i receive this error:
+ Running data query [13].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/RFC1213.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.7.2' Index Count: 1
+ Index found at OID: '1.3.6.1.2.1.7.2.0' value: '0'
+ index_parse at OID: '1.3.6.1.2.1.7.2.0' results: '0'
+ Inserting index data for field 'Index' [value='0']

I follow installation instructions, but every time is the same story.
My Cacti version is 0.8.8.a and it's embedded in CactiEZ.
thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by BSOD2600 »

<oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
can be ignored.
Lothar
Posts: 22
Joined: Wed Apr 16, 2014 9:07 am

Re: MIB Protocol Statistics (RFC1213) [v2.1 - 2009-05-10]

Post by Lothar »

Hello,

I have net snmp 5.5 and i am on windows server 2008 R2.
I have graphed ip static protocole but snmp,tcp,udp don't graph.
Do you know why?

Thanks for reply.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests