mrtg.cfg:
WorkDir: /var/www/html/mrtg
Target[eth0]: system.sysORTable.sysOREntry.sysORDescr.3:public@10.10.10.10
MaxBytes[eth0]: 1250000
Title[eth0]: eth0 (eth0): eth0
Options[eth0]: growright
PageTop[eth0]: Ethernet
Target[swap]: `/etc/mrtg/swapd.sh`
Options[swap]: growright, absolute, gauge
MaxBytes[swap]: 256000
AbsMax[swap]: 256000
Title[swap]: Used swap
Unscaled[swap]: dwyn
YLegend[swap]: free space
ShortLegend[swap]:
Legend1[swap]:
Legend2[swap]: Swap
Legend3[swap]:
Legend4[swap]:
LegendI[swap]:
LegendO[swap]:
PageTop[swap]: Swap
Options[_]: bits,growright
Target[load]: public@10.10.10.10
Options[load]: nopercent,growright,gauge,noinfo
Title[load]: System Load (25=>100%)
PageTop[load]: <h1>System Load (25=>100%)</h1>
MaxBytes[load]: 10000
YLegend[load]: loadavg
ShortLegend[load]: loadavg
LegendI[load]: Load Average:
LegendO[load]:
Legend1[load]: Load average, multiplied by 100
Target[df]: `/etc/mrtg/mrtg.sh`
Options[df]: growright, absolute, gauge
MaxBytes[df]: 50000000000
AbsMax[df]: 50000000000
Title[df]: Used disk space
Unscaled[df]: dwyn
YLegend[df]: free space
ShortLegend[df]:
Legend1[df]:
Legend2[df]: /dev/hda
Legend3[df]:
Legend4[df]: /dev/hdb
LegendI[df]:
LegendO[df]: kbytes
PageTop[df]: Free size
Вот, что грит мртг:
[root@swapd mrtg]# mrtg /etc/mrtg/mrtg.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.3)
SNMPv1_Session (remote host: "10.10.10.10" [10.10.10.10].161)
community: "public"
request ID: 1185922470
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.3 ifOutOctets.3 sysUptime sysName on public@10.10.10.10
at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 1657914745
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on public@127.0.0.1:::::1
at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
ERROR: Target[eth0] eval warning: Bareword "sysORTable" not allowed while "strict subs" in use at (eval 6) line 1.
Bareword "sysOREntry" not allowed while "strict subs" in use at (eval 6) line 1.
Bareword "sysORDescr" not allowed while "strict subs" in use at (eval 6) line 1.
[root@swapd mrtg]#
Вот, что говорит snmp:
[root@swapd mrtg]# snmpwalk -c public 10.10.10.10
system.sysDescr.0 = Linux swapd.nkosino 2.4.9-13 #1 Sun Nov 11 16:06:33 MSK 2001 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (217602) 0:36:16.02
system.sysContact.0 = Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = swapd.nkosino
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks: (1) 0:00:00.01
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORID.10 = OID: transmission.tunnelMIB
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORDescr.10 = RFC 2667 TUNNEL-MIB implementation for Linux 2.2.x kernels.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (1) 0:00:00.01
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (1) 0:00:00.01
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (1) 0:00:00.01
system.sysORTable.sysOREntry.sysORUpTime.10 = Timeticks: (1) 0:00:00.01
End of MIB
[root@swapd mrtg]#
Ну каккие мысли есть? У меня уже никаких...