Ad Widget

Collapse

Action-Custom Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeangabin03
    Junior Member
    • Mar 2017
    • 6

    #1

    Action-Custom Script

    Hi,

    Someone already try to use the action on Zabbix ?
    How to use this correctly for custom script?


    1.On myconfig file, the enable remote command is at 1.
    2.I create an action with a specific Condition.
    The operation should launch a batch file on the C:\
    My command :System.run[C:\test.bat]

    3. Nothing happen .... Why , I dont understand ....


    Regards

    Steve
  • ovas
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2017
    • 138

    #2
    Hello Steve!

    Is the host connected to server directly or via proxy by any chance? Remote command execution for hosts behind proxy is impossible as per the documentation.

    Your command should contain exact command statement, for example, ping www.zabbix.com. At least this is how I understand the documentation description. You can actually try to execute the bat via a command like cd /d "C:\" & test.bat

    Overall, a good portion of info as well as Windows-specific example in this documentation article: https://www.zabbix.com/documentation...remote_command

    Comment

    • jeangabin03
      Junior Member
      • Mar 2017
      • 6

      #3
      Thanks Ovas for your Help.

      I try your command and the script seems to run

      Comment

      Working...