Ad Widget

Collapse

Running curl command from agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • powersoup
    Junior Member
    • Sep 2018
    • 4

    #1

    Running curl command from agent

    Hi!

    I try to run a curl command by agent, it works from bash, but not from agent, maybe because the interpreter. I got an error "no such file or directory".
    system.run[*] enabled in the agent config, if i tried with zabbix_get it works too.

    Code:
    curl --resolve test.example.com:443:192.168.1.1 -H "Host: test.example.com" https://test.example.com/health
    The reason why I use this because there is a multiple IIS server which has multiple nodes and I want to know which works or not.

    Is there any idea for this issue?

    Thanks
  • powersoup
    Junior Member
    • Sep 2018
    • 4

    #2
    Problem solved, I put two ' between system.run[] brackets, but its interesting zabbix_get and gui works different...

    Comment

    Working...