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.
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.