- Cacti Beginner's Guide(Second Edition)
- Thomas Urban
- 215字
- 2021-07-02 20:15:15
Time for action - installing Spine
Here we will take a deep pe into installing and configuring the Spine poller:
- As with the Cacti main files, go to http://www.cacti.net and click on Spine under the Download section. Make a note of the latest stable version.
- If not already done, create the CACTIVERSION variable and set it to the current Cacti version:
export CACTIVERSION=1.1.28
- Change directories to /tmp/ and issue the following command:
cd /tmp wget https://www.cacti.net/downloads/spine/cacti-spine-$CACTIVERSION.tar.gz
- Extract the file:
tar -xzvf cacti-spine-$CACTIVERSION.tar.gz
- Change to the newly created directory:
cd cacti-spine-$CACTIVERSION
- Prepare the directory for compilation. Please note that this step may not work on other distributions, and additional steps may be needed:
./bootstrap
- Configure the compiling environment:
./configure
- Compile Spine:
make
- Once the make command finishes, install Spine:
make install
- Now change the owner of the spine binary to root and set the sticky bit so you can use ICMP pings:
chown root:root /usr/local/spine/bin/spine chmod +s /usr/local/spine/bin/spine
- You now have Spine installed, but it needs to be configured. Therefore, copy the sample configuration file to a location where Spine will find it:
cp /usr/local/spine/etc/spine.conf.dist /etc/spine.conf
- Edit the file in vi:
vi /etc/spine.conf
- Change the database configuration to match the settings from earlier:
- Create a symbolic link in /sbin to the spine binary:
ln -s /usr/local/spine/bin/spine /sbin/spine