Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25181

SMART by zabbix-agent2: infinity loop and smart.disk.discovery request timeout

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.4.18
    • Agent2 plugin (N)
    • None
    • Alma Linux 8.10

      Steps to reproduce:

      1. Install and setup smartmontools 7.1 according to instruction
      2. Add template SMART by Zabbix agent 2 to a host on Zabbix server

      Result:

      Logs on Zabbix server:

      2431821:20240905:095232.124 Zabbix agent item "smart.disk.discovery" on host "node-3-krd" failed: first network error, wait for 15 seconds                                                                       
      2431821:20240905:095247.136 resuming Zabbix agent checks on host "node-3-krd": connection restored
      2431821:20240905:095317.138 Zabbix agent item "smart.disk.discovery" on host "node-3-krd" failed: first network error, wait for 15 seconds                                                                       
      2431821:20240905:095332.152 resuming Zabbix agent checks on host "node-3-krd": connection restored
      2431821:20240905:095402.154 Zabbix agent item "smart.disk.discovery" on host "node-3-krd" failed: first network error, wait for 15 seconds 
      
      # zabbix_get -s node-3-krd -p 10050 -k smart.disk.discovery                                                                                                                                
      zabbix_get [2471880]: Timeout while executing operation
      

      host:

      # sudo -u zabbix zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t smart.disk.discovery                                                                                                 
      smart.disk.discovery                          [m|ZBX_NOTSUPPORTED] [Timeout occurred while gathering data.]  
      
      # journalctl -u zabbix-agent2 | tail -n 10
      Sep 05 11:21:45 node-3-krd sudo[1475035]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdc -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475047]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdd -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475060]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdb -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475069]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdd -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475071]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdc -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475082]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdb -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475102]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdc -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475101]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdd -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475110]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdb -d cciss,0 -j
      Sep 05 11:21:45 node-3-krd sudo[1475128]:   zabbix : PWD=/ ; USER=root ; COMMAND=/sbin/smartctl -a /dev/sdc -d cciss,0 -j
      

      dmesg:

      [Thu Sep  5 11:18:58 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:18:58 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      [Thu Sep  5 11:24:42 2024] program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
      

      Even now disable the template from the node, the spam in the log will continue indefinitely until the agent is restarted.

            aigars.kadikis Aigars Kadikis
            Turbid Илья Демьянов
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: