[Nagiosplug-help] Problems compiling snmppd for use with nagios
nagios at grep.no
nagios at grep.no
Tue Mar 11 05:20:02 CET 2003
Hi!
I dont know if anyone of you use the snmppd with nagios, but I'll try
to describe my problem anyway:
"Snmppd is SNMP proxy daemon.
It loads MIBs upon startup, listens on TCP socket for SNMP GET requests,
polls specified host and returns value to caller process."
[readme URI: http://slava.local.nsys.by/projects/snmppd/README ]
On the machine running nagios I want to use this to allow greater
performance of the snmp-based checks on a huge number of snmp-
enabled networked items.
While compiling net-snmp works fine, I get lots of errors when trying
to compile snmppd. First of it complains that it can not find net-snmp:
"configure: error: can not find SNMP header files under"
then it breaks off, and thats all it says.
when i try to use ./configure --with-snmp=/path/to/net-snmp I get the
following:
"configure: error: can not find SNMP header files under /path/to/net-snmp"
So I try again with a bit more specific path:
./configure --with-snmp=/path/to/net-snmp/include/net-snmp/library
This now works, and the snmppd configures nicely, and we're ready for a
'make'.
Running 'make' now returns this:
In file included from snmppd_snmp.c:1:
common.h:47: ucd-snmp-config.h: No such file or directory
common.h:48: ucd-snmp-includes.h: No such file or directory
make[1]: *** [snmppd_snmp.o] Error 1
make[1]: Leaving directory `/usr/local/src/snmppd-0.4.2/snmppd'
make: *** [all-recursive] Error 1
I further tried to patch common.h with the correct paths to
ucd-snmp-config.h and ucd-snmp-includes.h but this does not solve
the problem as it now fails with yet another error:
gcc -I/path/to/net-snmp/include/net-snmp/library -g -O2
-L/path/to/net-snmp/include/net-snmp/library/lib -o snmppd
snmppd_snmp.o snmppd.o snmppd_util.o control.o queue.o threads.o
splitter.o -lnsl -lresolv -lsnmp
/usr/i386-slackware-linux/bin/ld: cannot find -lsnmp
collect2: ld returned 1 exit status
make[1]: *** [snmppd] Error 1
make[1]: Leaving directory `/usr/local/src/snmppd-0.4.2/snmppd'
make: *** [all-recursive] Error 1
I also tried to add all the include-paths to /etc/ld.so.conf, without
that helping any more either.
On a final notice: I run slackware linux 8.1 on the machine and I
have never had such dificulties with any program as with this,
I do know this may be a bit offtopic, but as I have no where else
to turn (I have allready asked friends, coworkers & even on IRC)
I ask you to help me with any input you may have, you may answer
either to the list or to me directly. on this email-adress.
--
Sincerly,
Anders K. Hanssen
More information about the Help
mailing list