Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 17, 2019 7:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Interface errors scripts and templates
PostPosted: Thu Mar 23, 2006 9:06 pm 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
Has anyone written a script/template for interface errors. Cisco routers and switches especially?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 11:16 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Part of the base insterface data query. Look at the drop down when creating graphs.

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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 3:24 am 
Offline
Cacti User
User avatar

Joined: Wed Jan 14, 2004 3:23 am
Posts: 256
Location: Germany
chadd,

perhaps you can use

RMON Group 1 Etherstats - Templates
found here http://forums.cacti.net/viewtopic.php?t=8367&highlight=rmon

or the the Ethernet Stats(RFC1643) Templates
found here http://forums.cacti.net/viewtopic.php?t=3805&highlight=rfc1643

Pumpi


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 5:01 pm 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
Thank you both. I didn't realize that they were already part of the interface statistics!! Thanks Witness!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 9:01 am 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 11:06 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
See "General" sticky post at http://forums.cacti.net/viewtopic.php?t=8168
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 8:17 am 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 3:40 pm 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
TheWitness wrote:
Part of the base insterface data query. Look at the drop down when creating graphs.

TheWitness


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..

Anyone??


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 10:25 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
chadd wrote:
... What I would like is a running delta.
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 CDEF
Code:
cdef=CURRENT_DATA_SOURCE,300,*
and apply this to your Graph Items. But rrdtool will still perform normalization to exact 300 sec intervals.
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 11:11 am 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
lvm wrote:
chadd wrote:
... What I would like is a running delta.
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 CDEF
Code:
cdef=CURRENT_DATA_SOURCE,300,*
and apply this to your Graph Items. But rrdtool will still perform normalization to exact 300 sec intervals.
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 2:03 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Please post your last questions to the thold thread in Add-Ons. cigamit is watching this more closely
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 2:16 pm 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
Thanks, I did already.


Top
 Profile  
 
 Post subject: How do I create/apply a CDEF to an existing graph template?
PostPosted: Fri May 26, 2006 2:41 pm 
Offline

Joined: Fri May 26, 2006 2:15 pm
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 27, 2006 2:23 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Select Graph Management and find CDEFs underneath, select. Then Add a new one. Define
- special data source = CURRENT_DATA_SOURCE
- custom string = 300
- operator = *
and save.
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: How do I create/apply a CDEF to an existing graph templa
PostPosted: Tue May 30, 2006 11:28 am 
Offline
Cacti User

Joined: Thu Mar 24, 2005 3:53 pm
Posts: 382
Location: Ocoee, Florida
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


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.

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 ;-)' what to see, represented in the graphs, what they see when they are on the command line of the device.):

(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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 10 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