sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #71118
snmp og mrtg
Hej NG
Jeg prøver på at få mrtg til at overvåge min brug af cpu, og har fundet
dette, som jeg har skrevet ind i mrtg.conf
LoadMIBs: /usr/shar/snmp/mibs/UCD-SNMP-MIB.txt
Target[127.0.0.1_cpusum]:\
ssCpuRawUser.0&ssCpuRawUser.0:public@127.0.0.+\
ssCpuRawSystem.0&ssCpuRawSystem.0:public@127.0.0.1 +\
ssCpuRawNice.0&ssCpuRawNice.0:public@127.0.0.1
RouterUptime[127.0.0.1_cpusum]: public@127.0.0.1
MaxBytes[127.0.0.1_cpusum]: 100
Title[127.0.0.1_cpusum]: CPU LOAD
PageTop[127.0.0.1_cpusum]: <H1>Active CPU Load %k</H1>
Unscaled[127.0.0.1_cpusum]: ymwd
ShortLegend[127.0.0.1_cpusum]: %
YLegend[127.0.0.1_cpusum]: CPU Utilization
Legend1[127.0.0.1_cpusum]: Active CPU in % (Load)
Legend2[127.0.0.1_cpusum]:
Legend3[127.0.0.1_cpusum]:
Legend4[127.0.0.1_cpusum]:
LegendI[127.0.0.1_cpusum]: Active
LegendO[127.0.0.1_cpusum]:
Options[127.0.0.1_cpusum]: growright,nopercent
når jeg så kører mrtg får jeg følgende fejl:
Unknown SNMP var ssCpuRawUser.0
at /usr/bin/mrtg line 1678
Unknown SNMP var ssCpuRawUser.0
at /usr/bin/mrtg line 1678
WARNING: Expected a number but got '0:02:11'
WARNING: Expected a number but got 'pluto.cgw.dk'
Unknown SNMP var ssCpuRawSystem.0
at /usr/bin/mrtg line 1678
Unknown SNMP var ssCpuRawSystem.0
at /usr/bin/mrtg line 1678
WARNING: Expected a number but got '0:02:11'
WARNING: Expected a number but got 'pluto.cgw.dk'
Unknown SNMP var ssCpuRawNice.0
at /usr/bin/mrtg line 1678
Unknown SNMP var ssCpuRawNice.0
at /usr/bin/mrtg line 1678
WARNING: Expected a number but got '0:02:11'
WARNING: Expected a number but got 'pluto.cgw.dk'
ERROR: Target[127.0.0.1_cpusum][_IN_] ' $$target[3]{$mode} +
$$target[4]{$mode} + $$target[5]{$mode} ' (warn): Use of uninitialized
value in addition (+) at (eval 10339) line 1.
ERROR: Target[127.0.0.1_cpusum][_OUT_] ' $$target[3]{$mode} +
$$target[4]{$mode} + $$target[5]{$mode} ' (warn): Use of uninitialized
value in addition (+) at (eval 10340) line 1.
WARNING: Skipping Update of 127.0.0.1_cpusum, inlast is not defined
WARNING: Skipping Update of 127.0.0.1_cpusum, outlast is not defined
Jeg kører med mrtg-2.9.29 og net-snmp-5.0.9 på en gentoo-box
Hvad er der galt??
mvh
carsten