Probleme mit MRTG

Diskutiere Probleme mit MRTG im Linux Forum im Bereich Weitere Betriebssysteme; Hallo, in diesem Tutorial habe ich einfahc mal bei mir auf den Server gezogen und etwas bearbeitet. Nun sieht meine Config so aus: Aber leider...
C

computerexperte06

Threadstarter
Dabei seit
29.01.2007
Beiträge
318
Alter
31
Ort
Lüneburg
Hallo,

in diesem Tutorial habe ich einfahc mal bei mir auf den Server gezogen und etwas bearbeitet. Nun sieht meine Config so aus:

# Created by
# /usr/bin/cfgmaker [email protected]


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# for Debian
WorkDir: /var/www/virtual/eplay-tv.de/status/htdocs

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System: ksxxxxxx.kimsufi.com
# Description: Linux ksxxxxxx.kimsufi.com 2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC 2011 x86_64
# Contact: Me <[email protected]>
# Location: Sitting on the Dock of the Bay
######################################################################


### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '94.xx.xxx.20' | Eth: 'e0:69:95:d7:9b:1f' ###

Target[localhost_eth0]: \eth0:p[email protected]:
SetEnv[localhost_eth0]: MRTG_INT_IP="94.xx.xxx.20" MRTG_INT_DESCR="eth0"
MaxBytes[localhost_eth0]: 12500000
Title[localhost_eth0]: 94.xx.xxx.20 -- ksxxxxxx.kimsufi.com
Options[localhost_eth0]: growright,nopercent,nobanner,noinfo
PageTop[localhost_eth0]: <H1>94.xx.xxx.20 -- ks383295.kimsufi.com</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>ksxxxxxx.kimsufi.com in LAN</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>flix <[email protected]></TD></TR>
# <TR><TD>Description:</TD><TD>eth0 </TD></TR>
# <TR><TD>ifType:</TD> <TD>ethernet</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>100.0 Mbits/s</TD></TR>
# <TR><TD>Ip:</TD> <TD>94.xx.xxx.20 (ksxxxxxx.kimsufi.com)</TD></TR>
# </TABLE>


### End of ksxxxxxx.kimsufi.com

### CPU Load
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:p[email protected]+ ssCpuRawSystem.0&ssCpuRawSystem.0:p[email protected]+ ssCpuRawNice.0&ssCpuRawNice.0:p[email protected]
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: CPU Load
PageTop[localhost.cpu]: <H1>Active CPU Load %</H1>
Unscaled[localhost.cpu]: ymwd
ShortLegend[localhost.cpu]: %
YLegend[localhost.cpu]: CPU Utilization
Legend1[localhost.cpu]: Active CPU in % (Load)
Legend2[localhost.cpu]:
Legend3[localhost.cpu]:
Legend4[localhost.cpu]:
LegendI[localhost.cpu]: Active
LegendO[localhost.cpu]:
Options[localhost.cpu]: growright,nopercent,nobanner

### Memory Free
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Target[localhost.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:p[email protected]
PageTop[localhost.mem]: <H1>Free Memory</H1>
Options[localhost.mem]: nopercent,growright,gauge,noinfo,nobanner
Title[localhost.mem]: Free Memory
MaxBytes[localhost.mem]: 1000000
kMG[localhost.mem]: k,M,G,T,P,X
YLegend[localhost.mem]: bytes
ShortLegend[localhost.mem]: bytes
LegendI[localhost.mem]: Free Memory:
LegendO[localhost.mem]:
Legend1[localhost.mem]: Free memory, not including swap, in bytes


### Disk Free in Percent
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[localhost.dfpercent]: dskPercent.3&dskPercent.1:p[email protected]
MaxBytes[localhost.dfpercent]: 100
Title[localhost.dfpercent]: DISK USAGE
PageTop[localhost.dfpercent]: <H1>Disk root and home Usage %</H1>
Unscaled[localhost.dfpercent]: ymwd
ShortLegend[localhost.dfpercent]: %
YLegend[localhost.dfpercent]: Disk Utilization
Legend1[localhost.dfpercent]: home disk
Legend2[localhost.dfpercent]: root disk
Legend3[localhost.dfpercent]:
Legend4[localhost.dfpercent]:
LegendI[localhost.dfpercent]: home disk
LegendO[localhost.dfpercent]: root disk
Options[localhost.dfpercent]: growright,gauge,nopercent,noinfo,nobanner


### Swap Free
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[localhost.swap]: memAvailSwap.0&memAvailSwap.0:p[email protected]
PageTop[localhost.swap]: <H1>Swap Memory Free</H1>
Options[localhost.swap]: nopercent,growright,gauge,noinfo,nobanner
Title[localhost.swap]: Free Memory
MaxBytes[localhost.swap]: 1000000
kMG[localhost.swap]: k,M,G,T,P,X
YLegend[localhost.swap]: bytes
ShortLegend[localhost.swap]: bytes
LegendI[localhost.swap]: Free Memory:
LegendO[localhost.swap]:
Legend1[localhost.swap]: Swap memory avail, in bytes


### Processes Running
Target[localhost.procs]: `/etc/mrtg/stat.pl procs root`
Options[localhost.procs]: nopercent,growright,gauge,nobanner,integer,noinfo
Title[localhost.procs]: Process
PageTop[localhost.procs]: <h1>Processes</h1>
MaxBytes[localhost.procs]: 5000000
YLegend[localhost.procs]: Processes
ShortLegend[localhost.procs]: procs
LegendI[localhost.procs]: Processes:
LegendO[localhost.procs]:
Legend1[localhost.procs]: Running Processes


### Logged-in Users
Target[localhost.users]: `/etc/mrtg/stat.pl users root`
Options[localhost.users]: nopercent,growright,gauge,integer,nobanner,noinfo
Title[localhost.users]: Logged-in users
PageTop[localhost.users]: <h1>Logged-in users</h1>
MaxBytes[localhost.users]: 60000
YLegend[localhost.users]: users
ShortLegend[localhost.users]: users
LegendI[localhost.users]: Users:
LegendO[localhost.users]:
Legend1[localhost.users]: Logged-in users


### Temperature
Title[localhost.temp]: Temperature on box
PageTop[localhost.temp]: <H1>Temperature</H1>
Target[localhost.temp]: `mrtg-sensors it87-isa-0290 temp3 it87-isa-0290 temp2`
Options[localhost.temp]: noinfo,gauge,growright,integer,nopercent,nobanner
Unscaled[localhost.temp]:dwmy
MaxBytes[localhost.temp]: 100
YLegend[localhost.temp]: °C
ShortLegend[localhost.temp]: °C
Legend1[localhost.temp]: CPU Temperature
Legend2[localhost.temp]: System Temperature
LegendI[localhost.temp]: CPU:
LegendO[localhost.temp]: System:


### Fan
Target[localhost.fan]: `mrtg-sensors it87-isa-0290 fan1`
MaxBytes[localhost.fan]: 4000
Options[localhost.fan]: noinfo,gauge,growright,integer,nopercent,nobanner
Title[localhost.fan]: System Fan Speed
PageTop[localhost.fan]: <H1>System Fan Speed (fan1)</H1>
YLegend[localhost.fan]: Rounds Per Minute
ShortLegend[localhost.fan]: RPM
LegendI[localhost.fan]: Speed:
LegendO[localhost.fan]:
Legend1[localhost.fan]: System Fan Speed


### Ping
Title[localhost.ping]: Ping Time
PageTop[localhost.ping]: <H1>Ping Time</H1>
Target[localhost.ping]: `/etc/mrtg/ping.sh`
MaxBytes[localhost.ping]: 2000
Options[localhost.ping]: growright,unknaszero,nopercent,gauge,nobanner,noinfo
LegendI[localhost.ping]: Pkt loss %
LegendO[localhost.ping]: Avg RTT
Legend1[localhost.ping]: Pkt loss %
Legend2[localhost.ping]: Avg RTT
YLegend[localhost.ping]: RTT (ms)


### Connectionuptime
Target[localhost.conuptime]: `/etc/mrtg/connectionuptime.sh`
Options[localhost.conuptime]: nopercent,growright,gauge,nobanner,integer,noinfo
Title[localhost.conuptime]: Connectionuptime
PageTop[localhost.conuptime]: <h1>Connectionuptime</h1>
MaxBytes[localhost.conuptime]: 780
YLegend[localhost.conuptime]: Minutes
ShortLegend[localhost.conuptime]: min
LegendI[localhost.conuptime]: Minutes:
LegendO[localhost.conuptime]:
Legend1[localhost.conuptime]: Connection uptime of ppp0 in minutes (720 mins are 12 hours)


### Uptime
Target[localhost.uptime]: `/etc/mrtg/uptime.sh`
Options[localhost.uptime]: nopercent,growright,gauge,nobanner,integer,noinfo
#Suppress[localhost.uptime]: d
Title[localhost.uptime]: Uptime
PageTop[localhost.uptime]: <h1>Uptime</h1>
MaxBytes[localhost.uptime]: 1000000
YLegend[localhost.uptime]: Days
ShortLegend[localhost.uptime]: days
LegendI[localhost.uptime]: Days:
LegendO[localhost.uptime]:
Legend1[localhost.uptime]: Uptime of Server in days


Aber leider funktioniert das nicht, denn es werden nur 4 Statistiken angezeigt und bekomme alle 5 Minuten eine Cron-Error. Hier der Log:

SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.2.1.2.2.1.16.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 966596246
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 492
SNMPGET Problem for ifInOctets.0 ifOutOctets.0 sysUptime sysName on
[email protected]::::::v4only
at /usr/bin/mrtg line 2251
Unknown SNMP var ssCpuRawUser.0
at /usr/bin/mrtg line 2251
Unknown SNMP var ssCpuRawUser.0
at /usr/bin/mrtg line 2251
2011-12-26 17:10:01: WARNING: Expected a number but got '0:09:27'
2011-12-26 17:10:01: WARNING: Expected a number but got 'ks383295.kimsufi.com'
Unknown SNMP var ssCpuRawSystem.0
at /usr/bin/mrtg line 2251
Unknown SNMP var ssCpuRawSystem.0
at /usr/bin/mrtg line 2251
2011-12-26 17:10:01: WARNING: Expected a number but got '0:09:27'
2011-12-26 17:10:01: WARNING: Expected a number but got 'ks383295.kimsufi.com'
Unknown SNMP var ssCpuRawNice.0
at /usr/bin/mrtg line 2251
Unknown SNMP var ssCpuRawNice.0
at /usr/bin/mrtg line 2251
2011-12-26 17:10:01: WARNING: Expected a number but got '0:09:27'
2011-12-26 17:10:01: WARNING: Expected a number but got 'ks383295.kimsufi.com'
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.4.1.2021.4.6.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 1809430528
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 492
SNMPGET Problem for .1.3.6.1.4.1.2021.4.6.0 .1.3.6.1.4.1.2021.4.6.0 sysUptime
sysName on [email protected]::::::v4only
at /usr/bin/mrtg line 2251
Unknown SNMP var dskPercent.3
at /usr/bin/mrtg line 2251
Unknown SNMP var dskPercent.1
at /usr/bin/mrtg line 2251
2011-12-26 17:10:01: WARNING: Expected a number but got '0:09:27'
2011-12-26 17:10:01: WARNING: Expected a number but got 'ks383295.kimsufi.com'
Unknown SNMP var memAvailSwap.0
at /usr/bin/mrtg line 2251
Unknown SNMP var memAvailSwap.0
at /usr/bin/mrtg line 2251
2011-12-26 17:10:01: WARNING: Expected a number but got '0:09:27'
2011-12-26 17:10:01: WARNING: Expected a number but got 'ks383295.kimsufi.com'
Can't exec "mrtg-sensors": No such file or directory at /usr/bin/mrtg line 2079.
2011-12-26 17:10:01: WARNING: Running 'mrtg-sensors it87-isa-0290 temp3
it87-isa-0290 temp2': No such file or directory
2011-12-26 17:10:01: WARNING: Could not get any data from external command
'mrtg-sensors it87-isa-0290 temp3 it87-isa-0290 temp2'
Maybe the external command did not even start. (No such file or directory)

2011-12-26 17:10:01: WARNING: Problem with External get 'mrtg-sensors it87-isa-0290
temp3 it87-isa-0290 temp2':
Expected a Number for 'in' but nothing'

2011-12-26 17:10:01: WARNING: Problem with External get 'mrtg-sensors it87-isa-0290
temp3 it87-isa-0290 temp2':
Expected a Number for 'out' but nothing'

Can't exec "mrtg-sensors": No such file or directory at /usr/bin/mrtg line 2079.
2011-12-26 17:10:01: WARNING: Running 'mrtg-sensors it87-isa-0290 fan1': No such
file or directory
2011-12-26 17:10:01: WARNING: Could not get any data from external command
'mrtg-sensors it87-isa-0290 fan1'
Maybe the external command did not even start. (No such file or directory)

2011-12-26 17:10:01: WARNING: Problem with External get 'mrtg-sensors it87-isa-0290
fan1':
Expected a Number for 'in' but nothing'

2011-12-26 17:10:01: WARNING: Problem with External get 'mrtg-sensors it87-isa-0290
fan1':
Expected a Number for 'out' but nothing'

2011-12-26 17:10:10: ERROR: Target[localhost_eth0][_IN_] 'eth $target->[0]{$mode} '
(kill): Can't call method "eth" on unblessed reference at (eval 19) line 1.
2011-12-26 17:10:10: ERROR: Target[localhost_eth0][_OUT_] 'eth $target->[0]{$mode} '
(kill): Can't call method "eth" on unblessed reference at (eval 20) line 1.
2011-12-26 17:10:10: ERROR: Target[localhost.cpu][_IN_] ' $target->[1]{$mode} +
$target->[2]{$mode} + $target->[3]{$mode} ' (warn): Use of uninitialized value in
addition (+) at (eval 22) line 1.
2011-12-26 17:10:10: ERROR: Target[localhost.cpu][_OUT_] ' $target->[1]{$mode} +
$target->[2]{$mode} + $target->[3]{$mode} ' (warn): Use of uninitialized value in
addition (+) at (eval 23) line 1.
2011-12-26 17:10:10: ERROR: Target[localhost.mem][_IN_] ' $target->[4]{$mode} ' did
not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.mem][_OUT_] ' $target->[4]{$mode} ' did
not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.dfpercent][_IN_] ' $target->[5]{$mode}
' did not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.dfpercent][_OUT_] ' $target->[5]{$mode}
' did not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.swap][_IN_] ' $target->[6]{$mode} ' did
not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.swap][_OUT_] ' $target->[6]{$mode} '
did not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.temp][_IN_] ' $target->[9]{$mode} ' did
not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.temp][_OUT_] ' $target->[9]{$mode} '
did not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.fan][_IN_] ' $target->[10]{$mode} ' did
not eval into defined data
2011-12-26 17:10:10: ERROR: Target[localhost.fan][_OUT_] ' $target->[10]{$mode} '
did not eval into defined data

Wie kann ich das beheben?

Gruß
Benny

PS:
Nutze Debian 6
So sieht es aktuell aus http://status.eplay-tv.de/
 
Thema:

Probleme mit MRTG

Probleme mit MRTG - Ähnliche Themen

Dpc_ Watchdog Violation: Guten Tag Ich habe einen neuen Computer gekauft und erhalte seit Anfang immer mal wieder einen Bluescreen mit folgender Fehlermeldung Dpc...
WLAN Report: wo liegt das Problem?: Hallo, nach 3 Monate problemlosen Betriebs erhalte ich (nur) über mein HP-Notebook (über Router und Handy-HotSpot) den WLAN-Fehler: Disconnect...
Batterie wird nicht mehr erkannt: Hi! Vorgestern ist mir aufgefallen dass mein Surface Pro / WIndows 10 keine Akkulaufzeit mehr anzeigt in der Taskleiste. Habe dann alles...
BoD (DPC_WATCHDOG_VIOLATION / VIDEO_TDR_FAILURE) due to graphics driver or faulty hardware?: Since quite some time I regularly get BoDs with a DPC_WATCHDOG_VIOLATION (133) and after some driver changes VIDEO_TDR_FAILURE (116)...
WLAN Verbindung wird ständig neu aufgebaut: Hallo, ich habe einen relativen neuen PC mit einem Asus Mainboard, Modell ROG STRIX Z370-I GAMING. Dieser beinhaltet einen Realtek 8822BE...
Oben