Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Toby on March 05, 2002, 08:07:02 AM
-
Following the MRTG howto I run into the following problem
create-mrtg does not seem to work. I have changed the community name and it is still a problem. I tried ./create-mrtg 2033161 203.31.6.1 and get the following output
./create-mrtg: the: command not found
will: No such file or directory
./create-mrtg: The: command not found
Script started, file is is
-
If you created/edited the file on a Winderz box, are you absolutely certain
you have all of the CR/LF issues sorted out in the config --- no
non-printing character garbaggio left in there? I pasted the text for that
script directly into a vi file in an active Putty session, and I had no
problems with it.
-
I don't believe that I should have any problems in that regard as I pasted from the webpage straight into pico running through putty.
BTW I tried running the lines in the script manually and they all worked until the one that creates the index file.
-
Have you tried just typing the command in from scratch, or are you pasting them into putty as copied from the How-to page? It really looks like there are non-printing characters screwing the pooch here...those stray "the" and "The" errors are the type you usually see when lines are terminating incorrectly.
Just for giggles, can you try renaming the create-mrtg to create-mrtg1, then running:
tr -d '\r' < create-mrtg1 > create-mrtg
chmod 755 create-mrtg
./create-mrtg
I'm not sure pico strips everything pasted in, but my experience with vi has always worked.
Also, is the device you are trying to monitor already known to be responding to snmp requests? If so, is the community name already set to 'public' or is it something else? What is the device? If you are trying to monitor another Linux box, is the snmpd.conf on that system correctly constructed?
Sorry if these questions seem too basic --- it's hard to tell exactly where you are in experience. I wouldn't be surprised if you have more than me :)
Good luck,
Dan
-
Doh! The forum stripped out my code, interpreting it as html
the command I tried to post is:
tr -d '\r' (less-than sign) create-mrtg1 (greater-than sign) create-mrtg
-
must've been the crtl-lf characters as worked with creating a text file in notepad making a smb connection and transferring to sme box.
I changed the community name to banksia as per the router's running-config
I presume that the SNMP is working fine as our ISP uses it to generate MRTG reports.
The problem now is that the graphs show no info and I get an e-mail sent to root@mydomain with the following
Subject: Cron /etc/mrtg/all-ip
Contents of E-mail:
Rateup WARNING: /usr/bin/rateup Can't remove 203.31.6.1_1.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 203.31.6.1_2.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 203.31.6.1_3.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 203.31.6.1_4.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 203.31.6.1_6.old updating log file
Rateup WARNING: /usr/bin/rateup Can't remove 203.31.6.1_8.old updating log file
-
graphing fine now....only problem I have is that I am not sure how to read the information on the daily graph. The others are fine but the labels on the daily are confusing me does the time go from right to left not left to right
-
It starts at the left, and moves right. Your best bet is to distract yourself for a couple of hours while it builds up some data --- otherwise it's like watching grass grow... ;)
Dan