Assume that we have a monitor server named mon1 and a PostgreSQL server named pg1. Follow these steps on both servers unless notified otherwise:
- Use these commands to extract the collectd source and enter the source directory:
tar -xzf collectd-5.6.1.tar.gz cd collectd-5.6.1/
- Next, build and install the actual software with these commands:
./configure --sysconfdir=/etc/collectd make sudo make install
- Copy the init/collectd initialization script from the source code provided with this chapter, into the /etc/init.d directory on the server.
- Change the copied initialization script to make it executable with this command:
sudo chmod a+x /etc/init.d/collectd
- In the /etc/collectd directory, create a file named collectd.conf ...