Please help on MRTG ...
I tried to monitor cpu usage, and I use cpuinfo.pl from mrtg-2 contrib directory, when I run it I got this error on the console :Host key verification failed.
WARNING: Problem with External get '/home/www/mydomain.com/cgi-bin/mrtg/cpuinfo.pl myhost.homelinux.net linux':
Expected a Number for 'in' but got ''
WARNING: Problem with Externale get '/home/www/mydomain.com/cgi-bin/mrtg/cpuinfo.pl myhost.homelinux.net linux':
Expected a Number for 'out' but got ''
ERROR: Target[127.0.0.1_myhost][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[127.0.0.1_myhost][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
and here is my mrtg.cfg :
Target[127.0.0.1_myhost]: `/home/www/mydomain.com/cgi-bin/mrtg/cpuinfo.pl myhost.homelinux.net linux`
MaxBytes[127.0.0.1_myhost]: 100
Options[127.0.0.1_myhost]: gauge, nopercent
Unscaled[127.0.0.1_myhost]: dwym
YLegend[127.0.0.1_myhost]: % of CPU used
ShortLegend[127.0.0.1_myhost]: %
LegendO[127.0.0.1_myhost]: CPU System:
LegendI[127.0.0.1_myhost]: CPU User:
Title[127.0.0.1_myhost]: myhost
PageTop[127.0.0.1_myhost]: <H1>CPU usage for myhost
</H1>
<TABLE>
<TR><TD>System:</TD><TD>myhost</TD></TR>
</TABLE>
Anyone can give me any help? how to make this work ...
Or any other alternative better script ?
Thank you.