Ethernet Stats(RFC1643) - XML

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

Moderators: Developers, Moderators

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

Post by BSOD2600 »

Allen K wrote:Anybody have any ideas for this one?
As I told the other people, you must enable the debugging logging level in cacti for one polling cycle. You want to see if the OIDs cacti is polling for the ethernet stats is returning valid data or not. The graphing command really doesn't matter.
Allen K
Posts: 25
Joined: Sat Oct 15, 2005 9:34 pm

Post by Allen K »

Thanks for the reply. when I mentioned the running a polling cycle in debug, I am searching that log for any of the OID's that are returning data, there isn't a match in the logs. I can snmpwalk any of the OID's contained in the XML on the command line, but It appears that it's not being included in the polling cycle at all.

I've followed all directions, and have been using Cacti for quite some time so I'm not a 'greener than grass user' :lol: .. plugin arch 8.6h. if that makes any difference or helps for troubleshooting.. If you need anything else I'd be glad to post it.

thanks for any help

snmpwalk from command line
dennis@leela$ snmpwalk -v2c -c MyCommString 10.16.167.169 .1.3.6.1.2.1.10.7.2.1.4
SNMPv2-SMI::transmission.7.2.1.4.1 = Counter32: 0
SNMPv2-SMI::transmission.7.2.1.4.2 = Counter32: 0
SNMPv2-SMI::transmission.7.2.1.4.3 = Counter32: 1135
SNMPv2-SMI::transmission.7.2.1.4.4 = Counter32: 80740
SNMPv2-SMI::transmission.7.2.1.4.5 = Counter32: 3292
SNMPv2-SMI::transmission.7.2.1.4.6 = Counter32: 272
Poller running in debug mode. (small tail)
dennis@leela$ tail /usr/local/www/0000000.0000000.000/webfiles/log/cacti.log
03/25/2006 10:50:48 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool last /usr/local/www/0000000.0000000.000/webfiles/rra/klwdlm3rackforce_gw_avg_1278.rrd MAX
03/25/2006 10:50:48 PM - CMDPHP: Poller[0] DEBUG: SQL Row: "select name,data_source_path from data_template_data where local_data_id=1278"

03/25/2006 10:50:48 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool fetch /usr/local/www/0000000.0000000.000/webfiles/rra/klwdlm3rackforce_gw_avg_1278.rrd AVERAGE -s 1143355805 -e 1143356705
03/25/2006 10:50:48 PM - CMDPHP: Poller[0] DEBUG: SQL Row: "select name,data_source_path from data_template_data where local_data_id=1278"
grep logfile, no match on OID
dennis@leela$ grep .1.3.6.1.2.1.10 /usr/local/www/0000000.0000000.000/webfiles/log/cacti.log
dennis@leela$
etienne66
Posts: 38
Joined: Wed Apr 19, 2006 12:26 pm

Properly indexed rfc1643

Post by etienne66 »

The first index needed source of "index" and all other oids needed method of "get" instead of "walk". Now only indexes with dot3stats will be listed.
Attachments
rfc1643.xml
Updated rfc1643.xml
(3.43 KiB) Downloaded 4031 times
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

So how can I add a column in the graph creation page to see what port I'm actually adding?
etienne66
Posts: 38
Joined: Wed Apr 19, 2006 12:26 pm

Post by etienne66 »

knobdy wrote:So how can I add a column in the graph creation page to see what port I'm actually adding?
Does the column you want show up in "SNMP - Interface Statistics"? If so which one is it? If it is you can take a look at interfaces.xml and copy the appropriate section into the rfc1643.xml file. Make sure the <direction> is "input" or it won't show up during creation.
hermatize
Cacti User
Posts: 55
Joined: Wed Aug 10, 2005 6:29 pm

Post by hermatize »

Yeah butt say i have a cisco switch is this collecting errors on all ports or can you set it up on a certain port ?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

etienne66 wrote:Does the column you want show up in "SNMP - Interface Statistics"? If so which one is it? If it is you can take a look at interfaces.xml and copy the appropriate section into the rfc1643.xml file. Make sure the <direction> is "input" or it won't show up during creation.
It shows up there, yes, but I'm not sure which section it is. Essentially I think I'm just wanting to add an ifAlias column to this template (so I know what port I'm putting it on).
etienne66
Posts: 38
Joined: Wed Apr 19, 2006 12:26 pm

Post by etienne66 »

knobdy wrote:It shows up there, yes, but I'm not sure which section it is. Essentially I think I'm just wanting to add an ifAlias column to this template (so I know what port I'm putting it on).
No problem. I added in the ifAlias and ifIndex oids.

Hope that helps,
Etienne66
Attachments
rfc1643.xml
rfc1643.xml with ifAlias &amp; ifIndex
(3.76 KiB) Downloaded 4397 times
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

etienne66 wrote:No problem. I added in the ifAlias and ifIndex oids.

Hope that helps,
Etienne66
Excellent, except that - so far - on one of my switches it returns "No Such Object available on this agent at this OID" instead. I'm continuing to add a few to other switches - maybe its just that one (and older 4000).
Update:
Added ifName (I think it was) same as it is in the traffic script - all good now.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Okay, I've added this template to several devices. I have all of the fields I wanted (needed - thanks!) but now they're either not creating a rra file or they do but it never gets updated (graph debug - in this case - says its okay though). Is the following normal?

Code: Select all

DEF:a="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":AlignmentErrors:AVERAGE \
DEF:b="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":CarrierSenseErrors:AVERAGE \
DEF:c="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":DeferredTrans:AVERAGE \
DEF:d="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":ExcessiveCollision:AVERAGE \
DEF:e="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":FCSErrors:AVERAGE \
DEF:f="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":SingleCollisionFra:AVERAGE \
DEF:g="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":MultipleCollFrames:AVERAGE \
DEF:h="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":LateCollisions:AVERAGE \
DEF:i="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":FrameTooLongs:AVERAGE \
DEF:j="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":IntMacReceiveErr:AVERAGE \
DEF:ba="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":IntMacTransmitErr:AVERAGE \
DEF:bb="/usr/share/cacti/rra/server_alignmenterrors_2981.rrd":SQETestErrors:AVERAGE \

RRDTool Says:

ERROR: opening '/usr/share/cacti/rra/server_alignmenterrors_2989.rrd': No such file or directory
When ever I add this template to a device, my browser also goes blank (as in a page refresh) and hangs until I click back. <shrug> I've run tseveral of the OIDs against these devices without any problems.
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

does anyone know if this works with Cacti 8.7?
_CL
Posts: 39
Joined: Mon Feb 25, 2008 5:01 pm
Location: USA

Post by _CL »

ejensen wrote:does anyone know if this works with Cacti 8.7?
Works for me with 0.8.7b. I am using the xml file posted on April 20, 2006 and the templates file posted on April 23, 2004.

I did have one problem that had to be corrected. I had to change the data source type field on the data template for all twelve data sources from Gauge to Counter. Based on the sample graphs in this thread, the original was also set to Counter. There must have been a problem with the import that caused this field to be erroneously changed to Gauge.
CL
heinzruehl
Posts: 1
Joined: Thu Mar 04, 2010 4:21 am

Some minor Improvements

Post by heinzruehl »

Hei Folks,

thx to the Author of this Template - great work. I made some minor Improvements to it (hope you dont mind) to get it working in 0.8.7e.

- Changed Data Template - Data Source Type from GAUGE to COUNTER
- Added Interface Name to Data Source and Graph Title

Greets Hz
Attachments
rfc1643.xml
(3.98 KiB) Downloaded 3487 times
cacti_data_query_snmp_-_rfc1643.xml
(52.04 KiB) Downloaded 3555 times
carlos-it
Posts: 1
Joined: Fri Feb 26, 2010 2:20 pm

Post by carlos-it »

I tried heinzruehl scripts but I get


the Data Query [SNMP - rfc1643] Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information

I dont see anything useful in the logs and it seems the rrd file doesnt get created
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Is your .xml file withing ressources/snmp_queries named rfc1643.xml? or somethig else like rfc1643_112.xml?
it must be named rfc1643.xml
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0

[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests