Ad Widget

Collapse

Zabbix Variables in Key when setting up Items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AyazP
    Junior Member
    • Jan 2020
    • 5

    #1

    Zabbix Variables in Key when setting up Items

    Hi guys,

    Needed some help, I was wondering if Zabbix was ok with taking in variables when setting up a system.run but with a variable? As I wanted to add it to a template and make my life easier rather than doing it manually for all of them.

    system.run[/home/zabbix/checkssl.sh HOST.NAME] is what I wanted to run, host.name obviously being the name of the host in Zabbix. Script just returns a value of amount of days the cert is valid.

    Would this be ok or do I need to rethink this?

    Thanks

    Update: Figured it out, just put HOST.NAME in {} and it's fine.
    Last edited by AyazP; 21-01-2020, 14:20.
Working...