3.1. Compiling and Installing RRDTool
Note: If a usable version of RRDTool is already installed on your system, you can skip this section.
It might be necessary to install the recommended version of RRDTool but leave another version in place. This can be achieved quite easily by building RRDTool with a non-standard “Prefix”. Provided the user has permission to write into the prefix directory, it does not even have to be installed by root.
--prefix=$RRD_PREFIX --enable-shared \
builds and installs RRDTool into $RRD_PREFIX.
3.2. Compiling and Installing SNMP4Nagios
is sufficient if all headers and libraries are found in standard directories.
Apart from the usual configure options there are a few options that can be used to customize the build:
Throughout this manual pathes will be referenced by the configure options used to set them. $BINDIR is set with “--bindir”, $RRDDIR is set with “--with-rrddir” and so on.
For the full list of compile time options, run “./configure --help”.
3.2.1. Compilation Problems
Currently those compilation problems are known:
18.104.22.168. “checking for snmp_sess_init... no.”
Linking with Net-SNMP failed.
To compile SNMP4Nagios you need (the development versions of) Net-SNMP and all the libraries your version of Net-SNMP depends on. You can find out what those libraries are by running
nagios@host> net-snmp-config –libs
This returns the linker flags Net-SNMP requires.
Note: On some systems these files are not included in the “normal” package of a library but only in the “-devel”-version thereof.
As of now, Net-SNMP is known to possibly depend on these libraries:
22.214.171.124. It still does not compile
Please send a mail to the SNMP4Nagios mailing list containing
|Copyright © 2006, 2007 Peter Gritsch|