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

Incorrect data from user parameter after server boot

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 3.2.3
    • Agent (G)
    • None

      After a server restarts, we receive incorrect data from a user parameter check. Restarting the agent fixes the issue. This particular check grabs a cksum of the mtab file to identify volume changes.

      Setting from agent config:
      UserParameter=shell.check_mtab,/bin/cat /etc/mtab | /usr/bin/sort | /usr/bin/cksum | /usr/bin/cut -f 1 -d " "

      After reboot on client:
      sudo -u zabbix /bin/sh -c "/bin/cat /etc/mtab | /usr/bin/sort | /usr/bin/cksum | /usr/bin/cut -f 1 -d \" \""
      1618330171

      From server:
      $ zabbix_get -s server -k shell.check_mtab
      259242569

      After restarting agent:
      zabbix_get -s server -k shell.check_mtab
      1618330171

      strace with incorrect value:
      http://pastebin.com/ze05tww1

            Unassigned Unassigned
            brianchy Brian Chand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: