Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Arris Cable Modem Templates

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
rgoode



Joined: 11 Mar 2007
Posts: 3

PostPosted: Sun Mar 11, 2007 2:39 pm    Post subject: Arris Cable Modem Templates Reply with quote

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
Back to top
rgoode



Joined: 11 Mar 2007
Posts: 3

PostPosted: Sun Mar 11, 2007 5:29 pm    Post subject: a quick fix Reply with quote

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

Fixed that.



cacti_host_template_arris_modem.zip
 Description:

Download
 Filename:  cacti_host_template_arris_modem.zip
 Filesize:  4.46 KB
 Downloaded:  242 Time(s)

Back to top
EgoProwler



Joined: 23 Sep 2007
Posts: 1

PostPosted: Sun Sep 23, 2007 5:37 pm    Post subject: Reply with quote

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?
Back to top
rgoode



Joined: 11 Mar 2007
Posts: 3

PostPosted: Tue Oct 09, 2007 11:49 pm    Post subject: Reply with quote

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

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

Ryan
Back to top
Simba7



Joined: 11 Sep 2007
Posts: 21

PostPosted: Thu Dec 20, 2007 12:18 pm    Post subject: Reply with quote

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:
 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.
Back to top
MorbidDK



Joined: 28 Apr 2005
Posts: 11

PostPosted: Mon Aug 18, 2008 2:51 pm    Post subject: Reply with quote

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:

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?
Back to top
MorbidDK



Joined: 28 Apr 2005
Posts: 11

PostPosted: Mon Aug 18, 2008 3:51 pm    Post subject: Reply with quote

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.



after.jpg
 Description:
After Change
 Filesize:  20.85 KB
 Viewed:  1493 Time(s)

after.jpg



before.jpg
 Description:
Before Change
 Filesize:  18.55 KB
 Viewed:  1493 Time(s)

before.jpg


Back to top
MorbidDK



Joined: 28 Apr 2005
Posts: 11

PostPosted: Mon Aug 18, 2008 5:16 pm    Post subject: Reply with quote

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.



arris_modem_-_rf_statstics.xml
 Description:

Download
 Filename:  arris_modem_-_rf_statstics.xml
 Filesize:  14.32 KB
 Downloaded:  57 Time(s)

Back to top
Simba7



Joined: 11 Sep 2007
Posts: 21

PostPosted: Mon Nov 10, 2008 2:55 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group