Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 17, 2019 8:12 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Wed Jul 22, 2009 9:42 am 
Offline

Joined: Wed Nov 01, 2006 6:10 am
Posts: 42
This is brilliant - it is all working now - and I have set up thresholds to send me emails when arrors occur.


Top
 Profile  
 
 Post subject: No Graph for new template Interface
PostPosted: Wed Oct 21, 2009 2:33 am 
Offline
Cacti User

Joined: Fri Apr 10, 2009 1:57 am
Posts: 90
Remove


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

Top
 Profile  
 
 Post subject: Re: Cisco interface errors
PostPosted: Wed Oct 21, 2009 2:35 am 
Offline
Cacti User

Joined: Fri Apr 10, 2009 1:57 am
Posts: 90
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 25, 2010 2:25 am 
Offline

Joined: Fri Aug 28, 2009 1:43 am
Posts: 42
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

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


Attachments:
File comment: Graph
error.jpg
error.jpg [ 96.88 KiB | Viewed 5971 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2010 9:47 am 
Offline

Joined: Mon Jun 01, 2009 4:24 am
Posts: 7
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! :D


Top
 Profile  
 
 Post subject: Interface - Errors/Discards
PostPosted: Thu May 13, 2010 4:18 am 
Offline
Cacti User

Joined: Fri Apr 10, 2009 1:57 am
Posts: 90
Me too!


Top
 Profile  
 
 Post subject: Re: Interface errors scripts and templates
PostPosted: Fri Sep 23, 2011 3:33 pm 
Offline

Joined: Wed Dec 22, 2010 4:03 pm
Posts: 42
Location: Minnesota
So it sounds like this doesn't work it would be nice to have this working anyone got this working?


Top
 Profile  
 
 Post subject: Re:
PostPosted: Wed Sep 28, 2011 2:23 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1566
Location: Japan
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


Top
 Profile  
 
 Post subject: Re: Interface errors scripts and templates
PostPosted: Wed Sep 28, 2011 3:59 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1566
Location: Japan
P.S.

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


Import Results:
Image

To add data query:
Image

New graph template:
Image


Top
 Profile  
 
 Post subject: Re: Interface errors scripts and templates
PostPosted: Fri Sep 30, 2011 6:32 pm 
Offline

Joined: Wed Dec 01, 2010 8:58 pm
Posts: 3
Can you tell me what version you exported your template with as I am unable to import it with version 0.8.7e.


Top
 Profile  
 
 Post subject: Re: Interface errors scripts and templates
PostPosted: Mon Oct 03, 2011 4:03 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1566
Location: Japan
>> 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:
- noname @ The MySQL Graph Collection - Version 2.0.1!

Otherwise, more simply:
- plakapongza @ Postfix monitoring with David Schweikert's Mailgraph?


Top
 Profile  
 
 Post subject: Re: Interface errors scripts and templates
PostPosted: Tue Jun 18, 2013 6:46 am 
Offline

Joined: Wed Jan 25, 2012 11:04 am
Posts: 7
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


Top
 Profile  
 
 Post subject: Re: Interface errors scripts and templates
PostPosted: Fri Aug 02, 2013 1:06 am 
Offline
Cacti User

Joined: Fri Apr 10, 2009 1:57 am
Posts: 90
noname wrote:
P.S.

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


Import Results:
Image

To add data query:
Image

New graph template:
Image



Great it's work

Thank a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group