Hi Ben I looked at this a while ago but found a bug in Microsoft's snmp for sql2000 If you do walk you see the data but if you use a get it doesn't return it. I got round it by putting a bodge in the code so when it tried to use the base sql mib it did a snmp getnext but starting 1 value back, this then returned the value expected
This is as far as I got as I ran out of time in creating the rest of the scripts -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Lentz Sent: 01 February 2006 13:42 To: jffnms-users@lists.sourceforge.net Subject: Re: [jffnms-users] Problem with sql2000 snmp counters You've got to "fully qualify" what you're looking for with snmpget. This is different from snmpwalk, which will traverse the tree for you. So, put the two together. Try: snmpget -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.16.12.83.81.76.95.83.69.82.86.69.82.48.51 snmpget -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.17.12.83.81.76.95.83.69.82.86.69.82.48.51 ----- Original Message ----- From: "Broeken, Marco" <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> Sent: 02/01/2006 08:09:31 AM To: "Javier Szyszlican" <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> Cc: jffnms-users@lists.sourceforge.net Subject: [jffnms-users] Problem with sql2000 snmp counters I have a problem with a mssql snmp query In bash i execute: jffnms-lnx:/home/global/www# snmpget -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.17 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-SMI::enterprises.311.1.4.1.1.2.1.17 jffnms-lnx:/home/global/www# snmpget -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.16 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-SMI::enterprises.311.1.4.1.1.2.1.16 Snmpget is not working??? Snmpwalk works fine: jffnms-lnx:/home/global/www# snmpwalk -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.16 SNMPv2-SMI::enterprises.311.1.4.1.1.2.1.16.12.83.81.76.95.83.69.82.86.69 .82.48.51 = Gauge32: 248 jffnms-lnx:/home/global/www# snmpwalk -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.17 SNMPv2-SMI::enterprises.311.1.4.1.1.2.1.17.12.83.81.76.95.83.69.82.86.69 .82.48.51 = Gauge32: 230 jffnms-lnx:/home/global/www# snmpwalk -v1 192.168.10.46 -cread_vecozo .1.3.6.1.4.1.311.1.4.1.1.2.1.17 SNMPv2-SMI::enterprises.311.1.4.1.1.2.1.17.12.83.81.76.95.83.69.82.86.69 .82.48.51 = Gauge32: 211 I made new counters in jffnms, and as result of the snmp result i get in return "nan" I think above is my problem.... Any suggestions ? Met vriendelijke groet, Marco Broeken Netwerkbeheer email: [EMAIL PROTECTED] VECOZO Emma Goldmanweg 4b 5032 MN Tilburg tel : +31 (0)13 4625 648 fax : +31 (0)13 4625 640 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 _______________________________________________ jffnms-users mailing list jffnms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jffnms-users ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ jffnms-users mailing list jffnms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jffnms-users