mrtg and mib files with net-snmp
Stefan
stefan at sf-net.com
Tue Jun 20 20:55:22 UTC 2006
Hi,
I ran into some trouble when I tried to install mrtg with net-snmp. I
get the same problem like someone five mounths before:
http://article.gmane.org/gmane.linux.redhat.fedora.general/170076/
match=mrtg+sscpurawuser
But the sollution he tried in his post doesn't work for me. Here is
my mrtg config file:
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt,/usr/share/snmp/mibs/
TCP-MIB.txt
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
EnableIPv6: no
Target[server.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:craz33guy at localhost
+ ssCpuRawSystem.0&ssCpuRawSystem.0:craz33guy at localhost +
ssCpuRawNice.0&ssCpuRawNice.0:craz33guy at localhost
#Target[server.cpu]:.1.3.6.1.4.1.2021.11.9.0&.
1.3.6.1.4.1.2021.11.9.0:craz33guy at localhost
Title[server.cpu]: Server CPU Load
PageTop[server.cpu]: <H1>CPU Load - System, User and Nice Processes</H1>
MaxBytes[server.cpu]: 100
ShortLegend[server.cpu]: %
YLegend[server.cpu]: CPU Utilization
Legend1[server.cpu]: Current CPU percentage load
LegendI[server.cpu]: Used
LegendO[server.cpu]:
Options[server.cpu]: growright,nopercent
Unscaled[server.cpu]: ymwd
When I run mrtg I get the following error message:
Unknown SNMP var ssCpuRawUser.0
at /usr/bin/mrtg line 1980
Unknown SNMP var ssCpuRawUser.0
at /usr/bin/mrtg line 1980
WARNING: Expected a number but got '1:09:17'
WARNING: Expected a number but got 'troll.seekline.net'
Unknown SNMP var ssCpuRawSystem.0
at /usr/bin/mrtg line 1980
Unknown SNMP var ssCpuRawSystem.0
at /usr/bin/mrtg line 1980
WARNING: Expected a number but got '1:09:17'
WARNING: Expected a number but got 'troll.seekline.net'
Unknown SNMP var ssCpuRawNice.0
at /usr/bin/mrtg line 1980
Unknown SNMP var ssCpuRawNice.0
at /usr/bin/mrtg line 1980
WARNING: Expected a number but got '1:09:17'
WARNING: Expected a number but got 'troll.seekline.net'
ERROR: Target[server.cpu][_IN_] ' $target->[0]{$mode} + $target->[1]
{$mode} + $target->[2]{$mode} ' (warn): Use of uninitialized value
in addition (+) at (eval 12) line 1.
ERROR: Target[server.cpu][_OUT_] ' $target->[0]{$mode} + $target->
[1]{$mode} + $target->[2]{$mode} ' (warn): Use of uninitialized
value in addition (+) at (eval 13) line 1.
It seems that mrtg doesn't load the mib files. Does someone have the
same problems? Any suggestions?
Best regards,
Stefan
More information about the users
mailing list