Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: trenskow on August 24, 2004, 09:47:29 PM
-
Hi there all
I have installed the MRTG from http://sme-swerts.knudsen.dk and is having a problem with my 2. harddisk.
I have the harddisk installed on /dev/hdb, and uses it as backup. Now, my problem is, that i get this error from Cron Daemon.
"SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.2021.9.1.9.2) SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 1284211493
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450 SNMPGET Problem for dskPercent.2 dskPercent.2 sysUptime sysName on public@localhost at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got '' "
i have written this in the /etc/mrtg/mrtg.cfg
Target[disk2]:dskPercent.2&dskPercent.2:public@localhost
RouterUptime[disk2]: public@localhost
MaxBytes[disk2]: 100
Title[disk2]: Backup Disk Usage on Server
PageTop[disk2]: <H1>Backup Disk Usage</H1>
Unscaled[disk2]: ymwd
ShortLegend[disk2]: %
YLegend[disk2]: Disk Utilization
Legend1[disk2]: Backup disk
Legend2[disk2]:
Legend3[disk2]:
Legend4[disk2]:
LegendI[disk2]: Used:
and in /etc/snmp/snmp.conf
###############################################################################
# disk checks
#
# The agent can check the amount of available disk space, and make
# sure it is above a set limit.
# disk PATH [MIN=DEFDISKMINIMUMSPACE]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the Mib's errorFlag set.
# Default value = DEFDISKMINIMUMSPACE.
# Check the / partition and make sure it contains at least 10 megs.
disk / 10000
disk /boot 10000
disk /dev/hdb1 10000
#disk /home/backup 10000
###############################################################################
What am i doing wrong here, and can i use disk /dev/hdb1 instead of disk /home/backup
-
i tried updating the mrtg, and now the error is slightly different
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.2021.9.1.9.2) SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 1246227707
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 486 SNMPGET Problem for dskPercent.2 dskPercent.2 sysUptime sysName on public@localhost::::::v4only at /usr/bin/mrtg line 1798
ERROR: Target[disk2][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
ERROR: Target[disk2][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data
WARNING: Skipping Update of disk2, inlast is not defined
WARNING: Skipping Update of disk2, outlast is not defined
and now there is a second error
ERROR: It looks as if you are running two copies of mrtg in parallel on
the same config file. There is a lockfile (/etc/mrtg/mrtg.cfg_l) and it is
is only 0 seconds old ... Check your crontab.
(/etc/crontab and /var/spool/cron/root)
i have an idea what is wrong, but i dont know how to fix it.