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

ERROR: cannot add user parameter

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 2.4.7
    • Agent (G)
    • None
    • Debian stretch

      zabbix_agentd.conf has default include:

      Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf

      I have file vfs.fs.ro.conf in zabbix_agentd.conf.d with one line:

      UserParameter=vfs.fs.ro[*],if [ -z `touch $1/zabbix_filesystem_check 2>&1 | grep "Read-only"` ]; then echo 0; else echo 1; fi && [ -e $1/zabbix_filesystem_check ] && rm $1/zabbix_filesystem_check;

      Zabbix agent fails to start with:

      "ERROR: cannot add user parameter"

      When I rename vfs.fs.ro.conf to vfs.fs.ro or vfs.fs.ro.conf.bak or any other name, zabbix agent starts and correctly reads this file, I check this with:

      zabbix_get -s server -k vfs.fs.ro

            Unassigned Unassigned
            messiah Eugene
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: