3

I have a separate servers running with postgres and Nagios. I want to use "psql_replication_check.pl" with nagios to monitor the postgres replication status. This check script requires DBD::Pg module to connect to database. Installation of DBD::Pg asking for the path of pg_config file.

#perl Makefile.PL 
Configuring DBD::Pg 2.17.1
Path to pg_config? 

I don't have permissions to install postgres on Nagios machine. Is there anyone who has fixed this issue before.

I have CentOS 5.4 on both systems.

brian d foy
  • 129,424
  • 31
  • 207
  • 592
Space
  • 7,049
  • 6
  • 49
  • 68

1 Answers1

9

What you need in order to install DBD::Pg isn't all of PostgreSQL, but only the C client library, libpq. The package containing the header files for that will also include the pg_config program. On most Debian-based systems, that package is called libpq-dev - other vendors will have other names for it.

rafl
  • 11,980
  • 2
  • 55
  • 77
  • Thanks Rafl: may i request you to please advise where i can get this for linux 32 bit. – Space Oct 20 '10 at 13:47
  • 3
    How about from the vendor of your Linux distribution? – rafl Oct 20 '10 at 14:19
  • For Centos or Fedora see http://serverfault.com/questions/316703/how-to-install-libpq-dev-on-centos-5-5, and for me this worked on Fedora 10: `yum install postgresql-devel` – SPRBRN Mar 04 '15 at 10:14