Interface errors scripts and templates
Moderators: Moderators, Developers
Interface errors scripts and templates
Has anyone written a script/template for interface errors. Cisco routers and switches especially?
- TheWitness
- Developer
- Posts: 14834
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Part of the base insterface data query. Look at the drop down when creating graphs.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository
I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.
Life is an adventure, let yours begin with Cacti!
Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository
I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.
chadd,
perhaps you can use
RMON Group 1 Etherstats - Templates
found here http://forums.cacti.net/viewtopic.php?t ... light=rmon
or the the Ethernet Stats(RFC1643) Templates
found here http://forums.cacti.net/viewtopic.php?t ... ht=rfc1643
Pumpi
perhaps you can use
RMON Group 1 Etherstats - Templates
found here http://forums.cacti.net/viewtopic.php?t ... light=rmon
or the the Ethernet Stats(RFC1643) Templates
found here http://forums.cacti.net/viewtopic.php?t ... ht=rfc1643
Pumpi
Just a question. Witness?, would you know what the values are in the error graphs? I am showing 486.11 u in the average column in one of my graphs, and 140.00 m in the Maximum column in the same graph. What do u and m stand for, and are the correct mesurments for error values? Are the values you see literal, and over what time period? Thanks for any help.
-chadd.
-chadd.
- gandalf
- Developer
- Posts: 22375
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
See "General" sticky post at http://forums.cacti.net/viewtopic.php?t=8168
Reinhard
Reinhard
I am looking to get more of a "real" idea of exactly how many errors I get on the interface, and not the RRDTool calculations for errors/sec (they display in units of 10^-3 mostly..). What I would like is a running delta. I wrote a script like this for redbacks, and could do it for this as well, but I wonder, if I just change the data source template for interface errors and discards to be "gauge" instead of counter, if that would produce like results?? Can someone let me know what the best plan of attack is on this. I have all cisco routers, so I am getting the question, "why does the router show errors, but cacti is not reporting them". What my other script did, was use Net::Telnet to telnet to the router, do a show interface (basically) and parse the output for the error values. Then put that in a file. Then next poll, if there was something in the file, subtract current from last, and report the delta as a value. So, what you had was a pretty good graph of the exact amount of errors every poll. I would much rather do this with SNMP, and it would be great if I could just use what is already there in Cacti..TheWitness wrote:Part of the base insterface data query. Look at the drop down when creating graphs.
TheWitness
Anyone??
- gandalf
- Developer
- Posts: 22375
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
cacti's poller retrieves data every 300 secs (appr.). So the delta you may get is that between two measuring intervals. To do so, simple create a CDEFchadd wrote:... What I would like is a running delta.
Code: Select all
cdef=CURRENT_DATA_SOURCE,300,*
Reinhard
Ok, I created a cdef, as suggested (accept my poller runs every 3min so the cdef was cdef=CURRENT_DATA_SOURCE,180,*). I also changed the each item in the graph template to be 'exact values' instead of 'normal'. This produced the graphs I was looking for. However, now my tholds are no longer working. I have values in my graphs exceeding the set tholds, but no alarms... Any suggestions?lvm wrote:cacti's poller retrieves data every 300 secs (appr.). So the delta you may get is that between two measuring intervals. To do so, simple create a CDEFchadd wrote:... What I would like is a running delta.and apply this to your Graph Items. But rrdtool will still perform normalization to exact 300 sec intervals.Code: Select all
cdef=CURRENT_DATA_SOURCE,300,*
Reinhard
How do I create/apply a CDEF to an existing graph template?
I would like to do the same thing CHADD did, but I do not know how to create/apply a CDEF.
Any help is greatly appreciated!
Fedora Core 4
Cacti 0.8.6
Any help is greatly appreciated!
Fedora Core 4
Cacti 0.8.6
Re: How do I create/apply a CDEF to an existing graph templa
Thanks LVM! I actually have found that, though this looks good (creating a cdef), that the info - and more over, the thold alerts, are not accurate.monnkey wrote:I would like to do the same thing CHADD did, but I do not know how to create/apply a CDEF.
Any help is greatly appreciated!
Fedora Core 4
Cacti 0.8.6
I did some research with the Cisco TAC and found that the MIBs that the 'interface errors/discards' function in Cacti collects on are not really what I want. They are an amalgam of different errors. That being said, it is still a good indication of wether or not an interface is taking errors.
What I need for my purposes is the exact number of errors accrued every polling cycle. I also need those error graphs representitive of the error statistics that you see when you do a 'show interface'. (people don't get it when you explain about averages, and formulas and such - K.I.S.S.)
Anyway, the only way to get the values I am looking for is to connect to the command line, do a show interface, and parse the output for this information (from what the Cisco TAC says anyway. I looked through all the OIDs and could not find exact matches to these below values. My dilemma is that 'people

(Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 output errors, 0 collisions, 3 interface resets
0 output buffer failures, 0 output buffers swapped out)
For my purposes, I think I am just going to collect statistics on this line:
(0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort)
as it will tell me if a T1 circuit is taking errors or not.
This is not ideal, but it going to have to do. Plus, it is quick and easy..
If anyone wants the script/templates, I will post them when I am done testing on several different types of cisco gear.
FYI: my original task was to send an email alert any time a T1 circuit took errors (any errors at all)... So far, the collection methods included in Cacti have proven less than accurate - or at least not living up to the outlined original task.