Hi Still having this probles. Any ideas??
Regards Alvaro -----Mensaje original----- De: Alvaro Cornejo [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 13 de Diciembre de 2007 12:54 Para: [email protected] Asunto: snpo error in some targets Hi List, Continuing with MRTG deployment, I want to monitor some info from a Linux (fedora6) machine. I've successfully set up several targets but for some of the values I want to monitor I get some errors from MRTG; however if I do snmpget/snmpwalk from the shell I do get the correct values. Below is a log from that. Regards Alvaro 2007-12-13 12:30:02 -- --tarp: Starting test.memory -> memAvailReal.0&memTotalReal.0:[EMAIL PROTECTED] 2007-12-13 12:30:02 -- --tarp: &targparser external done: 'memAvailReal.0&memTotalReal.0:[EMAIL PROTECTED]' 2007-12-13 12:30:02 -- --tarp: New complex target [18] 'memAvailReal.0&memTotalReal.0:[EMAIL PROTECTED]': Comu: publicprv, Host: 127.0.0.1 Opt: , IPv4: 1 Conv: OID: memAvailReal, memTotalReal IfSel: If, If Key: 0, 0 2007-12-13 12:30:02 -- --tarp: &targparser complex done: ' $target->[18]{$mode} ' 2007-12-13 12:30:02 -- --tarp: &targparser simple done: ' $target->[18]{$mode} ' 2007-12-13 12:30:02 -- --tarp: &targparser returning: unique = 18 ... 2007-12-13 12:30:28 -- --snpo: run snmpget from ssCpuNice&ssCpuNice:[EMAIL PROTECTED] 2007-12-13 12:30:28 -- --snpo: simple If: .0 2007-12-13 12:30:28 -- --snpo: simple If: .0 2007-12-13 12:30:28 -- --snpo: SNMPGet from [EMAIL PROTECTED] -- ssCpuNice.0,ssCpuNice.0,sysUptime,sysName 2007-12-13 12:30:28 -- Unknown SNMP var ssCpuNice.0 at /usr/local/mrtg-2/bin/mrtg line 2150 2007-12-13 12:30:28 -- Unknown SNMP var ssCpuNice.0 at /usr/local/mrtg-2/bin/mrtg line 2150 2007-12-13 12:30:28 -- --snpo: SNMPfound -- '0:06:02', 'test-tts.homeip.net', 'undef', 'undef' 2007-12-13 12:30:28 -- 2007-12-13 12:30:04: WARNING: Expected a number but got '0:06:02' 2007-12-13 12:30:28 -- 2007-12-13 12:30:04: WARNING: Expected a number but got 'test-tts.homeip.net' 2007-12-13 12:30:28 -- --snpo: run snmpget from memAvailReal&memTotalReal:[EMAIL PROTECTED] 2007-12-13 12:30:28 -- --snpo: simple If: .0 2007-12-13 12:30:28 -- --snpo: simple If: .0 2007-12-13 12:30:28 -- --snpo: SNMPGet from [EMAIL PROTECTED] -- memAvailReal.0,memTotalReal.0,sysUptime,sysName 2007-12-13 12:30:28 -- Unknown SNMP var memAvailReal.0 at /usr/local/mrtg-2/bin/mrtg line 2150 2007-12-13 12:30:28 -- Unknown SNMP var memTotalReal.0 at /usr/local/mrtg-2/bin/mrtg line 2150 2007-12-13 12:30:28 -- --snpo: SNMPfound -- '0:06:02', 'test-tts.homeip.net', 'undef', 'undef' 2007-12-13 12:30:28 -- 2007-12-13 12:30:04: WARNING: Expected a number but got '0:06:02' 2007-12-13 12:30:28 -- 2007-12-13 12:30:04: WARNING: Expected a number but got 'test-tts.homeip.net' 2007-12-13 12:30:28 -- --snpo: run snmpget from memAvailReal&memAvailReal:[EMAIL PROTECTED] 2007-12-13 12:30:28 -- --snpo: simple If: .0 2007-12-13 12:30:28 -- --snpo: simple If: .0 2007-12-13 12:30:28 -- --snpo: SNMPGet from [EMAIL PROTECTED] -- memAvailReal.0,memAvailReal.0,sysUptime,sysName 2007-12-13 12:30:28 -- Unknown SNMP var memAvailReal.0 at /usr/local/mrtg-2/bin/mrtg line 2150 2007-12-13 12:30:28 -- Unknown SNMP var memAvailReal.0 at /usr/local/mrtg-2/bin/mrtg line 2150 2007-12-13 12:30:28 -- --snpo: SNMPfound -- '0:06:02', 'test-tts.homeip.net', 'undef', 'undef' 2007-12-13 12:30:28 -- 2007-12-13 12:30:04: WARNING: Expected a number but got '0:06:02' 2007-12-13 12:30:28 -- 2007-12-13 12:30:04: WARNING: Expected a number but got 'test-tts.homeip.net' 2007-12-13 12:30:28 -- --snpo: run snmpget from tcpPassiveOpens&tcpActiveOpens:[EMAIL PROTECTED] 2007-12-13 12:30:29 -- --snpo: simple If: .0 2007-12-13 12:30:29 -- --snpo: simple If: .0 2007-12-13 12:30:29 -- --snpo: SNMPGet from [EMAIL PROTECTED] -- tcpPassiveOpens.0,tcpActiveOpens.0,sysUptime,sysName 2007-12-13 12:30:29 -- --snpo: SNMPfound -- '552', '1118', '0:06:02', 'test-tts.homeip.net' 2007-12-13 12:30:29 -- --snpo: run snmpget from tcpCurrEstab&tcpCurrEstab:[EMAIL PROTECTED] 2007-12-13 12:30:29 -- --snpo: simple If: .0 2007-12-13 12:30:29 -- --snpo: simple If: .0 2007-12-13 12:30:29 -- --snpo: SNMPGet from [EMAIL PROTECTED] -- tcpCurrEstab.0,tcpCurrEstab.0,sysUptime,sysName 2007-12-13 12:30:29 -- --snpo: SNMPfound -- '9', '9', '0:06:03', 'test-tts.homeip.net' ... 2007-12-13 12:30:31 -- --base: Act on Router/Target test.memory 2007-12-13 12:30:31 -- 2007-12-13 12:40:29: ERROR: Target[test.memory][_IN_] ' $target->[18]{$mode} ' did not eval into defined data 2007-12-13 12:30:31 -- 2007-12-13 12:40:29: ERROR: Target[test.memory][_OUT_] ' $target->[18]{$mode} ' did not eval into defined data 2007-12-13 12:30:31 -- --base: Get Current values: in:undef, out:undef, up:undef, name:undef, time:1197571227 2007-12-13 12:30:31 -- --base: Create Graphics 2007-12-13 12:30:32 -- --log: /usr/local/mrtg-2/bin/rateup /var/www/html/mrtg/ test.memory 1197571227 -z g -1 -1 100000000000 c #00cc00 #0000ff #006600 #ff00ff l [Bytes] k 1000 K k,M,G,T,P,X i /var/www/html/mrtg/test.memory-day.png -100000000000 -100000000000 400 100 1 1 1 300 0 4 1 %Y-%m-%d %H:%M 0 2007-12-13 12:30:32 -- --base: Check for Thresholds 2007-12-13 12:30:32 -- --base: Check for Write HTML Pages //// snnmpwalk from shell: [EMAIL PROTECTED]/var/www/html/mrtg# snmpget -v1 -c publicprv localhost memAvailReal.0 memAvailReal.0 sysUptime sysName Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-MIB::sysName Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-MIB::sysUpTime UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 8160 UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 8160 [EMAIL PROTECTED]/var/www/html/mrtg# ///// the cfg: Target[test.memory]: memAvailReal.0&memTotalReal.0:[EMAIL PROTECTED] Title[test.memory]: Free Memory PageTop[test.memory]: <H1>Free Memory</H1> MaxBytes[test.memory]: 100000000000 ShortLegend[test.memory]: B YLegend[test.memory]: Bytes LegendI[test.memory]: Free LegendO[test.memory]: Total Legend1[test.memory]: Free memory, not including swap, in bytes Legend2[test.memory]: Total memory Options[test.memory]: unknaszero,gauge,growright,nopercent kMG[test.memory]: k,M,G,T,P,X -- |--------------------------------------------------------------------------- --------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.smsglobal.com.mx y www.pravcom.com _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
