Arris Cable Modem Templates
Moderators: Developers, Moderators
Arris Cable Modem Templates
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
----
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.
a quick fix
I had some of the GPRINT values swapped by accident so the legend data wasnt matching its label.
Fixed that.
Fixed that.
- Attachments
-
- cacti_host_template_arris_modem.zip
- (4.46 KiB) Downloaded 1032 times
-
- Posts: 1
- Joined: Sun Sep 23, 2007 5:33 pm
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?
I'm using 0.8.6h on Ubuntu Dapper. Any way to get this script working/imported to the graphs?
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:
It's doing this with all the graphs related to the Arris.
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
I'm having this same problem, did anyone get this fixed or resolved?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:
It's doing this with all the graphs related to the Arris.Code: Select all
RRDTool Says: ERROR: the RRD does not contain an RRA matching the chosen CF
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.
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.jpg (18.55 KiB) Viewed 16422 times
-
- After Change
- after.jpg (20.85 KiB) Viewed 16422 times
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.
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
Re: Arris Cable Modem Templates
Well, this is broken.. Wonder what happened..
I rebuilt my Cacti server and now it's throwing this at me.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
Re: Arris Cable Modem Templates
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.
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.
Re: Arris Cable Modem Templates
I'm having the same error. Have you been able to correct it? I'm wanting to get monitoring setup on my SB8200.Simba7 wrote: ↑Thu Feb 17, 2011 3:26 pm Well, this is broken.. Wonder what happened..
I rebuilt my Cacti server and now it's throwing this at me.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
Re: Arris Cable Modem Templates
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 1 guest