Ad Widget

Collapse

Administration Scripts question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dogeoffr
    Junior Member
    • Sep 2016
    • 3

    #1

    Administration Scripts question

    Hi, sorry if this has been covered before.

    I am looking for suggestions on how to properly use the administration scripts to allow non sysadmin zabbix users to execute certain commands on different sets of hosts, for example restarting services, reboots etc.

    i enabled remote command in the agent config, which works fine for restarting services and other commands ran directly on the agent server.

    What i would like to know though, is it possible to have a script execute an ssh remote command from the server to run a script on our config manager server

    i.e. ->
    Type : Scripts
    Execute on : Zabbix server
    Commands : ssh zabbix@config-manager 'scriptXYZ.py --host={HOST.NAME} --command reboot'


    what user are the commands run as on the server side? I assume the same as the zabbix server process i did not find the documentation.


    Thanks.

    D
Working...