[mrtg] working yes or no ?, log files say 0 0 0 0

Ton Muller spatieman at online.nl
Tue Sep 6 20:25:34 CEST 2011


system: openBSD 4.9
correctly installed RRDtool. , mrtg.
after fighting with the cfg file i manage to make it work.
cron does every 5 minutes a mrtg /etc/mrtg.cfg with log dump in /var/log

indexmaker makes nice the index.html
got 3 entry's ,but.
all the log files are not updating as it should be.
only the html files generated for fresh html are updated.

this is what the logs says.
1315333353 -1 -1
1315333353 0 0 0 0
1315333233 0 0 0 0
1315333200 0 0 0 0
1315332900 0 0 0 0
1315332600 0 0 0 0
1315332300 0 0 0 0
1315332000 0 0 0 0
1315331700 0 0 0 0
1315331400 0 0 0 0
1315331100 0 0 0 0
1315330800 0 0 0 0
1315330500 0 0 0 0
1315330200 0 0 0 0
1315329900 0 0 0 0
1315329600 0 0 0 0
1315329300 0 0 0 0
1315329000 0 0 0 0
1315328700 0 0 0 0
1315328400 0 0 0 0
1315328100 0 0 0 0
etc
etc

THIS.
is what /var/log/mrtg.log says.

SNMPv1_Session (remote host: "www.google.nl" [74.125.79.147].161)
                  community: "public"
                 request ID: 1952157804
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/libdata/perl5/site_perl/SNMP_util.pm line 492
2011-09-06 20:22:13 -- SNMPGET Problem for ifInOctets.1 ifOutOctets.1
sysUptime sysName on public at www.google.nl::::::v4only
 at /usr/local/bin/mrtg line 2343
2011-09-06 20:22:13 -- 2011-09-06 20:22:02: WARNING: skipping because at
least the query for ifInOctets.1 on  www.google.nl did not succeed
2011-09-06 20:22:13 -- 2011-09-06 20:22:02: WARNING: no data for
ifInOctets&ifOutOctets:public at www.google.nl. Skipping further queries
for Host www.google.nl in this round.
2011-09-06 20:22:23 -- SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.1.1" [192.168.1.1].161)
                  community: "public"
                 request ID: 1617821181
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/libdata/perl5/site_perl/SNMP_util.pm line 492
2011-09-06 20:22:23 -- SNMPGET Problem for ifInOctets.1 ifOutOctets.1
sysUptime sysName on public at 192.168.1.1::::::v4only
 at /usr/local/bin/mrtg line 2343
2011-09-06 20:22:23 -- 2011-09-06 20:22:02: WARNING: skipping because at
least the query for ifInOctets.1 on  192.168.1.1 did not succeed
2011-09-06 20:22:23 -- 2011-09-06 20:22:02: WARNING: no data for
ifInOctets&ifOutOctets:public at 192.168.1.1. Skipping further queries for
Host 192.168.1.1 in this round.
2011-09-06 20:22:33 -- SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.0.228" [192.168.0.228].161)
                  community: "public"
                 request ID: 1302499081
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/libdata/perl5/site_perl/SNMP_util.pm line 492
2011-09-06 20:22:33 -- SNMPGET Problem for ifInOctets.1 ifOutOctets.1
sysUptime sysName on public at 192.168.0.228::::::v4only
 at /usr/local/bin/mrtg line 2343
2011-09-06 20:22:33 -- 2011-09-06 20:22:02: WARNING: skipping because at
least the query for ifInOctets.1 on  192.168.0.228 did not succeed
2011-09-06 20:22:33 -- 2011-09-06 20:22:02: WARNING: no data for
ifInOctets&ifOutOctets:public at 192.168.0.228. Skipping further queries
for Host 192.168.0.228 in this round.
2011-09-06 20:22:33 -- 2011-09-06 20:22:33: ERROR: Target[backb][_IN_] '
$target->[0]{$mode} ' did not eval into defined data
2011-09-06 20:22:33 -- 2011-09-06 20:22:33: ERROR: Target[backb][_OUT_]
' $target->[0]{$mode} ' did not eval into defined data
2011-09-06 20:22:33 -- Use of uninitialized value $inlast in pattern
match (m//) at /usr/local/bin/mrtg line 1044.
2011-09-06 20:22:33 -- Use of uninitialized value $outlast in pattern
match (m//) at /usr/local/bin/mrtg line 1047.
2011-09-06 20:22:33 -- 2011-09-06 20:22:33: ERROR: Target[router][_IN_]
' $target->[1]{$mode} ' did not eval into defined data
2011-09-06 20:22:33 -- 2011-09-06 20:22:33: ERROR: Target[router][_OUT_]
' $target->[1]{$mode} ' did not eval into defined data
2011-09-06 20:22:33 -- Use of uninitialized value $inlast in pattern
match (m//) at /usr/local/bin/mrtg line 1044.
2011-09-06 20:22:33 -- Use of uninitialized value $outlast in pattern
match (m//) at /usr/local/bin/mrtg line 1047.
2011-09-06 20:22:33 -- 2011-09-06 20:22:33: ERROR: Target[core][_IN_] '
$target->[2]{$mode} ' did not eval into defined data
2011-09-06 20:22:33 -- 2011-09-06 20:22:33: ERROR: Target[core][_OUT_] '
$target->[2]{$mode} ' did not eval into defined data
2011-09-06 20:22:33 -- Use of uninitialized value $inlast in pattern
match (m//) at /usr/local/bin/mrtg line 1044.
2011-09-06 20:22:33 -- Use of uninitialized value $outlast in pattern
match (m//) at /usr/local/bin/mrtg line 1047.
2011-09-06 20:24:02 -- Started mrtg with config '/etc/mrtg.cfg'

i am not a export, but my feeling says, not good......

any advice?

Tony.



More information about the mrtg mailing list