|« Home server migration ran into some cacti||Blast it, I missed a payment »|
It was a dark and stormy...late afternoon...yesterday, and....
I had started out almost 7 years ago with a Siemens 4100 DSL Modem, which worked the way I needed it to for my home network. And, wasn't sure how easy it would be to find another like it. I was running it in the cross between router and bridge mode...so that my router could maintain my dyndns info (though it wasn't too long after that I moved that to ddclient on box, which has been more reliable...but I was having ddclient scrape from the router, though the ddclient for the router on my Cox connection wasn't supported so that uses checkip.dyndns.org. So, now both do.
Would probably be too much work to make ddclient go out on the right IP so that ip route will send it to the DSL router, so it can query the DSL modem for what the real external IP is. Though the new cbox/dbox setup would simplify things....but the migration has stalled as I've been working on getting cacti moved from box...and it hasn't been going well. Lots of old templates and such don't work on the new, so I've been reworking what I feel I can't live without....
That includes the graphs of my DSL modem stats....
Anyways....when the Siemens 4100 started dropping the connection a lot (around the 3 year mark) and changing the filter didn't help, I had heard that these things wear out... So, I tracked down a new Siemens 4100 on eBay...and switched to that....and that got things working again.... Then a couple years ago, things go bad consistently....though I could see from my cacti graphs that SNR drops in the evening. Though I wasn't able to get local service to restore/fix things. I tried the AT&T forum on dslreports.com, and they changed me to Interleaved, which helped....
But, I had started shopping around for a new DSL modem.... somewhere in my journey's I acquired a Zoom ADSL X3 5760 Modem. But, since things were working...I put it aside as my spare for when things stop. Seems I've had it so long that its no longer available....got it July 9, 2012 according to Amazon.com
For a while now, it would drop the connection now and then during the week (between its weekly self-reboot)...at first I suspected the router, since its twin had gone away in much the same way several months earlier. Though the router do also have failsafe configured, so if it can't talk (ping) to box or the WAN gateway...it reboots. Though at some point AT&T made their gateways unpingable. So, it was pinging google.
But, on April 6 it got really bad....my IRC connection was resetting practically constantly. Though since I had swapped the router before, and swapped it again. Though maybe now I wonder if its watchdog was too aggressive. Things were usable, but the line drops would be annoying. Also the IP staying the same through drops didn't make me question the DSL modem.
But, then on April 13, things start getting really bad....and I was getting 50+ messages a day from ddclient that my IP changed. It seemed to stablize a bit on Monday....though it was still dropping regular enough that I switched to using Cox for my IRC screen session. Was going to defer to the weekend to make the swap.
Well, yesterday the weather was bad...lots of lightning, rain....and I first display I looked at when I got home said "NO INTERNET". Though it was probably a temporary outage, because it did appear to eventually come back while I was working on unboxing my 'new' DSL modem. And, try to figure out how to set it up without the Windows wizard it provides or the lack of documentation with it...there was a small CD, which didn't really provide much depth....but I found what IP it would be and that it has web interface....it also has a telnet interface and an FTP interface.
Anyways...it turned out to be pretty straight forward getting it working...the hard part was figuring out what the non-default options meant, and whether I would want them.... the main one I turned on was "fullcone NAT". And, I set my router in with a reserved IP and made it DMZ host, so I can keep all my forwards there...plus the Zoom is limited to 16, which isn't enough .... though this may change when I make use of its DMZ feature as well (doing reverse proxy on cbox/dbox to everywhere else on my home network...running firewall on these boxes already, to implement policy based routing.) And, enabling ICMP on the WAN interface (its also possible to enable http, ftp and telnet on the WAN interface as well.)
Getting it working in Cacti again, turned out to be much harder.
My old siemens_4100.pl script did a popen on wget with --bind-to-address as one of the args. This wouldn't work for the Zoom. It would just time out.
I took a look at the telnet interface, and found I might be able to get info that way... so looked to see if it was possible to do that from Perl.... NET::Telnet seemed like a possibility, but decided that it might not work too well opening Telnet connections, grabbing info, and closing it again every minute.
So, guess that means I need to do something a bit more on getting by web. I looked at LWP::Simple, but recalled that I couldn't get the bind to a local address to work. I did a search on the subject, and it suggested that something like this would work:
Hmmm, I tried it by hand on zen and it worked, so I changed LocalAddr to the corresponding one on my cacti server and committed it into svn/cfengine3.
Tried it by hand on the cacti server, it didn't work. Odd. Well, when I was on zen, I had run it as myself. On cacti server, I had run it as root. Wonder if its as silly as that. So, I tried using sudo to run it as cacti....that worked.
Ok, then....its off to work on setting up data input methods, data templates, graph templates, host template...and then creating the new host "AT&T DSL". But, I wasn't getting any updates.
I happened to be watching netstat....and noticed that it was using the default IP rather than the specified when it was being invoked by spine (running as cacti user.) Oh well, back to the drawing board.
Ended up going with LWP::UserAgent()
Here's the export of my host template and the ugly perl scraper (for the scripts directory.)
right-click and download
Pages: 1· 2
If this error persists, please report it to the administrator.
Enable debugging to get additional information about this error.How to enable debug mode?