Hi
I'm fighting like mad for days now, trying to get my Zabbix to monitor its own postegreSQL/TimeScaleDB server's Database.
I've intalled the agent, installed the plugin in
/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql
dpkg -l | grep zabbix-agent2-plugin-postgresql
ii zabbix-agent2-plugin-postgresql 1:7.0.4-1+debian12 amd64 Zabbix Agent2 plugin for monitoring PostgreSQL installations
I got the proper rights (-rwxr-xr-x 1 root root 8884312 24 sept. 10:23 /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql)
The plugin's conf is in
/etc/zabbix/zabbix_agent2.d/plugins.d/postgresql.conf
I've added
Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf
to the agent's conf
And I know that I have proper access to my DB
psql "host=localhost port=5432 dbname=zabbix user=zbx_monitor password=myPSW" -c "SELECT date_trunc('second', current_timestamp - pg_postmaster_start_time()) as uptime;"
I get
uptime----------------1 day 02:10:46
but for the life of me I cannot get 1 itemin Zabbix concerning my DB
every item is red flagged , state is "not supported" and i get "Unknown metric pgsql.xxx" everywhere
I spent so much time checking and rechecking everything that I'm turing crazy
And yes, I found https://www.zabbix.com/forum/zabbix-...sql-monitoring, and https://www.zabbix.com/integrations/...tgresql_agent2 and https://support.zabbix.com/browse/ZBX-21894
but NOTHING moved anything
Anyone could help ??
I'm fighting like mad for days now, trying to get my Zabbix to monitor its own postegreSQL/TimeScaleDB server's Database.
I've intalled the agent, installed the plugin in
/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql
dpkg -l | grep zabbix-agent2-plugin-postgresql
ii zabbix-agent2-plugin-postgresql 1:7.0.4-1+debian12 amd64 Zabbix Agent2 plugin for monitoring PostgreSQL installations
I got the proper rights (-rwxr-xr-x 1 root root 8884312 24 sept. 10:23 /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql)
The plugin's conf is in
/etc/zabbix/zabbix_agent2.d/plugins.d/postgresql.conf
I've added
Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf
to the agent's conf
And I know that I have proper access to my DB
psql "host=localhost port=5432 dbname=zabbix user=zbx_monitor password=myPSW" -c "SELECT date_trunc('second', current_timestamp - pg_postmaster_start_time()) as uptime;"
I get
uptime----------------1 day 02:10:46
but for the life of me I cannot get 1 itemin Zabbix concerning my DB
every item is red flagged , state is "not supported" and i get "Unknown metric pgsql.xxx" everywhere
I spent so much time checking and rechecking everything that I'm turing crazy
And yes, I found https://www.zabbix.com/forum/zabbix-...sql-monitoring, and https://www.zabbix.com/integrations/...tgresql_agent2 and https://support.zabbix.com/browse/ZBX-21894
but NOTHING moved anything
Anyone could help ??
Comment