Ad Widget

Collapse

Some Question About Zabbix Remote Commands

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BlackCrystal
    Junior Member
    • Dec 2018
    • 28

    #1

    Some Question About Zabbix Remote Commands

    i was reading zabbix docs about remote commands: https://www.zabbix.com/documentation...remote_command
    it says that : Those remote commands that are executed on Zabbix agent (custom scripts) must be first enabled in the respective zabbix_agentd.conf.
    what sould i enable in zabbix_agentd.conf? is it talking about EnableRemoteCommands or i should add the command like a user parameter?
    it says that: you should enter command in sudoers file example: zabbix ALL=NOPASSWD: /etc/init.d/apache restart
    if i want to run a script by zabbix agent should add that too? like zabbix ALL=NOPASSWD: /data/new/script


    can i pass macros to the Action? can i use a remote command like: rm /data/new/{#PARTITION_NAME}

    how can i use this Exit code checking?
Working...