|
3. Compiling3.1. Compiling and Installing RRDToolNote: 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.
nagios@host> ./configure
--prefix=$RRD_PREFIX --enable-shared \ builds and installs RRDTool into $RRD_PREFIX. 3.2. Compiling and Installing SNMP4NagiosAs of version 0.2 building SNMP4Nagios is based on GNU automake/autoconf.
nagios@host> ./configure
\ 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 ProblemsCurrently those compilation problems are known: 3.2.1.1. “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:
3.2.1.2. It still does not compilePlease send a mail to the SNMP4Nagios mailing list containing
|
||||||||||||||||||||||||||||||||||||||||
Copyright © 2006, 2007 Peter Gritsch |