Item referencing UserParameter in agent config crashes zabbix_server

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Major
    • None
    • Affects Version/s: 1.8.2
    • Component/s: Server (S)
    • None
    • Environment:
      Zabbix 1.8.2 / CentOS 5.3 / httpd 2.2.15 / PHP 5.3.2 / MySQL 5.1.42

      Zabbix agent config changes
      ---------------------------------------

            1. Privileged file cksum
              UserParameter=sudo.cksum[*],sudo /usr/bin/cksum $1 | awk ' {print $ 1}

              '

      Changes to /etc/sudoers
      -------------------------------

      1. Allow zabbix cksum of privileged files
        zabbix ALL=(ALL) NOPASSWD:/usr/bin/cksum

      Items created in Zabbix Server
      -----------------------------------------
      Template_Linux_Essential:Checksum of /root/.ssh/authorized_keys
      sudo.cksum[/root/.ssh/authorized_keys]
      Zabbix agent (active)

      Template_Linux_Essential:Checksum of /etc/sudoers
      sudo.cksum[/etc/sudoers]
      Zabbix agent (active)

      --------------------------
      When these items are created in the template but don't exist in the Zabbix agent config, the status of the items is automatically changed to "Not supported"

      On some of our servers, this file "/root/.ssh/authorized_keys" does not exist. When the item status is changed for one of these hosts to "Active" in the Zabbix Admin, the next time the agent runs it crashes the server.

      Additionally, the crash may occur when the agent is enabled with the item config, but the item is still marked as "Not supported" on the server.

      Definitely the zabbix_server process is having trouble when this item fails, and maybe also changing an item from Not supported to active.

            Assignee:
            Unassigned
            Reporter:
            Jason Gerry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: