zabbix-tools / libzbxpgsql

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

Question: Instalation libzbxpgsql on zabbix sererv/proxy #133

Closed bilbolodz closed 5 years ago

bilbolodz commented 5 years ago

Is it possible to install (and use) libzbxpgsql directly on server or proxy? I've network connectivity between proxy and progress hosts and my "ideal solution" would be "one install of libzbxpgsql on host or proxy" and monitor multiple postgres hosts but I didn't found in documentation is it possible. I've configured such setup (module loaded on zabbix host, .pg_pass and config file put in right place, template imported, macro created) but I've got an error ""Test2:pg.version[{$PG_CONN},{$PG_DB}]" became not supported: ZBX_NOTSUPPORTED"..... Zabbix version 4.0.2 module compiled from sources.

i-ky commented 5 years ago

module loaded on zabbix host

Do you mean agent or server/proxy?

It is possible to use module on server/proxy, all you need to do is edit appropriate configuration file and change item type from Zabbix agent to Simple check.

bilbolodz commented 5 years ago

"Simple check" was "the magic key". Thank you now it's working! I think it could be a good idea to put it in documentation.

i-ky commented 5 years ago

This information is available in Zabbix documentation. If you know the place where this information fits (and where you were looking for it) within the module documentation feel free to create a pull request!