Interface errors scripts and templates

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

Moderators: Moderators, Developers

Author
Message
iharvey
Posts: 42
Joined: Wed Nov 01, 2006 6:10 am

#31 Post by iharvey » Wed Jul 22, 2009 9:42 am

This is brilliant - it is all working now - and I have set up thresholds to send me emails when arrors occur.

trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

No Graph for new template Interface

#32 Post by trungtano » Wed Oct 21, 2009 2:33 am

Remove
Last edited by trungtano on Wed Oct 21, 2009 2:41 am, edited 1 time in total.

trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Cisco interface errors

#33 Post by trungtano » Wed Oct 21, 2009 2:35 am

iso1779 wrote:Hi,
attached is a modified interface errors/discards xml and the corresponding interface.xml to monitor additional interface errors on cisco's.
added
Runts, frames, overuns, crc's, discards etc..;

!!!! BE CAREFULL, IT WILL OVERWRITE THE ORIGINAL FILES SO TAKE A BACKUP!!!!!!

Enjoy,
br
Olivier
Hi all,

When I install the template as provide one graph template error.
There is no graph display for Interface - Traffic - In/Out and Errors/Discards. Here is the debug form RRDTool

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="core 1 pdc - Traffic - |query_ifName|" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/core_1_pdc_traffic_in_383.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/core_1_pdc_traffic_in_383.rrd":traffic_out:AVERAGE \
DEF:c="/usr/share/cacti/rra/core_1_pdc_errors_in_382.rrd":errors_in:AVERAGE \
DEF:d="/usr/share/cacti/rra/core_1_pdc_errors_in_382.rrd":discards_in:AVERAGE \
DEF:e="/usr/share/cacti/rra/core_1_pdc_errors_in_382.rrd":errors_out:AVERAGE \
DEF:f="/usr/share/cacti/rra/core_1_pdc_errors_in_382.rrd":discards_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefbg=c,300,* \
CDEF:cdefcb=d,300,* \
CDEF:cdefcg=e,300,* \
CDEF:cdefdb=f,300,* \
AREA:cdefa#00CF00FF:"From CPE" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97FF:"To CPE" \
GPRINT:cdeff:LAST:" Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes\n" \
COMMENT:" \n" \
COMMENT:"---------------- Errors and Discards ------------------------------------ Counters ----------\n" \
LINE1:c#FF4105FF:"Errors in" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s" \
GPRINT:cdefbg:LAST:"Total\:%8.0lf\n" \
LINE1:d#8D85F3FF:"Discards in" \
GPRINT:d:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s" \
GPRINT:cdefcb:LAST:"Total\:%8.0lf\n" \
LINE1:e#00BED9FF:"Errors out" \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s" \
GPRINT:cdefcg:LAST:"Total\:%8.0lf\n" \
LINE1:f#FFF200FF:"Discards out" \
GPRINT:f:LAST:"Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s" \
GPRINT:cdefdb:LAST:"Total\:%8.0lf\n" \
COMMENT:"Graph generated at\: Wed 21 Oct 14\:25\:01 ICT 2009\n"
RRDTool Says:

ERROR: opening '/usr/share/cacti/rra/core_1_pdc_traffic_in_383.rrd': No such file or directory

Do I need change any function?
Thanks for any help
Best regards

GermanSniper
Posts: 42
Joined: Fri Aug 28, 2009 1:43 am
Location: Germany

#34 Post by GermanSniper » Thu Feb 25, 2010 2:25 am

Hi

i want to use the modified interface errors xml from iso1779 but i only get "nan" values.

I checked the oid's for my cisco device and they are ok.

RRDTOOL Debug also says OK

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="XXXXX- Errors - Fa0/24" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="errors/sec" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/106/3627.rrd":discards_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/106/3627.rrd":errors_in:AVERAGE \
DEF:c="/usr/share/cacti/rra/106/3627.rrd":discards_out:AVERAGE \
DEF:d="/usr/share/cacti/rra/106/3627.rrd":errors_out:AVERAGE \
DEF:e="/usr/share/cacti/rra/106/3627.rrd":Giants:AVERAGE \
DEF:f="/usr/share/cacti/rra/106/3627.rrd":Runts:AVERAGE \
DEF:g="/usr/share/cacti/rra/106/3627.rrd":Collisions:AVERAGE \
DEF:h="/usr/share/cacti/rra/106/3627.rrd":Frames:AVERAGE \
DEF:i="/usr/share/cacti/rra/106/3627.rrd":Ignored:AVERAGE \
DEF:j="/usr/share/cacti/rra/106/3627.rrd":Overruns:AVERAGE \
DEF:ba="/usr/share/cacti/rra/106/3627.rrd":CRC:AVERAGE \
LINE1:a#FFAB00FF:"Discards In"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:b#F51D30FF:"Errors In"  \
GPRINT:b:LAST:"   Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:c#C4FD3DFF:"Discards Out"  \
GPRINT:c:LAST:"Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:d#00694AFF:"Errors Out"  \
GPRINT:d:LAST:"  Current\:%8.2lf %s"  \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:e#EE5019FF:"Giants"  \
COMMENT:"Graph Last Updated\:Thu 25 Feb 08\:20\:15 CET 2010\n"  \
GPRINT:e:LAST:"      Current\:%8.2lf %s"  \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:f#55009DFF:"Runts"  \
GPRINT:f:LAST:"       Current\:%8.2lf %s"  \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:g#CCBB00FF:"Collisions"  \
GPRINT:g:LAST:"  Current\:%8.2lf %s"  \
GPRINT:g:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:g:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:h#888888FF:"Frames"  \
GPRINT:h:LAST:"      Current\:%8.2lf %s"  \
GPRINT:h:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:i#CAF100FF:"Ignored"  \
GPRINT:i:LAST:"     Current\:%8.2lf %s"  \
GPRINT:i:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:i:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:j#FFC3C0FF:"Overruns"  \
GPRINT:j:LAST:"    Current\:%8.2lf %s"  \
GPRINT:j:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:j:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:ba#FF0000FF:"CRCs"  \
GPRINT:ba:LAST:"        Current\:%8.2lf %s"  \
GPRINT:ba:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:ba:MAX:"Maximum\:%8.2lf %s\n" 
RRDTool Says:

OK
Any suggestions what i can do??
Attachments
error.jpg
Graph
error.jpg (96.88 KiB) Viewed 6083 times

dino2000
Posts: 7
Joined: Mon Jun 01, 2009 4:24 am

#35 Post by dino2000 » Tue Mar 02, 2010 9:47 am

GermanSniper wrote:Hi

i want to use the modified interface errors xml from iso1779 but i only get "nan" values.

I checked the oid's for my cisco device and they are ok.

RRDTOOL Debug also says OK

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="XXXXX- Errors - Fa0/24" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="errors/sec" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/106/3627.rrd":discards_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/106/3627.rrd":errors_in:AVERAGE \
DEF:c="/usr/share/cacti/rra/106/3627.rrd":discards_out:AVERAGE \
DEF:d="/usr/share/cacti/rra/106/3627.rrd":errors_out:AVERAGE \
DEF:e="/usr/share/cacti/rra/106/3627.rrd":Giants:AVERAGE \
DEF:f="/usr/share/cacti/rra/106/3627.rrd":Runts:AVERAGE \
DEF:g="/usr/share/cacti/rra/106/3627.rrd":Collisions:AVERAGE \
DEF:h="/usr/share/cacti/rra/106/3627.rrd":Frames:AVERAGE \
DEF:i="/usr/share/cacti/rra/106/3627.rrd":Ignored:AVERAGE \
DEF:j="/usr/share/cacti/rra/106/3627.rrd":Overruns:AVERAGE \
DEF:ba="/usr/share/cacti/rra/106/3627.rrd":CRC:AVERAGE \
LINE1:a#FFAB00FF:"Discards In"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:b#F51D30FF:"Errors In"  \
GPRINT:b:LAST:"   Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:c#C4FD3DFF:"Discards Out"  \
GPRINT:c:LAST:"Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:d#00694AFF:"Errors Out"  \
GPRINT:d:LAST:"  Current\:%8.2lf %s"  \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:e#EE5019FF:"Giants"  \
COMMENT:"Graph Last Updated\:Thu 25 Feb 08\:20\:15 CET 2010\n"  \
GPRINT:e:LAST:"      Current\:%8.2lf %s"  \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:f#55009DFF:"Runts"  \
GPRINT:f:LAST:"       Current\:%8.2lf %s"  \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:g#CCBB00FF:"Collisions"  \
GPRINT:g:LAST:"  Current\:%8.2lf %s"  \
GPRINT:g:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:g:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:h#888888FF:"Frames"  \
GPRINT:h:LAST:"      Current\:%8.2lf %s"  \
GPRINT:h:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:i#CAF100FF:"Ignored"  \
GPRINT:i:LAST:"     Current\:%8.2lf %s"  \
GPRINT:i:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:i:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:j#FFC3C0FF:"Overruns"  \
GPRINT:j:LAST:"    Current\:%8.2lf %s"  \
GPRINT:j:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:j:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:ba#FF0000FF:"CRCs"  \
GPRINT:ba:LAST:"        Current\:%8.2lf %s"  \
GPRINT:ba:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:ba:MAX:"Maximum\:%8.2lf %s\n" 
RRDTool Says:

OK
Any suggestions what i can do??
I have exactly the same problem, can someone help! :D

trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Interface - Errors/Discards

#36 Post by trungtano » Thu May 13, 2010 4:18 am

Me too!

rmcdonald
Posts: 42
Joined: Wed Dec 22, 2010 4:03 pm
Location: Minnesota

Re: Interface errors scripts and templates

#37 Post by rmcdonald » Fri Sep 23, 2011 3:33 pm

So it sounds like this doesn't work it would be nice to have this working anyone got this working?

noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re:

#38 Post by noname » Wed Sep 28, 2011 2:23 am

GermanSniper wrote:Hi

i want to use the modified interface errors xml from iso1779 but i only get "nan" values.

I checked the oid's for my cisco device and they are ok.

RRDTOOL Debug also says OK

Any suggestions what i can do??
Image
After importing that XML, new datasource items aren't selected properly in its data query settings.
(Console -> Data Queries -> "SNMP - Interface Statistics" -> "In/Out Errors/Discarded Packets")

Image

That should be as follows:

Image

Then, re-create graphs and datasources.

Result:
Image

noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Interface errors scripts and templates

#39 Post by noname » Wed Sep 28, 2011 3:59 am

P.S.

If you don't want to overwrite existing template, use this. (This includes only error related items)
cacti_data_query_snmp_-_interface_errorsdiscards_more.xml
Import this xml (including data query, data template, graph template)
(47 KiB) Downloaded 703 times
interface_errors.xml
This file should be placed in 'cacti/resource/snmp_queries/'
(3.96 KiB) Downloaded 647 times
Import Results:
Image

To add data query:
Image

New graph template:
Image

dustenatwork
Posts: 3
Joined: Wed Dec 01, 2010 8:58 pm

Re: Interface errors scripts and templates

#40 Post by dustenatwork » Fri Sep 30, 2011 6:32 pm

Can you tell me what version you exported your template with as I am unable to import it with version 0.8.7e.

noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Interface errors scripts and templates

#41 Post by noname » Mon Oct 03, 2011 4:03 am

>> Can you tell me what version you exported your template with as I am unable to import it with version 0.8.7e.

I exported them from Cacti 0.8.7g.

For 0.8.7e, try this:
- http://forums.cacti.net/viewtopic.php?p=211298#p211298

Otherwise, more simply:
- http://forums.cacti.net/viewtopic.php?p=215698#p215698

imfv
Posts: 7
Joined: Wed Jan 25, 2012 11:04 am

Re: Interface errors scripts and templates

#42 Post by imfv » Tue Jun 18, 2013 6:46 am

I´ve installed this templates.
Now i´m happy that my graphics are blank, but i´m trying to validate the graphics.
I´ve been trying big pings (DF bit set) from one equipament to another without sucess.
Anyone did something and got sucess generating some errors?
"If I have seen further it is by standing on the shoulders of Giants." Isaac Newton

trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Interface errors scripts and templates

#43 Post by trungtano » Fri Aug 02, 2013 1:06 am

noname wrote:P.S.

If you don't want to overwrite existing template, use this. (This includes only error related items)
cacti_data_query_snmp_-_interface_errorsdiscards_more.xml
interface_errors.xml
Import Results:
Image

To add data query:
Image

New graph template:
Image

Great it's work

Thank a lot

Post Reply