Ad Widget

Collapse

MongoDB plugin changes ping item to unsupported instead of 0 when connection fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • louciano
    Junior Member
    • Nov 2024
    • 2

    #1

    MongoDB plugin changes ping item to unsupported instead of 0 when connection fails

    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
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    It would be better to report it here https://support.zabbix.com/projects/ZBX/issues

    Comment

    • louciano
      Junior Member
      • Nov 2024
      • 2

      #3
      The issue was caused by the TIMEOUT in the zabbix agent configuration being larger than the item timeout in Zabbix configuration. Increasing the item timeout in Zabbix fixed the issue.

      Comment

      Working...