Ad Widget

Collapse

Bad handling of double dollar ($$) in user parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dsteinkopf
    Junior Member
    • Jul 2018
    • 9

    #1

    Bad handling of double dollar ($$) in user parameters

    Hello,

    I already tried a bug report, but is not yet sure if it really is a bug.
    See https://support.zabbix.com/browse/ZBX-18568

    To be sure that it isn't a problem caused by my installation I began from scratch and did the following steps:
    1. use a fresh clean minimal installation of ubuntu 18.04
    2. apt-get update ; apt-get upgrade
    3. wget https://repo.zabbix.com/zabbix/5.2/u...u18.04_all.deb
    4. dpkg -i zabbix-release_5.2-1+ubuntu18.04_all.deb
    5. apt install zabbix-agent2
    6. vi /etc/zabbix/zabbix_agent2.d/userparameter_diskstats.conf
      • -> enter
        • UserParameter=custom.vfs.dev.read.merged
        • ,awk '{print $$1}' /sys/class/block/$1/stat
    7. zabbix_agent2 -t "custom.vfs.dev.read.merged[sda]"
      • -> custom.vfs.dev.read.merged[sda] [s| 6197 3085 672544 4322 1312 1458 636930 2456 0 6860 3260 0 0 0 0]
    Is any one able to reproduce this behaviour?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Yes, I was able to reproduce it. Added a comment in the ticket.

    Comment

    Working...