Hallo zusammen,
Ich benötige Hilfe mit MRTG, welches mit Perl läuft. Aus diesem Grund ist es ja bekanntlich Unix und Windowskompatibel.
Mein Problem schon seit Tagen ist, dass ich eine Fehlermeldung bekomme beim erstellen meiner Skripte. Ich verstehe aber nicht warum.
Ich benutze es zwar auf Windows, aber das Programm an sich funktioniert praktisch genau gleich. Ziel wäre aber schon es später auf Linux zum laufen zu kriegen vorerst will ich aber dass es auf Windows läuft und weiss was ich falsch mache.
Meine Fehlermeldung:
C:\mrtg-2.17.4\bin>perl mrtg process.cfg Daemonizing MRTG ... Do Not close this window. Or MRTG will die SNMP Error: Received SNMP response with error code error status: noSuchName index 1 (OID: 1.3.6.1.2.1.2.2.1.10.0) SNMPv1_Session (remote host: "192.168.1.100" [192.168.1.100].161) community: "frodo" request ID: 397921961 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at C:/mrtg-2.17.4/bin\..\lib\mrtg2/SNMP_util.pm line 497. SNMPGET Problem for ifInOctets.0 ifOutOctets.0 sysUptime sysName on frodo@192.168.1.100::::::v4only at mrtg line 2330. 2016-12-17 19:11:08: ERROR: Target[process][_IN_] '.1.3.6.1.2.1.1.7. $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 15) line 1. 2016-12-17 19:11:08: ERROR: Target[process][_OUT_] '.1.3.6.1.2.1.1.7. $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 16) line 1. 2016-12-17 19:11:08, Rateup WARNING: C:/mrtg-2.17.4/bin\rateup could not read the primary log file for process 2016-12-17 19:11:08, Rateup WARNING: C:/mrtg-2.17.4/bin\rateup The backup log file for process was invalid as well 2016-12-17 19:11:08, Rateup WARNING: C:/mrtg-2.17.4/bin\rateup Can't remove process.old updating log file 2016-12-17 19:11:08, Rateup WARNING: C:/mrtg-2.17.4/bin\rateup Can't rename process.log to process.old updating log file
Mein Config-File sieht so aus.
EnableIPv6: no RunAsDaemon: yes Interval: 5 WorkDir: C:\xampp\htdocs Options[_]:integer LoadMIBs: C:\mrtg-2.17.4\bin\mib_ii.mib Target[PROCESS]: .1.3.6.1.2.1.1.7.0:frodo@192.168.1.100 Options[PROCESS]: nopercent,growright,gauge MaxBytes[PROCESS]: 20000 Title[PROCESS]: PROCESS ANALYSIS FOR APLHA PageTop[PROCESS]: PROCESS ANALYSIS FOR APLHA YLegend[PROCESS]: Prozesse ShortLegend[PROCESS]: Prozesse LegendI[PROCESS]: Prozesse: LegendO[PROCESS]: Legend1[PROCESS]: Prozesse
Ich bin für jede Hilfe dankbar.
PS: SNMP scheint zu funktionieren, siehe Anhang
Ziel: Die Anzahl der laufenden Services/ oder Prozesse abzufragen. System Windows 10
Bearbeitet von sebix:
Titel von der Dringlichkeit befreit, da irrelevant. Falsche Versionsangabe entfernt: Windows ist nicht Ubuntu.