diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index e24e62958b..460d813ca7 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -1643,10 +1643,21 @@ extend postgres /etc/snmp/postgres 6. Verify the path to check_postgres.pl in /etc/snmp/postgres is correct. -7. If you wish it to ignore the database postgres for totalling up the -stats, set ignorePG to 1(the default) in /etc/snmp/postgres. If you -are using netdata or the like, you may wish to set this or otherwise -that total will be very skewed on systems with light or moderate usage. +7. (Optional) If you wish to change the DB username (default: pgsql), enable +the postgres DB in totalling (e.g. set ignorePG to 0, default: 1), or set a +hostname for check_postgres.pl to connect to (default: the Unix Socket postgresql +is running on), then create the file /etc/snmp/postgres.config with the following +contents (note that not all of them need be defined, just whichever you'd like to +change): +``` +DBuser=monitoring +ignorePG=0 +DBhost=localhost +``` + +Note that if you are using netdata or the like, you may wish to set ignorePG +to 1 or otherwise that total will be very skewed on systems with light or +moderate usage. The application should be auto-discovered as described at the top of the page. If it is not, please follow the steps set out under `SNMP