Ad Widget

Collapse

remote command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sadegh
    Junior Member
    • Sep 2012
    • 4

    #1

    remote command

    Hi dears
    I want check the added host,for know that have internet or no
    i build a Item with Zabbix Agent and Key of
    System.run{c:\%windir%\system32\ping 4.2.2.4,}

    and trigger for it,but cannot get data from it.
    after that i have copy of fping (for windows) to host
    and replace ping to fping
    how can i get this data?
    please help me
    thanks to you
  • mbsit
    Senior Member
    • Sep 2012
    • 130

    #2
    Why did you do that??

    Use the standard agent functionality ex.:
    Try to connect to web server:
    net.tcp.port[ip_of_internet_server,80]

    if it works, then the host has internet connection.

    Or use UserParameter in agent config file ex.:
    UserParameter=internet_ping[*],C:\%windir%\fping $1

    Bests,
    Grzegorz

    --
    Wdrożenia Zabbix - Warszawa
    Pozdrawiam
    Grzegorz Grabowski
    ____
    WdroĊĵenia, szkolenia, umowy serwisowe
    Warszawa - Polska

    Comment

    • sadegh
      Junior Member
      • Sep 2012
      • 4

      #3
      Originally posted by mbsit
      Why did you do that??

      Use the standard agent functionality ex.:
      Try to connect to web server:
      net.tcp.port[ip_of_internet_server,80]

      if it works, then the host has internet connection.

      Or use UserParameter in agent config file ex.:
      UserParameter=internet_ping[*],C:\%windir%\fping $1

      Bests,
      Grzegorz

      --
      Wdrożenia Zabbix - Warszawa
      www.mbs-it.pl
      Hi dear
      its very good
      i test net.tcp.port[ip_of_internet_server,80]
      its will run okay
      very thanks to you

      Comment

      Working...