How to do it...

For the purposes of this recipe, our database has a local hostname of pg-1, and the monitor server is named monitor-server. Follow these steps to use check_mk to create and configure the host and service monitors for our PostgreSQL server:

  1. Install check_mk according to the comprehensive instructions at this URL:https://mathias-kettner.com/checkmk_manual_install.html
  2. Navigate to the monitor server in a web browser to the check_mk URL: http://monitor-server/check_mk
  3. Enter nagiosadmin as the username and the password created during the installation of Nagios in the Installing and configuring Nagios recipe.
  4. Click on Hosts in the WATO - Configuration segment of the left sidebar.
  5. Click on the Create new folder icon.
  6. Name the folder ...

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.