Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Interface errors scripts and templates
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Thu Mar 23, 2006 9:06 pm    Post subject: Interface errors scripts and templates Reply with quote

Has anyone written a script/template for interface errors. Cisco routers and switches especially?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9470
Location: MI, USA

PostPosted: Thu Mar 23, 2006 11:16 pm    Post subject: Reply with quote

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

PostPosted: Fri Mar 24, 2006 3:24 am    Post subject: Reply with quote

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
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Fri Mar 24, 2006 5:01 pm    Post subject: Reply with quote

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

PostPosted: Mon Mar 27, 2006 9:01 am    Post subject: Reply with quote

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: 11719
Location: Muenster, Germany

PostPosted: Mon Mar 27, 2006 11:06 am    Post subject: Reply with quote

See "General" sticky post at http://forums.cacti.net/viewtopic.php?t=8168
Reinhard
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Tue Mar 28, 2006 8:17 am    Post subject: Reply with quote

Thanks.
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 194
Location: Ocoee, Florida

PostPosted: Fri May 05, 2006 3:40 pm    Post subject: Reply with quote

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: 11719
Location: Muenster, Germany

PostPosted: Mon May 08, 2006 10:25 am    Post subject: Reply with quote

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

PostPosted: Thu May 11, 2006 11:11 am    Post subject: Reply with quote

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: 11719
Location: Muenster, Germany

PostPosted: Thu May 11, 2006 2:03 pm    Post subject: Reply with quote

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

PostPosted: Thu May 11, 2006 2:16 pm    Post subject: Reply with quote

Thanks, I did already.
Back to top
monnkey



Joined: 26 May 2006
Posts: 1

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

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: 11719
Location: Muenster, Germany

PostPosted: Sat May 27, 2006 2:23 pm    Post subject: Reply with quote

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

PostPosted: Tue May 30, 2006 11:28 am    Post subject: Re: How do I create/apply a CDEF to an existing graph templa Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group