I have a agent and server, both are communicating ok. I have the official postgres template added to the server. I have another host that is connecting fine, however this host is giving me unsupported item key.
When I run zabbix_get on the server, everything returns fine
[root@zabbix ~]# zabbix_get -s hostA -p 10050 -k "pgsql.bgwriter["127.0.0.1","5432","zbx_monitor","postgres"]"
{"checkpoints_timed":31740,"checkpoints_req":11 4," checkpoint_write_time":880725336,"checkpoint_sync_ time":129344,"buffers_checkpoint":163658883072,"bu ffers_clean":274905767936,"maxwritten_clean":26391 4,"buffers_backend":1046067863552,"buffers_backe nd _fsync":0,"buffers_alloc":48555576836096}
Also, when the zabbix server log shows unsupported item key, I do not see any requests at all in the agent log, I have it at Loglevel 4. When I run zabbix_get I do see the items in the log:
Any ideas how I can debug this further, does mean the checks aren't making it ?
Zabbix Agent and Server version: 4.2.5
Code:
27942:20190820:140303.580 item "hostA:pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.DB}"]" became not supported: Unsupported item key.
[root@zabbix ~]# zabbix_get -s hostA -p 10050 -k "pgsql.bgwriter["127.0.0.1","5432","zbx_monitor","postgres"]"
{"checkpoints_timed":31740,"checkpoints_req":11 4," checkpoint_write_time":880725336,"checkpoint_sync_ time":129344,"buffers_checkpoint":163658883072,"bu ffers_clean":274905767936,"maxwritten_clean":26391 4,"buffers_backend":1046067863552,"buffers_backe nd _fsync":0,"buffers_alloc":48555576836096}
Also, when the zabbix server log shows unsupported item key, I do not see any requests at all in the agent log, I have it at Loglevel 4. When I run zabbix_get I do see the items in the log:
Code:
zabbix_agentd.log: 13949:20190820:101651.248 Requested [pgsql.bgwriter[127.0.0.1,5432,zbx_monitor,postgres]]
zabbix_agentd.log: 13949:20190820:101651.248 In zbx_popen() command:' psql -qtAX -h 127.0.0.1 -p 5432 -U zbx_monitor -d postgres -f "/var/lib/zabbix/postgresql/pgsql.bgwriter.sql"'
zabbix_agentd.log: 13949:20190820:101651.273 EXECUTE_STR() command:' psql -qtAX -h 127.0.0.1 -p 5432 -U zbx_monitor -d postgres -f "/var/lib/zabbix/postgresql/pgsql.bgwriter.sql"' len:291 cmd_result:'{"checkpoints_timed"'
Zabbix Agent and Server version: 4.2.5
Comment