Hello,
I want to monitor the dead tuples on all tables on the postgresql server, i have to do it with the client because the zabbix server don't have the vpn connection.
My question is how to store the name of the table and the number of the dead tuples. At now i can get the data with the SQL:
SELECT relname, n_dead_tup
FROM pg_stat_user_tables
So i can read the 2 columns and send the values to the zabbix server but how to store that two values? I know how to store one value but not how to store a pair of values.
Thank you.
I want to monitor the dead tuples on all tables on the postgresql server, i have to do it with the client because the zabbix server don't have the vpn connection.
My question is how to store the name of the table and the number of the dead tuples. At now i can get the data with the SQL:
SELECT relname, n_dead_tup
FROM pg_stat_user_tables
So i can read the 2 columns and send the values to the zabbix server but how to store that two values? I know how to store one value but not how to store a pair of values.
Thank you.
Comment