Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Utiliz)

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

Moderators: Developers, Moderators

jbarbieri
Cacti User
Posts: 101
Joined: Tue May 24, 2005 8:46 am
Location: Rochester, New Hampshire
Contact:

Post by jbarbieri »

Ok, I liked your templates a lot.

For the FEC, I changed the template around a little bit, dont get to mad, but I just wanted to show others what I did.

One thing I did was if the SNR was below 28, I printed red (suggestion from Nevare, pain to implement but learned a lot in the process).


I also made it so that the errors were areas, so I could see even if the error count was high.

Thanks for the contribution and the help to get it working well :)
Attachments
upfec.JPG
upfec.JPG (46.85 KiB) Viewed 9078 times
jbarbieri
Cacti User
Posts: 101
Joined: Tue May 24, 2005 8:46 am
Location: Rochester, New Hampshire
Contact:

Post by jbarbieri »

Ok well, after moving cacti to another server, now my graphs are broken.

First, it started grabbing the SNR values in tenths of a db, so I had to put the divide by 10 cdef back in.

Got that going, but now the part where it turns red for under 28 is broken. I was wondering if someone could help me out with that current cdef.

Code: Select all

/usr/local/rrdtool-1.3.7/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="    - FEC - Cable Upstream - 1/3" \
--rigid \
--base=1000 \
--height=150 \
--width=600 \
--upper-limit=50 \
--lower-limit=0 \
--vertical-label="CodeWords/sec | SNR" \
--slope-mode \
--font TITLE:8: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/usr/local/cacti-0.8.7d/rra/4/7653.rrd":cisco_up_Unerroreds:LAST \
DEF:b="/usr/local/cacti-0.8.7d/rra/4/7653.rrd":cisco_up_Uncorrecta:LAST \
DEF:c="/usr/local/cacti-0.8.7d/rra/4/7653.rrd":cisco_up_Correcteds:LAST \
DEF:d="/usr/local/cacti-0.8.7d/rra/4/7653.rrd":cisco_up_snr_fec:LAST \
CDEF:cdefbe=d,10,/ \
CDEF:cdefbj=d,280,LE,d,UNKN,IF \
AREA:a#FFFFFF00:"Unerrored\:"  \
GPRINT:a:LAST:"     Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
AREA:b#0000FF7F:"Uncorrectables\:"  \
GPRINT:b:LAST:"Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MAX:"Maximum\:%8.0lf\n"  \
LINE1:b#0000FFFF:""  \
AREA:c#00FF007F:"Correctables\:"  \
GPRINT:c:LAST:"  Current\:%8.0lf"  \
GPRINT:c:AVERAGE:"Average\:%8.0lf"  \
GPRINT:c:MAX:"Maximum\:%8.0lf\n"  \
LINE1:c#00FF00FF:""  \
LINE3:cdefbe#3D168BFF:"SNR"  \
GPRINT:cdefbe:LAST:"            Current\:%8.2lf %s"  \
GPRINT:cdefbe:MAX:"Max\:%8.2lf %s"  \
GPRINT:cdefbe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbe:MIN:"Min\:%8.2lf %s\n"  \
LINE3:cdefbj#FF0000FF:"SNR < 28\n" 
Produces this graph:




I tried changing the cdef from 28, to 280, to 2.8, and changing the source from "d" to "cdefbe" and I could not get anything to work.


Thanks
Attachments
fec.png
fec.png (33.77 KiB) Viewed 8854 times
jbarbieri
Cacti User
Posts: 101
Joined: Tue May 24, 2005 8:46 am
Location: Rochester, New Hampshire
Contact:

Post by jbarbieri »

Heh, guess I posted 2 minutes to early.

I solved my own issue, I changed my CDEF to:

Code: Select all

cdefbe,28,LE,cdefbe,UNKN,IF
jaxxan
Posts: 1
Joined: Tue Sep 01, 2009 5:09 pm

These don't work on Cacti 0.8.7c

Post by jaxxan »

I'm trying to get these templates to work on Cacti 0.8.7c but I'm not having any luck.

I recently migrated from a bunch of Arris C3's to a couple of Cisco UBR10K's and I can't get any of these templates to work.

Is there anyone running 0.8.7c that can re-export these for me please?
BobbyMe
Posts: 1
Joined: Tue Oct 20, 2009 11:43 pm

Post by BobbyMe »

Why not all together? :D
sinnerjan
Posts: 2
Joined: Tue Mar 02, 2010 3:24 am

Post by sinnerjan »

I had problem with FEC. The file is created, but not displayed. Cacti versions 0.8.7е.

Here schedule adjustment is shown.

Code: Select all

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=1267436626 \
--end=1267523026 \
--title="5/0/0/0 - FEC - Cable5/0/0-upst" \
--rigid \
--base=1000 \
--height=150 \
--width=600 \
--upper-limit=5 \
--lower-limit=0 \
COMMENT:"From 2010/03/01 14\:43\:46 To 2010/03/02 14\:43\:46\c" \
COMMENT:"  \n" \
--vertical-label="CodeWords % | SNR" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/share/cacti/rra/5000_cisco_up_snr_fec_85.rrd":cisco_up_Unerroreds:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/5000_cisco_up_snr_fec_85.rrd":cisco_up_Correcteds:AVERAGE \
DEF:c="/usr/local/share/cacti/rra/5000_cisco_up_snr_fec_85.rrd":cisco_up_Uncorrecta:AVERAGE \
DEF:d="/usr/local/share/cacti/rra/5000_cisco_up_snr_fec_85.rrd":cisco_up_snr_fec:AVERAGE \
CDEF:cdefa=a,100,/ \
CDEF:cdeff=b,10,/ \
CDEF:cdefbc=TIME,1267522971,GT,a,a,UN,0,a,IF,IF,TIME,1267522971,GT,b,b,UN,0,b,IF,IF,TIME,1267522971,GT,c,c,UN,0,c,IF,IF,TIME,1267522971,GT,d,d,UN,0,d,IF,IF,+,+,+ \
CDEF:cdefbg=b,100,*,TIME,1267522971,GT,a,a,UN,0,a,IF,IF,TIME,1267522971,GT,b,b,UN,0,b,IF,IF,TIME,1267522971,GT,c,c,UN,0,c,IF,IF,TIME,1267522971,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefbj=c,100,*,TIME,1267522971,GT,a,a,UN,0,a,IF,IF,TIME,1267522971,GT,b,b,UN,0,b,IF,IF,TIME,1267522971,GT,c,c,UN,0,c,IF,IF,TIME,1267522971,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefcc=b,100,*,,/ \
CDEF:cdefcd=c,100,*,,/ \
CDEF:cdefce=d,100,/ \
AREA:cdefa#FFFFFFFF:"CW Error-Free\:"  \
GPRINT:a:LAST:"                     Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
LINE1:b#FFFFFFFF:"Corrected CW\:"  \
GPRINT:cdeff:LAST:"                      Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MAX:"Maximum\:%8.0lf\n"  \
LINE1:c#FFFFFFFF:"CW with errors\:"  \
GPRINT:c:LAST:"                    Current\:%8.0lf"  \
GPRINT:c:AVERAGE:"Average\:%8.0lf"  \
GPRINT:c:MAX:"Maximum\:%8.0lf\n"  \
COMMENT:"Total CWs"  \
GPRINT:cdefbc:LAST:"Current\:%8.0lf"  \
GPRINT:cdefbc:AVERAGE:"Average\:%8.0lf"  \
GPRINT:cdefbc:MAX:"Maximum\:%8.0lf\n"  \
GPRINT:cdefbg:LAST:"Correctable Current\:%10.3lf"  \
GPRINT:cdefbg:AVERAGE:"Correctable Avg\:%10.3lf"  \
GPRINT:cdefbg:MAX:"Correctable Max\:%10.3lf\n"  \
GPRINT:cdefbj:LAST:"Uncorrectab Current\:%10.3lf"  \
GPRINT:cdefbj:AVERAGE:"Uncorrectab Avg\:%10.3lf"  \
GPRINT:cdefbj:MAX:"Uncorrectab Max\:%10.3lf\n"  \
LINE3:cdefcc#00BF47FF:"Correctable in %\n"  \
LINE3:cdefcd#FF4105FF:"Uncorrectab in %\n"  \
LINE3:cdefce#3D168BFF:"SNR = Divided per 100 (3.00 = 30DB)"  \
GPRINT:cdefce:LAST:"Current\:%8.2lf %s"
By pressing on "CSV Export", opens through a notepad and here that is written.

Code: Select all

"Title:","5/0/0/0 - FEC - Cable5/0/0-upst"
"Vertical Label:","CodeWords % | SNR"
<br />
<b>Notice</b>:  Undefined index:  start in <b>/usr/local/share/cacti/graph_xport.php</b> on line <b>101</b><br />
"Start Date:","1970-01-01 05:00:00"
<br />
<b>Notice</b>:  Undefined index:  end in <b>/usr/local/share/cacti/graph_xport.php</b> on line <b>102</b><br />
"End Date:","1970-01-01 05:00:00"
<br />
<b>Notice</b>:  Undefined index:  step in <b>/usr/local/share/cacti/graph_xport.php</b> on line <b>103</b><br />
"Step:",""
<br />
<b>Notice</b>:  Undefined index:  rows in <b>/usr/local/share/cacti/graph_xport.php</b> on line <b>104</b><br />
"Total Rows:",""
"Graph ID:","82"
"Host ID:","39"
""
<br />
<b>Notice</b>:  Undefined index:  columns in <b>/usr/local/share/cacti/graph_xport.php</b> on line <b>122</b><br />
"Date"
<br />
<b>Notice</b>:  Undefined index:  data in <b>/usr/local/share/cacti/graph_xport.php</b> on line <b>128</b><br />
I ask to help to understand, it is necessary on operation. The heads press.
Last edited by sinnerjan on Wed Mar 10, 2010 2:27 am, edited 3 times in total.
sinnerjan
Posts: 2
Joined: Tue Mar 02, 2010 3:24 am

Post by sinnerjan »

Who that will be able the suspenderses? I this it is necessary on work.
Karol_zem
Posts: 3
Joined: Thu Apr 22, 2010 2:45 am
Location: Poznan

Post by Karol_zem »

What rrdtool result you have?

Maybe you have the same situation as I. I have problem with CDEF CWs Correct FEC. Looks that Special Data Source: ALL_DATA_SOURCES_NODUPS is not working properly in 0.8.7.e.

Please take a look at - http://forums.cacti.net/viewtopic.php?t=35073
politruk
Posts: 3
Joined: Mon Apr 25, 2011 2:39 am

Re:

Post by politruk »

After upgrading cacti from 0.8.7b to 0.8.7g, FEC graphs aren't displayed. In web-server logs I see:

Code: Select all

ERROR: invalid rpn expression in: b,100,*,,/
Downgrade rrdtool from 1.4.5 to 1.2.30_1 doesn't help.
This is output of debug:

Code: Select all

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=1303629085 \
--end=1303715485 \
--title='    UBR - FEC - Cable5/0 - Cable Downstrea' \
--rigid \
--base=1000 \
--height=150 \
--width=600 \
--upper-limit='5' \
--lower-limit='0' \
COMMENT:"From 2011/04/24 10\:11\:25 To 2011/04/25 10\:11\:25\c" \
COMMENT:"  \n" \
--vertical-label='CodeWords % | SNR' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/www/apache22/data/cacti/rra/ubr_cisco_up_uncorrecta_4685.rrd":cisco_up_Unerroreds:AVERAGE \
DEF:b="/usr/local/www/apache22/data/cacti/rra/ubr_cisco_up_uncorrecta_4685.rrd":cisco_up_Correcteds:AVERAGE \
DEF:c="/usr/local/www/apache22/data/cacti/rra/ubr_cisco_up_uncorrecta_4685.rrd":cisco_up_Uncorrecta:AVERAGE \
DEF:d="/usr/local/www/apache22/data/cacti/rra/ubr_cisco_up_uncorrecta_4685.rrd":cisco_up_snr_fec:AVERAGE \
CDEF:cdefa=a,100,/ \
CDEF:cdeff=b,10,/ \
CDEF:cdefbc=TIME,1303715289,GT,a,a,UN,0,a,IF,IF,TIME,1303715289,GT,b,b,UN,0,b,IF,IF,TIME,1303715289,GT,c,c,UN,0,c,IF,IF,TIME,1303715289,GT,d,d,UN,0,d,IF,IF,+,+,+ \
CDEF:cdefbg=b,100,*,TIME,1303715289,GT,a,a,UN,0,a,IF,IF,TIME,1303715289,GT,b,b,UN,0,b,IF,IF,TIME,1303715289,GT,c,c,UN,0,c,IF,IF,TIME,1303715289,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefbj=c,100,*,TIME,1303715289,GT,a,a,UN,0,a,IF,IF,TIME,1303715289,GT,b,b,UN,0,b,IF,IF,TIME,1303715289,GT,c,c,UN,0,c,IF,IF,TIME,1303715289,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefcc=b,100,*,,/ \
CDEF:cdefcd=c,100,*,,/ \
CDEF:cdefce=d,100,/ \
AREA:cdefa#FFFFFFFF:"CW Error-Free\:"  \
GPRINT:a:LAST:"                     Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
LINE1:b#FFFFFFFF:"Corrected CW\:"  \
GPRINT:cdeff:LAST:"                      Current\:%8.0lf"  \
GPRINT:b:AVERAGE:"Average\:%8.0lf"  \
GPRINT:b:MAX:"Maximum\:%8.0lf\n"  \
LINE1:c#FFFFFFFF:"CW with errors\:"  \
GPRINT:c:LAST:"                    Current\:%8.0lf"  \
GPRINT:c:AVERAGE:"Average\:%8.0lf"  \
GPRINT:c:MAX:"Maximum\:%8.0lf\n"  \
COMMENT:"Total CWs"  \
GPRINT:cdefbc:LAST:"Current\:%8.0lf"  \
GPRINT:cdefbc:AVERAGE:"Average\:%8.0lf"  \
GPRINT:cdefbc:MAX:"Maximum\:%8.0lf\n"  \
GPRINT:cdefbg:LAST:"Correctable Current\:%10.3lf"  \
GPRINT:cdefbg:AVERAGE:"Correctable Avg\:%10.3lf"  \
GPRINT:cdefbg:MAX:"Correctable Max\:%10.3lf\n"  \
GPRINT:cdefbj:LAST:"Uncorrectab Current\:%10.3lf"  \
GPRINT:cdefbj:AVERAGE:"Uncorrectab Avg\:%10.3lf"  \
GPRINT:cdefbj:MAX:"Uncorrectab Max\:%10.3lf\n"  \
LINE3:cdefcc#00BF47FF:"Correctable in %\n"  \
LINE3:cdefcd#FF4105FF:"Uncorrectab in %\n"  \
LINE3:cdefce#3D168BFF:"SNR = Divided per 100 (3.00 = 30DB)"  \
GPRINT:cdefce:LAST:"Current\:%8.2lf %s" 
How to struggle with an error?
Thanks.
jalcock
Posts: 1
Joined: Tue Jul 31, 2012 10:38 am

Re: Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Uti

Post by jalcock »

Has anyone found a solution to this?

I am running .8.7i

John

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Ca3/0 upstream0 RN PN - FEC Errors' \
--rigid \
--base=1000 \
--height=150 \
--width=600 \
--upper-limit='5' \
--lower-limit='0' \
--vertical-label='CodeWords % | SNR' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/lib/cacti/rra/celina_cmts1_cisco_up_correcteds_265.rrd":cisco_up_Unerroreds:AVERAGE \
DEF:b="/var/lib/cacti/rra/celina_cmts1_cisco_up_correcteds_265.rrd":cisco_up_Correcteds:AVERAGE \
DEF:c="/var/lib/cacti/rra/celina_cmts1_cisco_up_correcteds_265.rrd":cisco_up_Uncorrecta:AVERAGE \
DEF:d="/var/lib/cacti/rra/celina_cmts1_cisco_up_correcteds_265.rrd":cisco_up_snr_fec:AVERAGE \
CDEF:cdefa=a,100,/ \
CDEF:cdeff=b,10,/ \
CDEF:cdefbc=TIME,1343749013,GT,a,a,UN,0,a,IF,IF,TIME,1343749013,GT,b,b,UN,0,b,IF,IF,TIME,1343749013,GT,c,c,UN,0,c,IF,IF,TIME,1343749013,GT,d,d,UN,0,d,IF,IF,+,+,+ \
CDEF:cdefbg=b,100,*,TIME,1343749013,GT,a,a,UN,0,a,IF,IF,TIME,1343749013,GT,b,b,UN,0,b,IF,IF,TIME,1343749013,GT,c,c,UN,0,c,IF,IF,TIME,1343749013,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefbj=c,100,*,TIME,1343749013,GT,a,a,UN,0,a,IF,IF,TIME,1343749013,GT,b,b,UN,0,b,IF,IF,TIME,1343749013,GT,c,c,UN,0,c,IF,IF,TIME,1343749013,GT,d,d,UN,0,d,IF,IF,+,+,+,/ \
CDEF:cdefcc=b,100,*,,/ \
CDEF:cdefcd=c,100,*,,/ \
CDEF:cdefce=d,100,/ \
AREA:cdefa#FFFFFFFF:"CW Error-Free\:" \
GPRINT:a:LAST:" Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
LINE1:b#FFFFFFFF:"Corrected CW\:" \
GPRINT:cdeff:LAST:" Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
LINE1:c#FFFFFFFF:"CW with errors\:" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Total CWs" \
GPRINT:cdefbc:LAST:"Current\:%8.0lf" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.0lf" \
GPRINT:cdefbc:MAX:"Maximum\:%8.0lf\n" \
GPRINT:cdefbg:LAST:"Correctable Current\:%10.3lf" \
GPRINT:cdefbg:AVERAGE:"Correctable Avg\:%10.3lf" \
GPRINT:cdefbg:MAX:"Correctable Max\:%10.3lf\n" \
GPRINT:cdefbj:LAST:"Uncorrectab Current\:%10.3lf" \
GPRINT:cdefbj:AVERAGE:"Uncorrectab Avg\:%10.3lf" \
GPRINT:cdefbj:MAX:"Uncorrectab Max\:%10.3lf\n" \
LINE3:cdefcc#00BF47FF:"Correctable in %\n" \
LINE3:cdefcd#FF4105FF:"Uncorrectab in %\n" \
LINE3:cdefce#3D168BFF:"SNR = Divided per 100 (3.00 = 30DB)" \
GPRINT:cdefce:LAST:"Current\:%8.2lf %s"
RRDTool Says:
ERROR: invalid rpn expression in: b,100,*,,/
pacopaco
Posts: 3
Joined: Sat Feb 01, 2014 9:27 am

Re: Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Uti

Post by pacopaco »

Hi,

I'm new with Cacti, and I have Cisco UBR 7246 to monitor. I have done everything that is written in the original post, and my question is: how can I relate, for example 'SNR' and 'modems per upstream' graphs for certain Upstream ?
Hitch
Posts: 29
Joined: Thu Jul 26, 2007 8:17 am

Re: Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Uti

Post by Hitch »

I'm not sure what you mean by relating amount of modems to the snr, they aren't related to each other.
What exactly are you looking to do?

On the 18 ubrs I take care of, on each interface (mac domain) I look at the following with Cacti:

1. Modems per interface
2. Modems per upstream
3. Upstream traffic
4. Upstream snr, including fec errors, both correctable and uncorrectable.
5. Downstream traffic (per downstream channel, as well as combined along with wideband).
Sometimes look at upstream utilization and upstream frequency.

This information is most certainly enough information to determine where to start looking for problems.

Roger

edit reason: maybe make an english sentence, duh!
pacopaco
Posts: 3
Joined: Sat Feb 01, 2014 9:27 am

Re: Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Uti

Post by pacopaco »

Here is what I'm trying to get:
Attachments
cacti.png
cacti.png (129.29 KiB) Viewed 5328 times
Hitch
Posts: 29
Joined: Thu Jul 26, 2007 8:17 am

Re: Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Uti

Post by Hitch »

Hi Pacopaco,
To me it looks like your mec upstream graph is actually the snr for the upstream. I am not sure what the horizontal lines are in that graph though. Here is what I graph for each cable interface (mac domain if you prefer). I stripped out a few graphs, so the message should be a little easier to decipher. Our field personal like this layout quite a bit, and I have the menu's set so one can pick the ubr (I have 15 10k's and 3 7246's), then zoom down to each cable interface. I am running on 0.8.8.a.
catci_for_paco.png
catci_for_paco.png (223.78 KiB) Viewed 5326 times
It took a while to figure out the fec graph, but that graph is probably the most looked at graph by our field personal. All of our guys have laptops. I can try to export them as templates if you'd like to try them. I'm at work right now, but I will try to export them after I finish what I'm doing right now and post them here. I've never exported anything, I hope its as straight-forward as importing!


** Edit - I've uploaded the data template that I exported, but am unable to upload the graph template, as the message board says this:
The upload was rejected because the uploaded file was identified as a possible attack vector.
I'm not sure how to proceed here.
Paco, let me know if you want this info for sure, and we'll figure something out.

Roger
Attachments
cacti_data_template_interface_-_upstream_fec.xml
(10.9 KiB) Downloaded 437 times
pacopaco
Posts: 3
Joined: Sat Feb 01, 2014 9:27 am

Re: Templates to Cisco uBR (SNR, FEC, Modems Ups, Interf Uti

Post by pacopaco »

Thank's for upload Hitch , it works great now.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest