How to do it...

Assume that we have a monitor server named mon1 and a PostgreSQL server named pg1. Follow these steps on both servers unless notified otherwise:

  1. 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/
  1. Next, build and install the actual software with these commands:
        ./configure --sysconfdir=/etc/collectd
        make
        sudo make install
  1. Copy the init/collectd initialization script from the source code provided with this chapter, into the /etc/init.d directory on the server.
  2. Change the copied initialization script to make it executable with this command:
        sudo chmod a+x /etc/init.d/collectd

 

  1. In the /etc/collectd directory, create a file named collectd.conf ...

Get PostgreSQL High Availability Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.