Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

pg_db_size

Rating
1 vote
Favoured:
0
Hits
95449
Files:
FileDescription
pg_db_size.tar.gzMeasure size of any Postgres database
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
The pg_db_size plugin checks for the on disk size of any given PostgreSQL database.
It creates a view in the database the first time it's run. All consecutive times it will return the size.

You can set the size factor to KB, MB or GB so that you can get the output you'd like.

It requires the pqxx library (PostgreSQL's C++ wrapper classes) and ofcourse the PostgreSQL client library the libpq.