Hello,<br><br><div>In <a href="http://felixtriller.de/2006/12/14/mrtg-unter-debian/" target="_blank">this tutorial</a> I have at times drawn einfahc me something on the server and processed. Now my config looks like this:<br>
</div><div><br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<i># Created by <br>
# /usr/bin/cfgmaker public@localhost<br>
<br>
<br>
### Global Config Options<br>
<br>
# for UNIX<br>
# WorkDir: /home/http/mrtg<br>
<br>
# for Debian<br>
WorkDir: /var/www/virtual/<a href="http://eplay-tv.de/status/htdocs" target="_blank">eplay-tv.de/status/htdocs</a><br>
<br>
# or for NT<br>
# WorkDir: c:\mrtgdata<br>
<br>
### Global Defaults<br>
<br>
# to get bits instead of bytes and graphs growing to the right<br>
# Options[_]: growright, bits<br>
<br>
EnableIPv6: no<br>
<br>
######################################################################<br>
# System: <a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a><br>
# Description: Linux <a href="http://ksxxxxxx.kimsufi.com" target="_blank">ksxxxxxx.kimsufi.com</a>
2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC
2011 x86_64<br>
# Contact: Me <a href="mailto:server@eplay-tv.eu" target="_blank"><server@eplay-tv.eu></a><br>
# Location: Sitting on the Dock of the Bay<br>
######################################################################<br>
<br>
<br>
### Interface 2 >> Descr: 'eth0' | Name: '' | Ip:
'94.23.251.20' | Eth: 'e0:69:95:d7:9b:1f' ###<br>
<br>
Target[localhost_eth0]: \eth0:public@localhost:<br>
SetEnv[localhost_eth0]: MRTG_INT_IP="94.xx.xxx.20"
MRTG_INT_DESCR="eth0"<br>
MaxBytes[localhost_eth0]: 12500000<br>
Title[localhost_eth0]: 94.xx.xxx.20 -- <a href="http://ksxxxxxx.kimsufi.com" target="_blank">ksxxxxxx.kimsufi.com</a><br>
Options[localhost_eth0]: growright,nopercent,nobanner,noinfo<br>
PageTop[localhost_eth0]: <H1>94.23.251.20 --
<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a></H1><br>
# <TABLE><br>
# <TR><TD>System:</TD>
<TD><a href="http://ksxxxxxx.kimsufi.com" target="_blank">ksxxxxxx.kimsufi.com</a> in LAN</TD></TR><br>
# <TR><TD>Maintainer:</TD> <TD>flix
&lt;flix@leela&gt;</TD></TR><br>
# <TR><TD>Description:</TD><TD>eth0
</TD></TR><br>
# <TR><TD>ifType:</TD>
<TD>ethernet</TD></TR><br>
# <TR><TD>ifName:</TD>
<TD></TD></TR><br>
# <TR><TD>Max Speed:</TD> <TD>100.0
Mbits/s</TD></TR><br>
# <TR><TD>Ip:</TD>
<TD>94.23.251.20
(<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a>)</TD></TR><br>
# </TABLE><br>
<br>
<br>
### End of <a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a><br>
<br>
### CPU Load<br>
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt<br>
Target[<a href="mailto:localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@127.0.0.1+" target="_blank">localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@127.0.0.1+</a>
<a href="mailto:ssCpuRawSystem.0&ssCpuRawSystem.0:public@127.0.0.1+" target="_blank">ssCpuRawSystem.0&ssCpuRawSystem.0:public@127.0.0.1+</a>
<a href="mailto:ssCpuRawNice.0&ssCpuRawNice.0:public@127.0.0.1" target="_blank">ssCpuRawNice.0&ssCpuRawNice.0:public@127.0.0.1</a><br>
MaxBytes[localhost.cpu]: 100<br>
Title[localhost.cpu]: CPU Load<br>
PageTop[localhost.cpu]: <H1>Active CPU Load %</H1><br>
Unscaled[localhost.cpu]: ymwd<br>
ShortLegend[localhost.cpu]: %<br>
YLegend[localhost.cpu]: CPU Utilization<br>
Legend1[localhost.cpu]: Active CPU in % (Load)<br>
Legend2[localhost.cpu]:<br>
Legend3[localhost.cpu]:<br>
Legend4[localhost.cpu]:<br>
LegendI[localhost.cpu]: Active<br>
LegendO[localhost.cpu]:<br>
Options[localhost.cpu]: growright,nopercent,nobanner<br>
<br>
### Memory Free<br>
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt<br>
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<br>
PageTop[localhost.mem]: <H1>Free Memory</H1><br>
Options[localhost.mem]:
nopercent,growright,gauge,noinfo,nobanner<br>
Title[localhost.mem]: Free Memory<br>
MaxBytes[localhost.mem]: 1000000<br>
kMG[localhost.mem]: k,M,G,T,P,X<br>
YLegend[localhost.mem]: bytes<br>
ShortLegend[localhost.mem]: bytes<br>
LegendI[localhost.mem]: Free Memory:<br>
LegendO[localhost.mem]:<br>
Legend1[localhost.mem]: Free memory, not including swap, in
bytes<br>
<br>
<br>
### Disk Free in Percent<br>
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt<br>
Target[localhost.dfpercent]:
dskPercent.3&dskPercent.1:public@localhost<br>
MaxBytes[localhost.dfpercent]: 100<br>
Title[localhost.dfpercent]: DISK USAGE<br>
PageTop[localhost.dfpercent]: <H1>Disk root and home Usage
%</H1><br>
Unscaled[localhost.dfpercent]: ymwd<br>
ShortLegend[localhost.dfpercent]: %<br>
YLegend[localhost.dfpercent]: Disk Utilization<br>
Legend1[localhost.dfpercent]: home disk<br>
Legend2[localhost.dfpercent]: root disk<br>
Legend3[localhost.dfpercent]:<br>
Legend4[localhost.dfpercent]:<br>
LegendI[localhost.dfpercent]: home disk<br>
LegendO[localhost.dfpercent]: root disk<br>
Options[localhost.dfpercent]:
growright,gauge,nopercent,noinfo,nobanner<br>
<br>
<br>
### Swap Free<br>
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt<br>
Target[localhost.swap]:
memAvailSwap.0&memAvailSwap.0:public@localhost<br>
PageTop[localhost.swap]: <H1>Swap Memory Free</H1><br>
Options[localhost.swap]:
nopercent,growright,gauge,noinfo,nobanner<br>
Title[localhost.swap]: Free Memory<br>
MaxBytes[localhost.swap]: 1000000<br>
kMG[localhost.swap]: k,M,G,T,P,X<br>
YLegend[localhost.swap]: bytes<br>
ShortLegend[localhost.swap]: bytes<br>
LegendI[localhost.swap]: Free Memory:<br>
LegendO[localhost.swap]:<br>
Legend1[localhost.swap]: Swap memory avail, in bytes<br>
<br>
<br>
### Processes Running<br>
Target[localhost.procs]: `/etc/mrtg/<a href="http://stat.pl" target="_blank">stat.pl</a> procs root`<br>
Options[localhost.procs]:
nopercent,growright,gauge,nobanner,integer,noinfo<br>
Title[localhost.procs]: Process<br>
PageTop[localhost.procs]: <h1>Processes</h1><br>
MaxBytes[localhost.procs]: 5000000<br>
YLegend[localhost.procs]: Processes<br>
ShortLegend[localhost.procs]: procs<br>
LegendI[localhost.procs]: Processes:<br>
LegendO[localhost.procs]:<br>
Legend1[localhost.procs]: Running Processes<br>
<br>
<br>
### Logged-in Users<br>
Target[localhost.users]: `/etc/mrtg/<a href="http://stat.pl" target="_blank">stat.pl</a> users root`<br>
Options[localhost.users]:
nopercent,growright,gauge,integer,nobanner,noinfo<br>
Title[localhost.users]: Logged-in users<br>
PageTop[localhost.users]: <h1>Logged-in users</h1><br>
MaxBytes[localhost.users]: 60000<br>
YLegend[localhost.users]: users<br>
ShortLegend[localhost.users]: users<br>
LegendI[localhost.users]: Users:<br>
LegendO[localhost.users]:<br>
Legend1[localhost.users]: Logged-in users<br>
<br>
<br>
### Temperature<br>
Title[localhost.temp]: Temperature on box<br>
PageTop[localhost.temp]: <H1>Temperature</H1><br>
Target[localhost.temp]: `mrtg-sensors it87-isa-0290 temp3
it87-isa-0290 temp2`<br>
Options[localhost.temp]:
noinfo,gauge,growright,integer,nopercent,nobanner<br>
Unscaled[localhost.temp]:dwmy<br>
MaxBytes[localhost.temp]: 100<br>
YLegend[localhost.temp]: °C<br>
ShortLegend[localhost.temp]: °C<br>
Legend1[localhost.temp]: CPU Temperature<br>
Legend2[localhost.temp]: System Temperature<br>
LegendI[localhost.temp]: CPU:<br>
LegendO[localhost.temp]: System: <br>
<br>
<br>
### Fan<br>
Target[localhost.fan]: `mrtg-sensors it87-isa-0290 fan1`<br>
MaxBytes[localhost.fan]: 4000<br>
Options[localhost.fan]:
noinfo,gauge,growright,integer,nopercent,nobanner<br>
Title[localhost.fan]: System Fan Speed<br>
PageTop[localhost.fan]: <H1>System Fan Speed
(fan1)</H1><br>
YLegend[localhost.fan]: Rounds Per Minute<br>
ShortLegend[localhost.fan]: RPM<br>
LegendI[localhost.fan]: Speed:<br>
LegendO[localhost.fan]: <br>
Legend1[localhost.fan]: System Fan Speed<br>
<br>
<br>
### Ping<br>
Title[localhost.ping]: Ping Time<br>
PageTop[localhost.ping]: <H1>Ping Time</H1><br>
Target[localhost.ping]: `/etc/mrtg/ping.sh`<br>
MaxBytes[localhost.ping]: 2000<br>
Options[localhost.ping]:
growright,unknaszero,nopercent,gauge,nobanner,noinfo<br>
LegendI[localhost.ping]: Pkt loss %<br>
LegendO[localhost.ping]: Avg RTT<br>
Legend1[localhost.ping]: Pkt loss %<br>
Legend2[localhost.ping]: Avg RTT<br>
YLegend[localhost.ping]: RTT (ms)<br>
<br>
<br>
### Connectionuptime<br>
Target[localhost.conuptime]: `/etc/mrtg/connectionuptime.sh`<br>
Options[localhost.conuptime]:
nopercent,growright,gauge,nobanner,integer,noinfo<br>
Title[localhost.conuptime]: Connectionuptime<br>
PageTop[localhost.conuptime]:
<h1>Connectionuptime</h1><br>
MaxBytes[localhost.conuptime]: 780<br>
YLegend[localhost.conuptime]: Minutes<br>
ShortLegend[localhost.conuptime]: min<br>
LegendI[localhost.conuptime]: Minutes:<br>
LegendO[localhost.conuptime]:<br>
Legend1[localhost.conuptime]: Connection uptime of ppp0 in
minutes (720 mins are 12 hours)<br>
<br>
<br>
### Uptime<br>
Target[localhost.uptime]: `/etc/mrtg/uptime.sh`<br>
Options[localhost.uptime]:
nopercent,growright,gauge,nobanner,integer,noinfo<br>
#Suppress[localhost.uptime]: d<br>
Title[localhost.uptime]: Uptime<br>
PageTop[localhost.uptime]: <h1>Uptime</h1><br>
MaxBytes[localhost.uptime]: 1000000<br>
YLegend[localhost.uptime]: Days<br>
ShortLegend[localhost.uptime]: days<br>
LegendI[localhost.uptime]: Days:<br>
LegendO[localhost.uptime]:<br>
Legend1[localhost.uptime]: Uptime of Server in days</i></blockquote><div><br></div><div>But unfortunately that does not, because it only displays statistics and get 4 every 5 minutes, a cron-error. Here's the log:</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2011-12-17 22:25:01: WARNING: Could not match
host:'public@localhost:' ref:'Descr'<br>
key:'eth0'<br>
Unknown SNMP var ssCpuRawUser.0<br>
at /usr/bin/mrtg line 2251<br>
Unknown SNMP var ssCpuRawUser.0<br>
at /usr/bin/mrtg line 2251<br>
2011-12-17 22:25:01: WARNING: Expected a number but got '1:45:43'<br>
2011-12-17 22:25:01: WARNING: Expected a number but got
'<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a>'<br>
Unknown SNMP var ssCpuRawSystem.0<br>
at /usr/bin/mrtg line 2251<br>
Unknown SNMP var ssCpuRawSystem.0<br>
at /usr/bin/mrtg line 2251<br>
2011-12-17 22:25:01: WARNING: Expected a number but got '1:45:43'<br>
2011-12-17 22:25:01: WARNING: Expected a number but got
'<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a>'<br>
Unknown SNMP var ssCpuRawNice.0<br>
at /usr/bin/mrtg line 2251<br>
Unknown SNMP var ssCpuRawNice.0<br>
at /usr/bin/mrtg line 2251<br>
2011-12-17 22:25:01: WARNING: Expected a number but got '1:45:43'<br>
2011-12-17 22:25:01: WARNING: Expected a number but got
'<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a>'<br>
SNMP Error:<br>
Received SNMP response with error code<br>
error status: noSuchName<br>
index 2 (OID: 1.3.6.1.4.1.2021.4.6.0)<br>
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)<br>
community: "public"<br>
request ID: 759502945<br>
PDU bufsize: 8000 bytes<br>
timeout: 2s<br>
retries: 5<br>
backoff: 1)<br>
at /usr/share/perl5/SNMP_util.pm line 492<br>
SNMPGET Problem for .1.3.6.1.4.1.2021.4.6.0
.1.3.6.1.4.1.2021.4.6.0 sysUptime<br>
sysName on public@localhost::::::v4only<br>
at /usr/bin/mrtg line 2251<br>
Unknown SNMP var dskPercent.3<br>
at /usr/bin/mrtg line 2251<br>
Unknown SNMP var dskPercent.1<br>
at /usr/bin/mrtg line 2251<br>
2011-12-17 22:25:01: WARNING: Expected a number but got '1:45:43'<br>
2011-12-17 22:25:01: WARNING: Expected a number but got
'<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a>'<br>
Unknown SNMP var memAvailSwap.0<br>
at /usr/bin/mrtg line 2251<br>
Unknown SNMP var memAvailSwap.0<br>
at /usr/bin/mrtg line 2251<br>
2011-12-17 22:25:01: WARNING: Expected a number but got '1:45:43'<br>
2011-12-17 22:25:01: WARNING: Expected a number but got
'<a href="http://ks383295.kimsufi.com" target="_blank">ks383295.kimsufi.com</a>'<br>
Can't exec "mrtg-sensors": No such file or directory at
/usr/bin/mrtg line 2079.<br>
2011-12-17 22:25:01: WARNING: Running 'mrtg-sensors it87-isa-0290
temp3<br>
it87-isa-0290 temp2': No such file or directory<br>
2011-12-17 22:25:01: WARNING: Could not get any data from external
command<br>
'mrtg-sensors it87-isa-0290 temp3 it87-isa-0290 temp2'<br>
Maybe the external command did not even start. (No such file or
directory)<br>
<br>
2011-12-17 22:25:01: WARNING: Problem with External get
'mrtg-sensors it87-isa-0290<br>
temp3 it87-isa-0290 temp2':<br>
Expected a Number for 'in' but nothing'<br>
<br>
2011-12-17 22:25:01: WARNING: Problem with External get
'mrtg-sensors it87-isa-0290<br>
temp3 it87-isa-0290 temp2':<br>
Expected a Number for 'out' but nothing'<br>
<br>
Can't exec "mrtg-sensors": No such file or directory at
/usr/bin/mrtg line 2079.<br>
2011-12-17 22:25:01: WARNING: Running 'mrtg-sensors it87-isa-0290
fan1': No such<br>
file or directory<br>
2011-12-17 22:25:01: WARNING: Could not get any data from external
command<br>
'mrtg-sensors it87-isa-0290 fan1'<br>
Maybe the external command did not even start. (No such file or
directory)<br>
<br>
2011-12-17 22:25:01: WARNING: Problem with External get
'mrtg-sensors it87-isa-0290<br>
fan1':<br>
Expected a Number for 'in' but nothing'<br>
<br>
2011-12-17 22:25:01: WARNING: Problem with External get
'mrtg-sensors it87-isa-0290<br>
fan1':<br>
Expected a Number for 'out' but nothing'<br>
<br>
Can't exec "/etc/mrtg/connectionuptime.sh": No such file or
directory at<br>
/usr/bin/mrtg line 2079.<br>
2011-12-17 22:25:01: WARNING: Running
'/etc/mrtg/connectionuptime.sh': No such file<br>
or directory<br>
2011-12-17 22:25:01: WARNING: Could not get any data from external
command<br>
'/etc/mrtg/connectionuptime.sh'<br>
Maybe the external command did not even start. (No such file or
directory)<br>
<br>
2011-12-17 22:25:01: WARNING: Problem with External get<br>
'/etc/mrtg/connectionuptime.sh':<br>
Expected a Number for 'in' but nothing'<br>
<br>
2011-12-17 22:25:01: WARNING: Problem with External get<br>
'/etc/mrtg/connectionuptime.sh':<br>
Expected a Number for 'out' but nothing'<br>
<br>
2011-12-17 22:25:10: ERROR: Target[localhost_eth0][_IN_] '
$target->[0]{$mode} ' did<br>
not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost_eth0][_OUT_] '
$target->[0]{$mode} '<br>
did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.cpu][_IN_] '
$target->[1]{$mode} + <br>
$target->[2]{$mode} + $target->[3]{$mode} ' (warn): Use of
uninitialized value in<br>
addition (+) at (eval 22) line 1.<br>
2011-12-17 22:25:10: ERROR: Target[localhost.cpu][_OUT_] '
$target->[1]{$mode} + <br>
$target->[2]{$mode} + $target->[3]{$mode} ' (warn): Use of
uninitialized value in<br>
addition (+) at (eval 23) line 1.<br>
2011-12-17 22:25:10: ERROR: Target[localhost.mem][_IN_] '
$target->[4]{$mode} ' did<br>
not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.mem][_OUT_] '
$target->[4]{$mode} ' did<br>
not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.dfpercent][_IN_] '
$target->[5]{$mode}<br>
' did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.dfpercent][_OUT_] '
$target->[5]{$mode}<br>
' did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.swap][_IN_] '
$target->[6]{$mode} ' did<br>
not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.swap][_OUT_] '
$target->[6]{$mode} '<br>
did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.temp][_IN_] '
$target->[9]{$mode} ' did<br>
not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.temp][_OUT_] '
$target->[9]{$mode} '<br>
did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.fan][_IN_] '
$target->[10]{$mode} ' did<br>
not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.fan][_OUT_] '
$target->[10]{$mode} '<br>
did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.conuptime][_IN_] '
$target->[12]{$mode}<br>
' did not eval into defined data<br>
2011-12-17 22:25:10: ERROR: Target[localhost.conuptime][_OUT_] '<br>
$target->[12]{$mode} ' did not eval into defined data
</blockquote><div><br></div><div>How do I get to go now?<br><br>greeting </div><span class="HOEnZb"><font color="#888888"><div>eplay-tv</div></font></span><br>