The Task
After some days of testing I finally found out a relative simple solution to run a SNMP-Daemon on my IPCop-Router.
Package management under Mac OS X
First of all, I had to deal with Debian-packages. This posed some problems to me, because I don’t have any linux box here except the one running IPCop, which hasn’t package-managers installed. After I dived into manuals for dpkg i was able to extract the files on my PowerMac running Mac OS X. Before you can execute the shell command below, you need to download and install Fink. After that, continue:
dpkg-deb -x <package>.deb <destination-dir>
Installation
You now do have the required files on your workstation, but yet they need to be put on the IPCop-box. Make use of an SFTP-Client, which requires the SSH-Service enabled on the router. With a SSH-connection to the box, I checked the error messages which occured upon start of the snmpd and then went out to look for the additional files required. The ’search file within packages‘-Function of some package-sites helped me a lot!
Packages needed
These 3 Debian-Packages are essential for your success. Download the .debs and extract them to a single folder with the command mentioned above:
- snmpd (4.2.3-2)
- libsnmp4.2 (= 4.2.3-2)
- libwrap0
File locations
I had to copy all files over to IPCop manually, therefore I made this list to monitor all the files necessary.
/lib/libwrap.so.0 /usr/lib/libucdagent-0.4.2.so /usr/lib/libucdmibs-0.4.2.so /usr/lib/libsnmp-0.4.2.so /usr/sbin/snmpd
Caveats
Don’t try to copy snmpd.conf over to the box. In my case, it prevented snmpd to act the way it should. I have no idea where the problem lied, but after deleting snmpd.conf, everything worked fine. I hope this saves you a lot of headaches.