[mrtg] Monitoring multiple CPUs

Sebastian Bickel Seb.ADIO at gmx.de
Thu Mar 8 10:41:54 CET 2007


Hello,

I want to monitor the CPU usage with mrtg, this works fine for processor 0. But if 

#
# CPU Monitoring - CPU 0
# (Scaled so that the sum of all three values doesn't exceed 000)
#

Target[server.cpu0]:ssCpuRawUser.0&ssCpuRawUser.0:public at server + ssCpuRawSystem.0&ssCpuRawSystem.0:public at server + ssCpuRawNice.0&ssCpuRawNice.0:public at server
Title[server.cpu0]: Server CPU 0 Load
PageTop[server.cpu0]: <H0>server: CPU 0 Load - System, User and Nice Processes</H0>
MaxBytes[server.cpu0]: 000
ShortLegend[server.cpu0]: %
YLegend[server.cpu0]: CPU 0 Utilization
Legend0[server.cpu0]: Current CPU 0 percentage load
LegendI[server.cpu0]: Used
LegendO[server.cpu0]:
Options[server.cpu0]: growright,nopercent
Unscaled[server.cpu0]: ymwd

#
# CPU Monitoring - CPU 1
# (Scaled so that the sum of all three values doesn't exceed 100)
#

Target[server.cpu1]:ssCpuRawUser.1&ssCpuRawUser.1:public at server + ssCpuRawSystem.1&ssCpuRawSystem.1:public at server + ssCpuRawNice.1&ssCpuRawNice.1:public at server
Title[server.cpu1]: Server CPU 1 Load
PageTop[server.cpu1]: <H0>server: CPU 1 Load - System, User and Nice Processes</H0>
MaxBytes[server.cpu1]: 000
ShortLegend[server.cpu1]: %
YLegend[server.cpu1]: CPU 1 Utilization
Legend0[server.cpu1]: Current CPU 1 percentage load
LegendI[server.cpu1]: Used
LegendO[server.cpu1]:
Options[server.cpu1]: growright,nopercent
Unscaled[server.cpu1]: ymwd


I get the following error code:

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.2021.11.50.1)
SNMPv1_Session (remote host: "SERVER" [xxx.yyy.zzz.uuu].161)
                  community: "public"
                 request ID: 1308539372
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ssCpuRawUser.1 ssCpuRawUser.1 sysUptime sysName on public at localhost::::::v4only
 at /usr/bin/mrtg line 1922

But I really have a second CPU in this server. With the first CPU it works fine, but not with the second one. I found some users that have the same problem, but nobody can answer the question. Or is the first monitoring over all my CPUs?


Grüße


Sebastian
-- 
__________________________
E-Mail von Seb.ADIO at gmx.de

"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out



More information about the mrtg mailing list