/usr/local/sbin # ./snmpd -f -Le error information
"飞飞" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave,Mike and ALL:
It is look like I didnot install net-snmp5.5 rightly,one of my co-worker said it the problem of the distribution version of the linux(especially the HIGH customized version,such as Ubuntu,SuSE,net-snmp is not called net-snmp in their software suite),I really need a linux-like kernel OS, and install the net-snmp in soucrce code compiling way(run my MIB subagent statical),and easy to re-compiled,so it is easy to extend the subagent and also conveniently verify my amends.
Dandy,give me some constructive advice please!
the error information is below:
linux-t4el:/usr/local/sbin # ./snmpd -f -Le
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 (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-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 (HOST-RESOURCES-TYPES): 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-FRAMEWORK-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 (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/local/share/snmp/mibs/NET-SNMP-PASS-MIB.txt
Cannot find module (NET-SNMP-EXAMPLES-MIB): At line 11 in /usr/local/share/snmp/mibs/NET-SNMP-PASS-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/local/share/snmp/mibs/NET-SNMP-PASS-MIB.txt)
Did not find 'netSnmpExamples' in module #-1 (/usr/local/share/snmp/mibs/NET-SNMP-PASS-MIB.txt)
Unlinked OID in NET-SNMP-PASS-MIB: netSnmpPassExamples ::= { netSnmpExamples 255 }
Undefined identifier: netSnmpExamples near line 14 of /usr/local/share/snmp/mibs/NET-SNMP-PASS-MIB.txt
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-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)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassTable ::= { netSnmpPassExamples 2 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassOIDValue ::= { netSnmpPassExamples 99 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassGauge ::= { netSnmpPassExamples 6 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassCounter ::= { netSnmpPassExamples 5 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassIpAddress ::= { netSnmpPassExamples 4 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassTimeTicks ::= { netSnmpPassExamples 3 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassString ::= { netSnmpPassExamples 1 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassEntry ::= { netSnmpPassTable 1 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassExamples ::= { netSnmpExamples 255 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassOID ::= { netSnmpPassEntry 3 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassInteger ::= { netSnmpPassEntry 2 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassIndex ::= { netSnmpPassEntry 1 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassString ::= { netSnmpPassExamples 1 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassTimeTicks ::= { netSnmpPassExamples 3 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassIpAddress ::= { netSnmpPassExamples 4 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassCounter ::= { netSnmpPassExamples 5 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassGauge ::= { netSnmpPassExamples 6 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassOIDValue ::= { netSnmpPassExamples 99 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassTable ::= { netSnmpPassExamples 2 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassEntry ::= { netSnmpPassTable 1 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassExamples ::= { netSnmpExamples 255 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassIndex ::= { netSnmpPassEntry 1 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassInteger ::= { netSnmpPassEntry 2 }
Cannot adopt OID in NET-SNMP-PASS-MIB: netSnmpPassOID ::= { netSnmpPassEntry 3 }
/usr/local/share/snmp/snmpd.conf: line 62: Error: example config NETWORK not properly configured
/usr/local/share/snmp/snmpd.conf: line 418: Warning: Unknown token: mibs.
net-snmp: 1 error(s) in config file(s)
NET-SNMP version 5.5
^CReceived TERM or STOP signal... shutting down...
------------------ 原始邮件 ------------------
发件人: "Dave Shield"<[email protected]>;
发送时间: 2009年11月18日(星期三) 晚上6:56
收件人: "飞飞"<[email protected]>;
抄送: "net-snmp-users"<[email protected]>;
主题: Re: 回复:RE: 回复:RE: The problem about the net-snmp installation
2009/11/18 飞飞 <[email protected]>:
> Failed!
>
> I run the command /usr/local/sbin/snmpd start,I got NOTHING.
But Mike didn't tell you to run
"/usr/local/sbin/snmpd start"
He told you to run
"/usr/local/sbin/snmpd" (nothing else).
Personally, I;d suggest running
"/usr/local/sbin/snmpd -f -Le"
at least initially - so that you can see whether there
are any errors being reported.
If that works (and you can query the agent),
then ^C this, and run as Mike suggests.
But you need to be clear about the distinction between
the SNMP agent itself (usually /usr/local/sbin/snmpd or
/usr/sbin/snmpd) and the script used to control this
agent (typically something like /etc/init.d/snmpd)
The first is a binary program, and is described in
the man page "snmpd(8)". The second is a shell
script, and takes the options "start" and "stop".
These are two different things - don't treat them
as equivalent.
Dave
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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