Arris Cable Modem Templates

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

Moderators: Developers, Moderators

Post Reply
rgoode
Posts: 3
Joined: Sun Mar 11, 2007 2:25 pm

Arris Cable Modem Templates

Post by rgoode »

I wrote a php script and setup templates for an arris tm402g cable modem. Figured id share them with the cacti community.


Installation steps for the arris cable modem template.

1. - Copy the arris_cable_modem.php file to <cacti_path>/scripts/ on the server
that is running cacti.

2. - Goto the Cacti console, login to the interface, click 'Import Templates'.
The easiest way is to just use 'Import template from local file'.

3. - Now create a new graph/new host. Fill in the description and the IP of
the modem (usually 192.168.100.1), however this is only for cacti's use,
not for the actuall PHP script you have loaded into your scripts folder.
For 'Host Template' choose 'Arris Modem'. Do not worry about SNMP values
because the script does not use SNMP.

4. - The Host/Device has been setup, now you just need to create the graphs
as normal.

5. - Done!

*NOTE*
If the IP of your modem is not 192.168.100.1 then you need to change
the IP in arris_cable_modem.php.
*NOTE*


----
deleted old file and replied with new one
----
Last edited by rgoode on Sun Mar 11, 2007 5:30 pm, edited 1 time in total.
rgoode
Posts: 3
Joined: Sun Mar 11, 2007 2:25 pm

a quick fix

Post by rgoode »

I had some of the GPRINT values swapped by accident so the legend data wasnt matching its label.

Fixed that.
Attachments
cacti_host_template_arris_modem.zip
(4.46 KiB) Downloaded 1032 times
EgoProwler
Posts: 1
Joined: Sun Sep 23, 2007 5:33 pm

Post by EgoProwler »

When importing the XML file I get Error: XML: Hash version does not exist. I searched through the forums and read you can trick Cacti into install by adding versions to the config_arrays.php, which I did, however now I get Error: XML: Generated with a newer version of Cacti.

I'm using 0.8.6h on Ubuntu Dapper. Any way to get this script working/imported to the graphs?
rgoode
Posts: 3
Joined: Sun Mar 11, 2007 2:25 pm

Post by rgoode »

sorry, i havent really been active on this forum as of late.

First question, do you have the latest version of cacti?

Ryan
User avatar
Simba7
Posts: 31
Joined: Tue Sep 11, 2007 10:56 am

Post by Simba7 »

I'm having some problems with it myself.

I just put the script into Cacti and turned on the Graph Debug mode. This is what I'm getting:

Code: Select all

 RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Arris Cable Modem (cablemdm1) - Downstream Power" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label="dBmV" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/localhost/htdocs/cacti/rra/arris_cable_modem_cablemdm1_ds_power_49.rrd":ds_power:LAST \
DEF:b="/var/www/localhost/htdocs/cacti/rra/arris_cable_modem_cablemdm1_ds_power_49.rrd":ds_power:AVERAGE \
DEF:c="/var/www/localhost/htdocs/cacti/rra/arris_cable_modem_cablemdm1_ds_power_49.rrd":ds_power:MAX \
AREA:a#00CF00FF:"Current\:"  \
GPRINT:a:LAST:"%8.2lf %s"  \
LINE1:b#0000FFFF:"Average\:"  \
GPRINT:b:AVERAGE:"%8.2lf %s"  \
LINE2:c#FF0000FF:"Max\:"  \
GPRINT:c:MAX:"    %8.2lf %s" 

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF
It's doing this with all the graphs related to the Arris.
MorbidDK
Posts: 11
Joined: Thu Apr 28, 2005 8:11 am

Post by MorbidDK »

Simba7 wrote:I'm having some problems with it myself.

I just put the script into Cacti and turned on the Graph Debug mode. This is what I'm getting:

Code: Select all

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF
It's doing this with all the graphs related to the Arris.
I'm having this same problem, did anyone get this fixed or resolved?
MorbidDK
Posts: 11
Joined: Thu Apr 28, 2005 8:11 am

Post by MorbidDK »

Oop, figured it out with the help of this post.

http://forums.cacti.net/viewtopic.php?p=12828#12828

Changed the LAST and MAX both to AVERAGE and it graphs fine. Attachments show before the change and after the change.
Attachments
Before Change
Before Change
before.jpg (18.55 KiB) Viewed 16421 times
After Change
After Change
after.jpg (20.85 KiB) Viewed 16421 times
MorbidDK
Posts: 11
Joined: Thu Apr 28, 2005 8:11 am

Post by MorbidDK »

Since I hate to keep editing posts when the available information is valid, I thought I'd make yet another reply. After being unsatisfied with the current template I combined all 3 into a new single graph.

Attached is the single graph which incorporates all three characteristics, Downstream Power, Upstream Power and Downstream Signal-To-Noise. Let me know if you have any questions in regards to this template feel free to drop me a line.

Oh, I should note the same script from the original zip is needed for the template.
Attachments
arris_modem_-_rf_statstics.xml
(14.32 KiB) Downloaded 677 times
User avatar
Simba7
Posts: 31
Joined: Tue Sep 11, 2007 10:56 am

Post by Simba7 »

Ok. I just rebuilt my Cacti and now I'm getting NaN messages like crazy. I can poll the .php file as root just fine but the graphs come up empty.

EDIT: Nevermind. Didn't have it pointing to the php file initially. Duh.
User avatar
Simba7
Posts: 31
Joined: Tue Sep 11, 2007 10:56 am

Re: Arris Cable Modem Templates

Post by Simba7 »

Well, this is broken.. Wonder what happened..
cacti scripts # php ./arris_cable_modem.php
PHP Notice: Undefined variable: html in /var/www/localhost/htdocs/cacti/scripts/arris_cable_modem.php on line 27

Notice: Undefined variable: html in /var/www/localhost/htdocs/cacti/scripts/arris_cable_modem.php on line 27
ds_power:3 ds_snr:38 us_power:46
I rebuilt my Cacti server and now it's throwing this at me.
nikagl
Posts: 1
Joined: Sat Oct 27, 2012 4:17 pm

Re: Arris Cable Modem Templates

Post by nikagl »

Hi guys,

Not sure whether you're still tracking this thread - I'd like to add a logon to the php script. The "Cisco EPC3925 EuroDocsis 3.0 2-PORT Voice Gateway" requires you to logon first before you can access the http://192.168.100.1/Docsis_system.asp and http://192.168.100.1/Docsis_signal.asp pages.

Logon input fields:
input id="Zigloginnaam" name="Zigloginnaam" type="text" class="invoer"
input id="Zigpassword"name="Zigpassword" type="password" class="invoer"

Submit button:
div id="submit" class="zp-button"><a style="width:70px;" onClick="formsubmit()"

Any thoughts?

Regards,

Nika.
turpintb
Posts: 1
Joined: Thu Feb 11, 2010 9:02 am

Re: Arris Cable Modem Templates

Post by turpintb »

Simba7 wrote: Thu Feb 17, 2011 3:26 pm Well, this is broken.. Wonder what happened..
cacti scripts # php ./arris_cable_modem.php
PHP Notice: Undefined variable: html in /var/www/localhost/htdocs/cacti/scripts/arris_cable_modem.php on line 27

Notice: Undefined variable: html in /var/www/localhost/htdocs/cacti/scripts/arris_cable_modem.php on line 27
ds_power:3 ds_snr:38 us_power:46
I rebuilt my Cacti server and now it's throwing this at me.
I'm having the same error. Have you been able to correct it? I'm wanting to get monitoring setup on my SB8200.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Arris Cable Modem Templates

Post by netniV »

Generally speaking that means that you have a variable being used that was not initialised first. Whoever developed the script should prime $html so that it is set even outside of the scope of 'if' statements.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest