zabbix-tools / libzbxpgsql

Monitor PostgreSQL with Zabbix
http://cavaliercoder.com/libzbxpgsql/
Other
157 stars 64 forks source link

Incorrect example in documentation #156

Open Splarv opened 4 years ago

Splarv commented 4 years ago

http://cavaliercoder.com/libzbxpgsql/documentation/reference/server/#pg-backends-count

pg.backends.count superuser

Returns the number of active backend processes for remote connections.

Type: Numeric (unsigned)

Parameters:

connection string - libpq compatible keyword/value connection string connection database - connection database (default: username from connection string) database - database name or OID (may be different to the connected database) user - user name or OID client - client hostname or IP address (hostname only supported on PostgreSQL v9.1 and above) waiting - processes waiting on a lock true - only return waiting processes false - only return processes that are not waiting default - no filtering based on waiting status Example:

pg.backends.count[,,mydb,dbuser,myapp,::1,,active]

According to the doc only 6 parameters s accepted, but in the example is 8 parameters. Parameters myapp and active is not documented and even absent in the source.