Sziasztok!
Van egy tuzfal gep, amin fut az MRTG, snmp-n peobalom lekerdezni, a mogotte levo kliensrol a cpu, mem hasznalatot. Az allabi megoldast sikerult kigugliznom, de nem tokeletes a dolog. Ugyanis ha a kliens linuxot futtat, akkor megy a dolog, ellenben, ha atbootolok win xp-re, akkor nem. A xp-re feltettem az snmp csomagot, es barhonnan engedelyezve van a kapcsolodas. Mi lehet a gond, merre menjek tovabb? Esetleg a win ala kell meg valami telepiteni?
/etc/mrtg.cfg (reszlet)
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[norbi.homenet.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@norbi.homenet+ ssCpuRawSys
tem.0&ssCpuRawSystem.0:public@norbi.homenet+ ssCpuRawNice.0&ssCpuRawNice.0:public@norbi.h
omenet
RouterUptime[norbi.homenet.cpu]: public@norbi.homenet
MaxBytes[norbi.homenet.cpu]: 100
Title[norbi.homenet.cpu]: CPU Load norbi.homenet
PageTop[norbi.homenet.cpu]: <H1>Active CPU Load % [norbi.homenet]</H1>
Unscaled[norbi.homenet.cpu]: ymwd
ShortLegend[norbi.homenet.cpu]: %
YLegend[norbi.homenet.cpu]: CPU Utilization
Legend1[norbi.homenet.cpu]: Active CPU in % (Load)
Legend2[norbi.homenet.cpu]:
Legend3[norbi.homenet.cpu]:
Legend4[norbi.homenet.cpu]:
LegendI[norbi.homenet.cpu]: Active
LegendO[norbi.homenet.cpu]:
Options[norbi.homenet.cpu]: nopercent
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Target[norbi.homenet.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:public@norbi.h
omenet
PageTop[norbi.homenet.mem]: <H1>Free Memory [norbi.homenet]</H1>
#Options[norbi.homenet.mem]: nopercent,gauge,noinfo
Options[norbi.homenet.mem]: nopercent,gauge,noinfo
Title[norbi.homenet.mem]: Free Memory
MaxBytes[norbi.homenet.mem]: 1000000
kMG[norbi.homenet.mem]: k,M,G,T,P,X
YLegend[norbi.homenet.mem]: bytes
ShortLegend[norbi.homenet.mem]: bytes
LegendI[norbi.homenet.mem]: Free Memory:
LegendO[norbi.homenet.mem]:
Legend1[norbi.homenet.mem]: Free memory, not including swap, in bytes
Ja es a hibauzenet hugyek:
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.2021.11.50.0)
SNMPv1_Session (remote host: "norbi.homenet" [192.168.13.5].161)
community: "public"
request ID: 1418500914
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for ssCpuRawUser.0 ssCpuRawUser.0 sysUptime sysName on public@norbi.homenet::::::v4only
at /usr/bin/mrtg line 1840
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.2021.11.52.0)
SNMPv1_Session (remote host: "norbi.homenet" [192.168.13.5].161)
community: "public"
request ID: 1418500915
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for ssCpuRawSystem.0 ssCpuRawSystem.0 sysUptime sysName on public@norbi.homenet::::::v4only
at /usr/bin/mrtg line 1840
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.2021.11.51.0)
SNMPv1_Session (remote host: "norbi.homenet" [192.168.13.5].161)
community: "public"
request ID: 1418500916
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for ssCpuRawNice.0 ssCpuRawNice.0 sysUptime sysName on public@norbi.homenet::::::v4only
at /usr/bin/mrtg line 1840
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.2021.4.6.0)
SNMPv1_Session (remote host: "norbi.homenet" [192.168.13.5].161)
community: "public"
request ID: 1418500917
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for .1.3.6.1.4.1.2021.4.6.0 .1.3.6.1.4.1.2021.4.6.0 sysUptime sysName on public@norbi.homenet::::::v4only
at /usr/bin/mrtg line 1840
ERROR: Target[norbi.homenet.cpu][_IN_] ' $target->[13]{$mode} + $target->[14]{$mode} + $target->[15]{$mode} ' (warn): Use of uninitialized value in addition (+) at (eval 28) line 1.
ERROR: Target[norbi.homenet.cpu][_OUT_] ' $target->[13]{$mode} + $target->[14]{$mode} + $target->[15]{$mode} ' (warn): Use of uninitialized value in addition (+) at (eval 29) line 1.
ERROR: Target[norbi.homenet.mem][_IN_] ' $target->[16]{$mode} ' did not eval into defined data
ERROR: Target[norbi.homenet.mem][_OUT_] ' $target->[16]{$mode} ' did not eval into defined data
- 1017 megtekintés