vulogov / zas_agent

Zabbix Agent Simulator
GNU General Public License v2.0
43 stars 16 forks source link

Able to get result of command as value using 'cmd' value type. #6

Closed alexanderzobnin closed 7 years ago

alexanderzobnin commented 7 years ago

Sometimes it's useful to get value executing a command on host. In my case, I'm trying to run zas agents in docker containers and want to get container name or id for further using in Zabbix as host name. So I want to use something like this:

[agent.hostname]
value=cmd:uname,-n

Not sure about security, so maybe you have a better solution.

vulogov commented 7 years ago

Thank you very much. As potential it may be a security issue, but not more than to extend a "real" Zabbix agent.