RE: Failed object
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC07D4D3F2@mailserver.metatv-ds.metatv.com> |
> From: Jun Zhang [mailto:[email protected]] > Sent: Friday, January 25, 2008 7:38 PM > Running the snmpd, I got the bellow output. So the > HOST-RESOURCES-MIB is not found. The MIB file is not found. This has nothing to do with whether or not the data is presented. > I know that every module > listed has a .txt file under c:/snmp54/share/snmp, why only > 22 couldn't be found out of about 70? Those are the only ones it's looking for. They are the default set. Everything else in a mibs directory will be parsed, but is not required. > I've never seen these > messages in any log files before. As far as I can tell, there's no way to run the net-snmp agent as a service on Windows and get correct logging. ???!!! I can't find logging directives for snmpd in the man pages...? > $ snmpget -v1 -c public localhost:20161 hrSystemDate.0 > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: HOST-RESOURCES-MIB::hrSystemDate.0 Well, it's nice to have a consistent result. > $ snmpd -f -C -c c:/snmp54/etc/snmp/snmpd.conf -Le :20161 Please remove all doubt and invoke as C:\snmp54\bin\snmpd.exe . > c:/snmp54/etc/snmp/snmpd.conf: line 60: Error: Blank line > following disk token. Please tell me you know what to do about this... good! Now do it. > Cannot find module (IP-MIB): At line 0 in (none) > Cannot find module (IF-MIB): At line 0 in (none) > Cannot find module (TCP-MIB): At line 0 in (none) > Cannot find module (UDP-MIB): At line 0 in (none) > Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) > Cannot find module (SNMPv2-MIB): At line 0 in (none) > Cannot find module (SNMPv2-SMI): At line 0 in (none) > Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) > Cannot find module (UCD-SNMP-MIB): At line 0 in (none) > Cannot find module (UCD-DEMO-MIB): At line 0 in (none) > Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) > Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none) > Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) > Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) > Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) > Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) > Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) > Cannot find module (SNMP-MPD-MIB): At line 0 in (none) > Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) > Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) > Cannot find module (SNMPv2-TM): At line 0 in (none) > c:/snmp54/etc/snmp/snmpd.conf: line 60: Error: Blank line > following disk token. > Creating directory: c:/usr > Creating directory: c:/usr/snmp > Creating directory: c:/usr/snmp/persist It's looking for the mibs in the default location, which tells me that you did not set MIBDIRS. You should set MIBS=all as well, if you want your other MIBs recognized. It's also creating a persistent storage directory in the default location - you probably want to override this in the conf file and put it under C:\snmp54 with everything else. The fact that those directories are being created implies that the agent has never gotten this far in the startup process before. This makes sense - since the files are in a non-default location the conf file will never be found by the service, which does nopt permit command line arguments. If you want to run as a service, you must either put your installation in C:\usr or compile your own location in. I must be missing something, but what does the agent do with MIB files anyway? Disman? HTH, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users