|
|
| Author |
Message |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Thu Mar 23, 2006 9:06 pm Post subject: Interface errors scripts and templates |
|
|
| Has anyone written a script/template for interface errors. Cisco routers and switches especially? |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9689 Location: MI, USA
|
Posted: Thu Mar 23, 2006 11:16 pm Post subject: |
|
|
Part of the base insterface data query. Look at the drop down when creating graphs.
TheWitness |
|
| Back to top |
|
 |
Pumpi Cacti User
Joined: 14 Jan 2004 Posts: 256 Location: Germany
|
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Fri Mar 24, 2006 5:01 pm Post subject: |
|
|
| Thank you both. I didn't realize that they were already part of the interface statistics!! Thanks Witness! |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Mon Mar 27, 2006 9:01 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Tue Mar 28, 2006 8:17 am Post subject: |
|
|
| Thanks. |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Fri May 05, 2006 3:40 pm Post subject: |
|
|
| 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?? |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Mon May 08, 2006 10:25 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Thu May 11, 2006 11:11 am Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Thu May 11, 2006 2:03 pm Post subject: |
|
|
Please post your last questions to the thold thread in Add-Ons. cigamit is watching this more closely
Reinhard |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Thu May 11, 2006 2:16 pm Post subject: |
|
|
| Thanks, I did already. |
|
| Back to top |
|
 |
monnkey
Joined: 26 May 2006 Posts: 1
|
Posted: Fri May 26, 2006 2:41 pm Post subject: 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 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Sat May 27, 2006 2:23 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Tue May 30, 2006 11:28 am Post subject: Re: How do I create/apply a CDEF to an existing graph templa |
|
|
| 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. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|