Hi Everybody!!
I am new to SNMP & Linux, please help as I am stuck in this problem for a while
I am using Fedora Core 3 (Linux 2.6.9-1.667)\
"net-snmp-libs-5.1.2-11" is installed using RPM
I have installed Net-SNMP 5.2.1.2 compiling from the source code (as root), Steps that I had taken for this was:
Step 1) In root/<source folder>/./configure (using all default choices)
No Errors
Step 2) In root/<source folder>/make
Got Errors:
if-mib/data_access/interface_common.c: In function
`netsnmp_access_interface_entry_get_by_name':
if-mib/data_access/interface_common.c:248: warning: assignment discards
qualifiers from pointer target type
if-mib/data_access/interface_common.c: In function
`_access_interface_entry_save_name':
if-mib/data_access/interface_common.c:400: warning: passing arg 2 of
`se_find_value_in_slist' discards qualifiers from pointer target type
make[1]: [mib2c.conf.5] Error 1 (ignored)
I Ignored the Errors
Step 3) In root/<source folder>/make test
Got Errors
make[1]: [mib2c.conf.5] Error 1 (ignored)
Tests Skipped:
24:testing snmpv1 traps are sent by snmpd API...SKIPPED
25:testing snmpv2c traps are sent by snmpd API...SKIPPED
26:testing
snmpv1 traps are sent by snmpd without notification mib
support...SKIPPED
27:testing
snmpv2c traps are sent by snmpd without notification mib
support...SKIPPED
33:testing AgentX trap sending support...SKIPPED
43:testing 1st CPU on Solaris using HOST-RESOURCES...SKIPPED
44:testing
initial load device on Solaris using HOST-RESOURCES...SKIPPED
45:testing uptime using HOST-RESOURCES...SKIPPED
46:testing swap on Solaris using HOST-RESOURCES...SKIPPED
Summary: 49 / 49 succeeded
Step 4) In root/<source folder>/make install
Got Errors
make[1]: [mib2c.conf.5] Error 1 (ignored)
Step 5) Made basic Agent configuration file (snmpd.conf) using "snmpconf -g basic_setup" command
& copied it to "/usr/local/shar/snmp"
snmpd (agent) seems to work fine
snmpget, snmpset, adding of MIBs, snmptranslate etc..
But attemting to install Perl Module:
In perl Directory :
perl Makeperl.PL
Output:
Checking if your kit is complete...
Looks good
Writing Makefile for NetSNMP::default_store
Checking if your kit is complete...
Looks good
Writing Makefile for NetSNMP::ASN
Checking if your kit is complete...
Looks good
Writing Makefile for NetSNMP::OID
Checking if your kit is complete...
Looks good
Writing Makefile for NetSNMP::agent::default_store
Writing Makefile for NetSNMP::agent
Checking if your kit is complete...
Looks good
Writing Makefile for SNMP
Checking if your kit is complete...
Looks good
Warning: prerequisite NetSNMP::OID 5.1 not found.
Writing Makefile for NetSNMP::TrapReceiver
Writing Makefile for Bundle::NetSNMP
Warning is thrown up and if I go ahead errors are again thrown up :-( & mib2c is not working
Where things have gone wrong?? I have tried to install with every possible configure options:
./configure --enable-shared --with-perl-module
./configure --with-perl-module
But no combination seems to have worked...I don't know what to do?? I want to use mib2c
Second problem occured when:
After uninstalling Net SNMP 5.2.1.2 (make uninstall) I installed Net SNMP 5.1.3.1
if I follow the same steps as above (it doen not give the Error: make[1]: [mib2c.conf.5] Error 1 (ignored) in any step),
While installing Perl Module also:
Step 1) Executing (<in perl folder>/perl Makefile.PL) it gives no
Errors such as "Warning: prerequisite NetSNMP::OID 5.1 not found."
which it had given in Net SNMP 5.2.1.2
Step 2) make And make install commands also do not give any errors
But when I execute mib2c, it gives errors:
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
...
Cannot find module (SNMPv2-TM): At line 0 in (none)
But the Agent snmpd (agent) seems to work fine:
snmpget, snmpset, adding of MIBs, snmptranslate etc..
Mibs are strored in "/usr/local/share/snmp/mibs"
Why mib2c is not able to find all the MIBs??
Please can anybody help me!!!
Thanks in anticipation
Namit
- Newbie: Problem in installing Perl Module (Net SNMP 5.2.1.2) namit gupta