nobody0
06.07.03, 16:43
Nachdem das Beispiel aus dem Linuxmagazin nicht funktionierte habe ich deses Skript
#!/bin/bash
echo `cat /proc/loadavg|awk '{print $2}'|sed 's/\.//'`
genommen und in der config
Title[cpu]: loadaverage
PageTop[cpu]: <h1>loadaverage</h1>
Target[cpu]: `/usr/local/mrtg/cpusage`
MaxBytes[cpu]: 10000
# AbsMax[cpu]: 5000
Options[cpu]: growright,gauge
aber das gibt folgenden Fehler:
WARNING: Problem with External get '/usr/local/mrtg/cpusage':
Expected a Number for 'out' but nothing'
ERROR: Target[cpu][_OUT_] ' $$target[1]{$mode} ' did not eval into defined data
Use of uninitialized value in pattern match (m//) at /usr/bin/mrtg line 274.
Use of uninitialized value in numeric lt (<) at /usr/bin/mrtg line 281.
ERROR: outlast is undefined. This should not be possible
Vor einem Jahr hat es noch funktioniert. Woran liegt das? :confused:
#!/bin/bash
echo `cat /proc/loadavg|awk '{print $2}'|sed 's/\.//'`
genommen und in der config
Title[cpu]: loadaverage
PageTop[cpu]: <h1>loadaverage</h1>
Target[cpu]: `/usr/local/mrtg/cpusage`
MaxBytes[cpu]: 10000
# AbsMax[cpu]: 5000
Options[cpu]: growright,gauge
aber das gibt folgenden Fehler:
WARNING: Problem with External get '/usr/local/mrtg/cpusage':
Expected a Number for 'out' but nothing'
ERROR: Target[cpu][_OUT_] ' $$target[1]{$mode} ' did not eval into defined data
Use of uninitialized value in pattern match (m//) at /usr/bin/mrtg line 274.
Use of uninitialized value in numeric lt (<) at /usr/bin/mrtg line 281.
ERROR: outlast is undefined. This should not be possible
Vor einem Jahr hat es noch funktioniert. Woran liegt das? :confused: