The "mongodb.ping" item in the MongoDB zabbix plugin is supposed to change from "1" to "0" when it cannot connect to the database. But if the database connection fails (e.g., the mongod service is stopped) *all* mongodb.xxx items (including mongodb.ping) change to "unsupported". This disables the item in Zabbix which also disables the trigger so there is no problem raised when the mongod service stops.
The zabbix server log prints this entry:
item "mongodb1:mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$M ONGO DB.PASSWORD}"]" became not supported: Timeout occurred while gathering data.
Environment: Zabbix version 7.0.5, Zabbix-plugins version 7.0.5, Ubuntu 24.04
The zabbix server log prints this entry:
item "mongodb1:mongodb.ping["{$MONGODB.CONNSTRING}","{$MONGODB.USER}","{$M ONGO DB.PASSWORD}"]" became not supported: Timeout occurred while gathering data.
Environment: Zabbix version 7.0.5, Zabbix-plugins version 7.0.5, Ubuntu 24.04
Comment