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