Hello, In this tutorial <http://felixtriller.de/2006/12/14/mrtg-unter-debian/> I have at times drawn einfahc me something on the server and processed. Now my config looks like this:
*# Created by > # /usr/bin/cfgmaker public@localhost > > > ### 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: ks383295.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]> <[email protected]> > # Location: Sitting on the Dock of the Bay > ###################################################################### > > > ### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '94.23.251.20' | Eth: > 'e0:69:95:d7:9b:1f' ### > > Target[localhost_eth0]: \eth0:public@localhost: > 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.23.251.20 -- ks383295.kimsufi.com</H1> > # <TABLE> > # <TR><TD>System:</TD> <TD>ksxxxxxx.kimsufi.com in LAN</TD></TR> > # <TR><TD>Maintainer:</TD> <TD>flix <flix@leela></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.23.251.20 (ks383295.kimsufi.com > )</TD></TR> > # </TABLE> > > > ### End of ks383295.kimsufi.com > > ### CPU Load > LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt > Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:[email protected]+ > ssCpuRawSystem.0&ssCpuRawSystem.0:[email protected]+ > ssCpuRawNice.0&ssCpuRawNice.0:[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:public@localhost > 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:public@localhost > 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:public@localhost > 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* But unfortunately that does not, because it only displays statistics and get 4 every 5 minutes, a cron-error. Here's the log: 2011-12-17 22:25:01: WARNING: Could not match host:'public@localhost:' > ref:'Descr' > key:'eth0' > Unknown SNMP var ssCpuRawUser.0 > at /usr/bin/mrtg line 2251 > Unknown SNMP var ssCpuRawUser.0 > at /usr/bin/mrtg line 2251 > 2011-12-17 22:25:01: WARNING: Expected a number but got '1:45:43' > 2011-12-17 22:25: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-17 22:25:01: WARNING: Expected a number but got '1:45:43' > 2011-12-17 22:25: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-17 22:25:01: WARNING: Expected a number but got '1:45:43' > 2011-12-17 22:25: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: 759502945 > 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 public@localhost::::::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-17 22:25:01: WARNING: Expected a number but got '1:45:43' > 2011-12-17 22:25: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-17 22:25:01: WARNING: Expected a number but got '1:45:43' > 2011-12-17 22:25: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-17 22:25:01: WARNING: Running 'mrtg-sensors it87-isa-0290 temp3 > it87-isa-0290 temp2': No such file or directory > 2011-12-17 22:25: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-17 22:25: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-17 22:25: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-17 22:25:01: WARNING: Running 'mrtg-sensors it87-isa-0290 fan1': > No such > file or directory > 2011-12-17 22:25: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-17 22:25:01: WARNING: Problem with External get 'mrtg-sensors > it87-isa-0290 > fan1': > Expected a Number for 'in' but nothing' > > 2011-12-17 22:25:01: WARNING: Problem with External get 'mrtg-sensors > it87-isa-0290 > fan1': > Expected a Number for 'out' but nothing' > > Can't exec "/etc/mrtg/connectionuptime.sh": No such file or directory at > /usr/bin/mrtg line 2079. > 2011-12-17 22:25:01: WARNING: Running '/etc/mrtg/connectionuptime.sh': No > such file > or directory > 2011-12-17 22:25:01: WARNING: Could not get any data from external command > '/etc/mrtg/connectionuptime.sh' > Maybe the external command did not even start. (No such file or directory) > > 2011-12-17 22:25:01: WARNING: Problem with External get > '/etc/mrtg/connectionuptime.sh': > Expected a Number for 'in' but nothing' > > 2011-12-17 22:25:01: WARNING: Problem with External get > '/etc/mrtg/connectionuptime.sh': > Expected a Number for 'out' but nothing' > > 2011-12-17 22:25:10: ERROR: Target[localhost_eth0][_IN_] ' > $target->[0]{$mode} ' did > not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost_eth0][_OUT_] ' > $target->[0]{$mode} ' > did not eval into defined data > 2011-12-17 22:25: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-17 22:25: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-17 22:25:10: ERROR: Target[localhost.mem][_IN_] ' > $target->[4]{$mode} ' did > not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.mem][_OUT_] ' > $target->[4]{$mode} ' did > not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.dfpercent][_IN_] ' > $target->[5]{$mode} > ' did not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.dfpercent][_OUT_] ' > $target->[5]{$mode} > ' did not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.swap][_IN_] ' > $target->[6]{$mode} ' did > not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.swap][_OUT_] ' > $target->[6]{$mode} ' > did not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.temp][_IN_] ' > $target->[9]{$mode} ' did > not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.temp][_OUT_] ' > $target->[9]{$mode} ' > did not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.fan][_IN_] ' > $target->[10]{$mode} ' did > not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.fan][_OUT_] ' > $target->[10]{$mode} ' > did not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.conuptime][_IN_] ' > $target->[12]{$mode} > ' did not eval into defined data > 2011-12-17 22:25:10: ERROR: Target[localhost.conuptime][_OUT_] ' > $target->[12]{$mode} ' did not eval into defined data How do I get to go now? greeting eplay-tv
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
