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

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

Moderators: Developers, Moderators

Post Reply
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: MIB Protocol Statistics (RFC1213)

Post by BSOD2600 »

cacti_question wrote:How is the OID that I see in the logs determined?
By the script/template. In the case of this, it's the xml file which has the base OID cacti is to use, and then it figures out the last OID to append.

For a newbie, I strongly suggest you get your basic cacti installation up and running. using the included templates. then, you can expand out using user created templates, plugins, etc.
voltsz
Posts: 13
Joined: Thu Dec 31, 2009 2:01 am

Post by voltsz »

Hy,

good work. I downloaded and make up&running the template over my installation and it worked!

Very useful! Good work!

Cesare
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Worked Perfectly

Post by Netcooler »

NICE - was getting ready to try something like this but this is everything I needed and more. :P

instructions were perfect and everything works
Thanks~!
random2
Posts: 2
Joined: Sun Jan 11, 2009 12:11 pm

Post by random2 »

Hi!
I have a problem with this template - no data.
snmpd respone ok.

Image

Code: Select all

Data Query Debug Information
+ Running data query [14].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/RFC1213.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.7.2'
+ Index found at OID: '1.3.6.1.2.1.7.2.0' value: '26'
+ index_parse at OID: '1.3.6.1.2.1.7.2.0' results: '0'
+ Inserting index data for field 'Index' [value='0']
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/RFC1213.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/RFC1213.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/RFC1213.xml'

upd


I think this problem connected with oid_index in RFC1213.XML
My snmpd server response:
[root@backup snmp_queries]# snmpwalk -v2c -c pub c2 .1.3.6.1.2.1.7.2
UDP-MIB::udpNoPorts.0 = Counter32: 130

but I think there must be a list of params.

Anybody knows correct oid?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

All looks correct to me. What's the specific problem?

This template creates a 'fake index' for cacti.
mxxcon
Posts: 31
Joined: Tue May 19, 2009 5:20 pm

Post by mxxcon »

Name of TCP states graph are different from
CLOSING
ESTABLISHED
FIN_WAIT1
FIN_WAIT2
LAST_ACK
LISTEN
SYN_RECV
TIME_WAIT

Are these the same things just with different names? If so, how do they map to each other?
i'm trying to compare results of this command with the results from this graph
netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

mxxcon wrote:Are these the same things just with different names? If so, how do they map to each other?
It's the names pulled from the RFC1213 MIB file. Sample:
tcpActiveOpens OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The number of times TCP connections have made a
direct transition to the SYN-SENT state from the
CLOSED state."
::= { tcp 5 }

tcpPassiveOpens OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The number of times TCP connections have made a
direct transition to the SYN-RCVD state from the
LISTEN state."
::= { tcp 6 }

tcpAttemptFails OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The number of times TCP connections have made a
direct transition to the CLOSED state from either
the SYN-SENT state or the SYN-RCVD state, plus the
number of times TCP connections have made a direct
transition to the LISTEN state from the SYN-RCVD
state."
::= { tcp 7 }

tcpEstabResets OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The number of times TCP connections have made a
direct transition to the CLOSED state from either
the ESTABLISHED state or the CLOSE-WAIT state."
::= { tcp 8 }

tcpCurrEstab OBJECT-TYPE
SYNTAX Gauge
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The number of TCP connections for which the
current state is either ESTABLISHED or CLOSE-
WAIT."
::= { tcp 9 }

tcpRetransSegs OBJECT-TYPE
SYNTAX Counter
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The total number of segments retransmitted - that
is, the number of TCP segments transmitted
containing one or more previously transmitted
octets."
::= { tcp 12 }
mxxcon
Posts: 31
Joined: Tue May 19, 2009 5:20 pm

Post by mxxcon »

hmmm.
i can't quiet correlate output of netstat command with the numbers show in this graph
i took this screenshot and this output at the same time

Code: Select all

 netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c
      1 CLOSING
     76 ESTABLISHED
     64 FIN_WAIT1
     95 FIN_WAIT2
      2 LAST_ACK
      8 LISTEN
    256 SYN_RECV
  13130 TIME_WAIT
I understand that graph is sampled every so often, but still, numbers seem to be outrageously high.
also, should there be decimal digits when we are talking about number of connections? .5 connection? :) perhaps that should be rounded up/down?
Attachments
ignore holes in the graph, network issues
ignore holes in the graph, network issues
graph_image.php.png (20.75 KiB) Viewed 5095 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Notice the vertical axis title? Instead of the typical 'per second' view, I've changed it to 'per 5 minutes' -- the default cacti polling interval. You can change it back by simply removing the CDEF... on each graph template item, heh.
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

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

Post by Netcooler »

BSOD,

I think these are really neat looking data points in the graph..

My question is one of information and education for myself.

The data I see on the graphs is for counters if I walk the rfc1213 mib (like 9878563) but on the graphs they show up as M m k with maybe a decimal value.

I am having a hard time wrapping my arms around what the data means. If you could explain what I should be expecting to see and why that would be great.

Like for the Combined Protocol Graph Templates seen in your example screen shots. I would expect to see more of an exact number "counter" as opposed to one displayed in m or k.

That's where I am having a hard time interpreting and validating my data (or the data shown in the example screen shots in this post). What does icmpOutMsgs 2.52m mean exactly on your screen shots ans d why is it that way?
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

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

Post by Netcooler »

I am going to post some screenshots here... maybe I simply need to be educated more.. screenshots to come. I am having a real hard time making sense of the raw data I see on an SNMP query and how that data is represented in these graphs. I am sure it is me so i will send screen shots and qury outputs in a few.


I thank you for these graphs as they are really nice I just need to understand the data I am seeing so i can then explain it to end users. I cannot do that at this time hence my education request.
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

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

Post by Netcooler »

OK - here is a Screen shot and if you could explain this sequence of numbers to me it would be GREATLY appreciated.

In the screen shot I am specifically focusing on udpInDatagrams. My raw query of that counter is: 10390162

the Data displayed on tht polling cycle for that DataSource is: 6.11

Question: How is this 6.11 and why?

I think I am missing a fundamental understanding of how this all works and this would help to really clear this up for me.
Attachments
Part of the graph template for udpInDatagrams
Part of the graph template for udpInDatagrams
RFC3.GIF (37.36 KiB) Viewed 4697 times
Here is the query as seen in the log file and is pretty much on target with a straight snmpwalk of the OID
Here is the query as seen in the log file and is pretty much on target with a straight snmpwalk of the OID
RFC2.GIF (20.55 KiB) Viewed 4697 times
Here is the Graph Data for RFC-1213 untouched and unmodified from what is here on the forums
Here is the Graph Data for RFC-1213 untouched and unmodified from what is here on the forums
RFC1.GIF (45.96 KiB) Viewed 4697 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 »

That graph is no different than the existing Cacti traffic graphs were data is displayed in per/second fashion. The other graphs for the RFC1213 templates I've altered to display data per/5 min instead.

As for the specific counter, it's defined as the following:

Code: Select all

          udpInDatagrams OBJECT-TYPE
              SYNTAX  Counter
              ACCESS  read-only
              STATUS  mandatory
              DESCRIPTION
                      "The total number of UDP datagrams delivered to
                      UDP users."
              ::= { udp 1 }
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

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

Post by Netcooler »

Thanks.. honestly the big piece I was missing was the background calc of (current counter - previous counter) / (poll cycle current - poll cycle previous)

that was confusing the heck out of me causing me to question my sanity on all my graphs... good to go no and back on track. Had to read the rrdtool tutorials again...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests