Ad Widget

Collapse

LLD create item prototypes advice

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JacobDGriffin
    Junior Member
    • Dec 2021
    • 1

    #1

    LLD create item prototypes advice

    Hi guys,
    I need create custom LLD, but I have some mistakes somewhere I cant find.

    In my /etc/zabbix/zabbix_agentd.d/userparameter_cert.conf I have:
    UserParameter=certinfo.discovery,/usr/local/bin.sh

    Output from, /usr/local/bin.sh is json:
    {
    "data":[
    { "{#CERT}" : "/path/to/cert/1"},{"{#CERT}":/path/to/cert/2"}]
    }

    In Discovery rule I have key: certinfo.discovery
    In Item Prototypes I have key: cert.epoch["{#CERT}"]

    I am trying to feed back the path of the file to another script and extract a epoch from the cert but keep getting Character "{" is not allowed

    What I doing wrong?
    Thank you.
Working...