Ad Widget

Collapse

system.run ( ping ) is not running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbuyukkarakas
    Member
    • Aug 2014
    • 49

    #1

    system.run ( ping ) is not running

    Hello all,

    I would like to use zabbix agent system.run function to ping or curl some external addresses.

    like : zabbix_get -s 10.8.7.100 -p 10050 -k 'system.run[ping www.cnn.com]' or zabbix_get -s 10.8.9.143 -p 10050 -k 'system.run[curl www.cnn.com 80]'

    zabbix_get -s 10.8.7.100 -p 10050 -k 'system.run[ping cnn.com]'
    ZBX_NOTSUPPORTED: Timeout while executing a shell script.

    First, system.run[ping] is never running. Neither at Linux or Windows.
    Second, system.run[curl] is ok at Linux. But I couldnt found similar utiliy for Windows.

    I changed timeout value to the limit but it's still the same problem.

    Is it poss
    I believe its a usefull feature for measuring some connectivity problems. Anybody can help to solve this please ?

    Thank you.
    Mehmet
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you use system.run[] to ping on Linux, try specifying the number of times. If you do not specify the number of times, the ping command will continue to check many times.

    ex.
    zabbix_get -s 10.8.7.100 -p 10050 -k 'system.run[ping -c 2 cnn.com]'

    Comment


    • mbuyukkarakas
      mbuyukkarakas commented
      Editing a comment
      Thank you Atsushi. Actually this is not what I want to achive. The problem is that Zabbix agent is never running this command for network related commands at Windows. Maybe this is a basic path problem or something else. I dont know yet.
Working...