mrtg-2.9.27 on FreeBSD-4.6.2 generating faulty log data

mrtg-2.9.27 on FreeBSD-4.6.2 generating faulty log data

Post by Ji » Sun, 16 Mar 2003 17:03:21



Hey all,

I've having a problem with the data mrtg is putting into its log.

Here's the mrtg.cfg I'm using:

WorkDir: /home/virtual/mrtg
Target[r1]: `printf "5\n10\n"`
MaxBytes[r1]: 1250000
Title[r1]: Test
PageTop[r1]: <H1>Test Page<H1>
Options[r1]: growright, gauge

Note that all the "Target" line gets for data is the following:

5
10

I am starting off with this to make sure the graphing, etc. works as I
expect.  I used that config on my RH Linux box with no issues, it wrote
the correct data into the log file, the graphs came out fine, etc..

However, on the FreeBSD box, my first two lines of data look like this
after the first time I run mrtg:

1047715002 5 10
1047715002 0 0 0 0

which I think is normal.

After the second time I run it, however, this happens:

1047715002 5 10
1047715002 5 10 5 10
1047714999 4294967296 -4629709230209761280 2885556898596126720 0
1047714900 4294967296 -4629709230209761280 2885556898596126720 0
1047714600 4294967296 -4629709230209761280 2885556898596126720 0

and that last line just continues all thru the rest of the file, over and
over (with the correct leading timestamps of course).

Naturally, the graphs come out all messed up too.

Any ideas on what the heck is going on with that?  Anyone else seen this?
I searched the ML archives as well as this group and didn't see anybody
else reporting this issue.

Thanks.

--
Random fortune:
To keep your friends treat them kindly; to kill them, treat them often.

 
 
 

mrtg-2.9.27 on FreeBSD-4.6.2 generating faulty log data

Post by Bjorn Djupvi » Sun, 16 Mar 2003 20:25:07



> Target[r1]: `printf "5\n10\n"`

MRTG needs 4 lines of input for each cycle, you only have two. The third
line is supposed to be the uptime, and the fourth name is supposed to be the
hostname. You can just put 0 there if you want. Try something like :

Quote:> Target[r1]: `printf "5\n10\n0\n0\n"`

Should work better....

 
 
 

mrtg-2.9.27 on FreeBSD-4.6.2 generating faulty log data

Post by Ji » Mon, 17 Mar 2003 02:48:39



Quote:> MRTG needs 4 lines of input for each cycle, you only have two. The third
> line is supposed to be the uptime, and the fourth name is supposed to be the
> hostname. You can just put 0 there if you want. Try something like :

Hi Bjorn, thanks for the follow-up,

actually I have tested it with the 4 lines and got the same result.  Fwiw
though, even though the docs say it requires 4 lines, it does work OK with
only 2, it just marks the last 2 as "unknown."

(I intend to fill those in when I set it up for real, I was just being
lazy while testing.)

 
 
 

1. mrtg and redhat linux 6.2

hi
I can't seem to get mrtg to work under 6.2 - fine under 6.1 and below.
The config looks like this -
# First, map the community name "public" into a "security name"

#       sec.name  source          community
com2sec  yellow myip/32      public

# Second, map the security name into a group name:

#       groupName      securityModel securityName
group   com              v1             yellow
group   com              v2c            yellow

####
# Third, create a view for us to let the group have rights to:

#       name           incl/excl     subtree         mask(optional)
view    systemview     included      system

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write
notif
access  com      ""      any       noauth    exact  systemview none none

(names changed to protect the innocent :))
The error when run on myip - which is a redhat linux 5.2 server with
mrtg 2.8.9.
SNMP Error:
no response received

Any help or example config that works much appreciated. :)
Elaine

Sent via Deja.com http://www.deja.com/
Before you buy.

2. WS-X5012 problem

3. Problems with MRTG 2.8.12 on Redhat Linux 6.2

4. .Zap Files have me Zapped !

5. Netware & DOS 6.2 DoubleSpace - problems logging in??

6. IGN is not a good biased judge on games or consoles!

7. syslogd (FreeBSD) not logging routing data

8. First Mailbox appears twice under Eudora 5.1b12, Mac OS X

9. Can faulty card generate excessive collisions?

10. MRTG log stores different data

11. links on web pages generated with mrtg

12. How to generate flat file using MRTG ?

13. MRTG and generated HTML pages