Interface errors scripts and templates
Moderators: Developers, Moderators
No Graph for new template Interface
Remove
Last edited by trungtano on Wed Oct 21, 2009 2:41 am, edited 1 time in total.
Re: Cisco interface errors
Hi all,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
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
-
- Posts: 42
- Joined: Fri Aug 28, 2009 1:43 am
- Location: Germany
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??
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
- Attachments
-
- Graph
- error.jpg (96.88 KiB) Viewed 7201 times
I have exactly the same problem, can someone help!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??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
Interface - Errors/Discards
Me too!
Re: Interface errors scripts and templates
So it sounds like this doesn't work it would be nice to have this working anyone got this working?
Re:
After importing that XML, new datasource items aren't selected properly in its data query settings.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??
(Console -> Data Queries -> "SNMP - Interface Statistics" -> "In/Out Errors/Discarded Packets")
That should be as follows:
Then, re-create graphs and datasources.
Result:
Re: Interface errors scripts and templates
P.S.
If you don't want to overwrite existing template, use this. (This includes only error related items) Import Results:
To add data query:
New graph template:
If you don't want to overwrite existing template, use this. (This includes only error related items) Import Results:
To add data query:
New graph template:
-
- Posts: 3
- Joined: Wed Dec 01, 2010 8:58 pm
Re: Interface errors scripts and templates
Can you tell me what version you exported your template with as I am unable to import it with version 0.8.7e.
Re: Interface errors scripts and templates
>> 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
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
Re: Interface errors scripts and templates
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?
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
Re: Interface errors scripts and templates
noname wrote:P.S.
If you don't want to overwrite existing template, use this. (This includes only error related items) Import Results:
To add data query:
New graph template:
Great it's work
Thank a lot
Who is online
Users browsing this forum: No registered users and 2 guests