|
|
| Author |
Message |
abadaba Cacti User
Joined: 23 Nov 2005 Posts: 52
|
Posted: Sun Sep 17, 2006 2:27 am Post subject: |
|
|
| anyone have any idea about the prob im havin? "LOOK UP"
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6876 Location: WA, USA
|
Posted: Sun Sep 17, 2006 11:39 am Post subject: |
|
|
| Apparently his exported template is corrupt (mismatched hash values). wazoqaz needs to email his cacti database to the devs so they can take a look what is going on.
|
|
| Back to top |
|
 |
Tuckie
Joined: 26 Jul 2007 Posts: 2
|
Posted: Thu Jul 26, 2007 5:31 pm Post subject: |
|
|
Does anyone know why this script would be DOSing my cable modem config page? The script will run fine for about a week, and stop working thanks to a dead admin page on the Motorola 5100. I can't even get to it using a web browser. The only solution is to power cycle the modem. Is anyone else having this problem and how often is the script running anyways?
Oh, the internet continues to work fine, by the way.
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6876 Location: WA, USA
|
Posted: Thu Jul 26, 2007 6:07 pm Post subject: |
|
|
| Possibly buggy web software on the cable modem. Cacti fetching a webpage every 5 minutes probably has exposed some sort of memory leak, etc which kills the modem. I've experienced something similar with a ZyXEL router and using telnet.
|
|
| Back to top |
|
 |
Tuckie
Joined: 26 Jul 2007 Posts: 2
|
Posted: Mon Jul 30, 2007 8:03 pm Post subject: |
|
|
Well, for now I'm using X-10 to powercycle the modem, but for some reason, the script isn't working within cacti. Executing it from the shell works fine though. | Code: | #!/usr/bin/perl
use warnings;
use strict;
use LWP::Simple;
my %data;
my %trash;
my @keys = qw(DownFreq DownSNR DownPower UpFreq UpPower);
my $content = LWP::Simple::get("http://192.168.100.1/signaldata.html");
if (defined $content) {}
else {
system("heyu foff A16");
sleep 5;
system("heyu fon A16");
die "couldn't get it";
}
$content =~ s/\ //g;
# regex in html source order
if ($content =~ /(<td>Frequency<\/td>)/gi) { $trash{a} = $1};
#if ($content =~ /<td>(-?\d+)\sHz\s*<\/td>/gi) { $data{DownFreq} = $1; }
{ $data{DownFreq} = 77; }
if ($content =~ /(<td>Signal To Noise Ratio<\/td>)/gi){ $trash{a} = $1};
if ($content =~ /<td>(-?\d+)\sdB\s*/gi) { $data{DownSNR} = $1; }
if ($content =~ /(<td>Power Level<\/td>)/gi) { $trash{a} = $1};
if ($content =~ /<td>(-?\d+)\sdB\s*/gi) { $data{DownPower} = $1; }
if ($content =~ /(<td>Frequency<\/td>)/gi) { $trash{a} = $1};
#if ($content =~ /<td>*(-?\d+)\sHz\s*<\/td>/gi) { $data{UpFreq} = $1; }
{ $data{UpFreq} = 50; }
if ($content =~ /(<td>Power Level<\/td>)/gi) { $trash{a} = $1};
if ($content =~ /<td>(-?\d+)\sdBmV\s*/gi) { $data{UpPower} = $1; }
for (@keys) {
print "$_:" . $data{$_} . " ";
}
print "\n";
|
I'm wondering if it could be timing out or something, it sits there for probably 15 seconds before it power cycles.
|
|
| Back to top |
|
 |
vector0319
Joined: 10 Sep 2007 Posts: 1
|
Posted: Mon Sep 10, 2007 9:18 pm Post subject: Scientific Atlantica WebSTAR DPX2100 Series Cable Modem |
|
|
Here is my modem info for comcast on the East Coast:
Scientific Atlanta
Name WebSTAR DPX2100 Series Cable Modem
Cable Modem Serial Number 101737630
Cable Modem MAC Address 00:0a:73:60:d2:80
Hardware Version 1.1
Software Version 2.0.1r1131-0304 (dpx2100-v201r1131-0304a.p7b)
it is a Comcast branded rental unit so it is likely alot of people use it. I hacked the original posted script to pull out the Down Power, SNR and Up Power. You can use the original xml file to import and then change script name to this one.
This uses the authentication information that I got here:
http://www.dslreports.com/faq/7363
For the Scientific Atlantica modem from comcast. I poll the page:
http://192.168.100.1/DpxSystem.asp
to retrieve the info I need and parse out the html.
Jeremy
| Description: |
|
 Download |
| Filename: |
sciatl_cable_modem.pl |
| Filesize: |
634 Bytes |
| Downloaded: |
117 Time(s) |
|
|
| Back to top |
|
 |
xtremebassist
Joined: 17 Feb 2007 Posts: 4
|
Posted: Sun Jul 13, 2008 8:09 pm Post subject: Motorola SB5120 |
|
|
I modified the perl script and template for a Motorola SB5120 cable modem. The template was created in Cacti 0.8.7b.
The files are also available here
| Description: |
| Cable Modem Power and Frequency level template and script for Motorola SB5120 Cable Modem |
|
 Download |
| Filename: |
Motorola_SB5120.tar.gz |
| Filesize: |
4.27 KB |
| Downloaded: |
74 Time(s) |
|
|
| Back to top |
|
 |
DougWare
Joined: 12 Nov 2008 Posts: 2
|
Posted: Wed Nov 12, 2008 3:27 pm Post subject: No graphs from the 5101 template/script |
|
|
I can run the script manually, and it outputs the values in the proper format.
However, no graph (blank or otherwise) is created, even though it appears to be configured correctly. When I turn debugging on, I don't see any errors or warnings.
What do I need to do to troubleshoot this?
|
|
| Back to top |
|
 |
DougWare
Joined: 12 Nov 2008 Posts: 2
|
Posted: Wed Nov 12, 2008 4:41 pm Post subject: |
|
|
I've gone over all the files, scripts and templates.
I can't find an error anywhere.
I'm new to Cacti (I've used MRTG for years, and toyed with Zenoss). I managed to get a couple of other graphs that were not working fixed on my install (namely the HTTPresponse time script).
I'm ready to pull my hair out....
|
|
| Back to top |
|
 |
|