Ad Widget

Collapse

Anyone can success use remote command with customer script for terraform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • williewoo
    Junior Member
    • Apr 2018
    • 1

    #1

    Anyone can success use remote command with customer script for terraform

    I am using zabbix on premise, I want to use remote command and execute a terraform on a specified host
    It works for some common Linux command, but cannot execute the terraform command
    Thanks
  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    Hi, williewoo!

    Be aware that remote commands is executed by user zabbix.

    Please, take a look is there is any environment assigned to user zabbix:
    Code:
    grep zabbix /etc/passwd
    Another shot is to test you command directly from zabbix users perspective using just exact environment 'bash'
    Code:
    sudo -H -u zabbix bash -c 'your custom terraform command'
    Does the outcome is what you desired for?

    Regards,
    Aigars

    Comment

    Working...