Juniper ERX Edge router PPPoE statistics

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

Moderators: Developers, Moderators

Post Reply
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Juniper ERX Edge router PPPoE statistics

Post by terziyski »

Hi,
I recently wrote a templates for Juniper ERX Edge router PPPoE statistics, if anyone's interested:

Install:
copy ERX-PPPoE.xml to <path_cacti>/resource/snmp_queries/
import cacti_data_query_snmp_-_erx_pppoe_statistics.xml
enjoy...
(Cacti 0.8.7e)
Attachments
ERX-PPPoE.xml
(5.48 KiB) Downloaded 349 times
cacti_data_query_snmp_-_erx_pppoe_statistics.xml
(42.9 KiB) Downloaded 619 times
graph_image.php.png
graph_image.php.png (82.61 KiB) Viewed 3604 times
Cacti user
niacine
Posts: 1
Joined: Fri Mar 18, 2011 1:05 pm

Re: Juniper ERX Edge router PPPoE statistics

Post by niacine »

Hi, Your template look awesome! I need this script for my ERX-310 :)
However i am not able to make it work with cacti Version 0.8.7g

There is the error:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ERX01 - Subscribers" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Subscribers" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/erx01_p1_365.rrd":p1:LAST \
DEF:b="/var/lib/cacti/rra/erx01_ppp_sessions_364.rrd":PPP_Sessions:LAST \
DEF:c="/var/lib/cacti/rra/erx01_ppp_sessions_364.rrd":PPP_Sessions:AVERAGE \
CDEF:cdeff=a,d,- \
LINE1:a#00694AFF:"" \
AREA:a#7EE60099:"Total Users" \
GPRINT:a:LAST:" Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
AREA:cdeff#D8ACE0FF:"" \
AREA:b#F5F800FF:"Tunneled" \
GPRINT:b:LAST:" Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
LINE1:c#F51D30FF:"" \
LINE2:cdeff#8D00BAFF:"PPP Terminated" \
GPRINT:cdeff:LAST:"Current\:%8.0lf" \
GPRINT:cdeff:AVERAGE:"Average\:%8.0lf" \
GPRINT:cdeff:MAX:"Maximum\:%8.0lf\n"

RRDTool Says:

ERROR: invalid rpn expression in: a,d,-


What version of cacti this templates was created for?
Is there a fix

Regards,

Niacine
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Re: Juniper ERX Edge router PPPoE statistics

Post by terziyski »

It was created for Cacti 0.8.7e version RRDTool 1.2. I suppose there is a problem with supplemental graph template data. Also check validity of your data sources. The newer version might be an incompatible with these templates, but I'm sure that they can be adopted.
Cacti user
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest