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 Previous  1, 2, 3
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
iharvey



Joined: 01 Nov 2006
Posts: 42

PostPosted: Wed Jul 22, 2009 9:42 am    Post subject: Reply with quote

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



Joined: 10 Apr 2009
Posts: 44

PostPosted: Wed Oct 21, 2009 2:33 am    Post subject: No Graph for new template Interface Reply with quote

Remove

Last edited by trungtano on Wed Oct 21, 2009 2:41 am; edited 1 time in total
Back to top
trungtano



Joined: 10 Apr 2009
Posts: 44

PostPosted: Wed Oct 21, 2009 2:35 am    Post subject: Re: Cisco interface errors Reply with quote

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
Back to top
GermanSniper



Joined: 28 Aug 2009
Posts: 42
Location: Germany

PostPosted: Thu Feb 25, 2010 2:25 am    Post subject: Reply with quote

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:

/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??



error.jpg
 Description:
Graph
 Filesize:  96.88 KB
 Viewed:  141 Time(s)

error.jpg


Back to top
dino2000



Joined: 01 Jun 2009
Posts: 5

PostPosted: Tue Mar 02, 2010 9:47 am    Post subject: Reply with quote

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:

/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!
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 Previous  1, 2, 3
Page 3 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group