Koozali.org: home of the SME Server

MRTG install problems

Toby

MRTG install problems
« 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

Dan G.

Re: MRTG install problems
« Reply #1 on: March 05, 2002, 09:42:26 AM »
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.

Toby

Re: MRTG install problems
« Reply #2 on: March 05, 2002, 10:30:28 AM »
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.

Dan G.

Re: MRTG install problems
« Reply #3 on: March 05, 2002, 05:59:43 PM »
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

Dan G.

Re: MRTG install problems
« Reply #4 on: March 05, 2002, 06:06:52 PM »
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

Toby

Re: MRTG install problems
« Reply #5 on: March 14, 2002, 07:29:12 AM »
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

toby

Re: MRTG install problems
« Reply #6 on: March 15, 2002, 01:13:47 AM »
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

Dan G.

Re: MRTG install problems
« Reply #7 on: March 15, 2002, 02:14:21 AM »
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