Ad Widget

Collapse

"failed: first network error" when check fails to complete

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duncan9562
    Member
    • Jan 2017
    • 46

    #1

    "failed: first network error" when check fails to complete

    Hi guys,

    I have a custom item set up, which calls a script on the host being monitored.

    This has been working fine, and have tested with zabbix_agentd -t.

    I am now seeing log entries on the proxies:-

    1642:20170731:093704.763 Zabbix agent item "net.check.private.ips" on host "host1" failed: first network error, wait for 15 seconds
    1643:20170731:093719.905 resuming Zabbix agent checks on host "host1": connection restored
    1645:20170731:093723.923 Zabbix agent item "net.check.private.ips" on host "host1" failed: first network error, wait for 15 seconds
    1643:20170731:093739.016 resuming Zabbix agent checks on host "host1": connection restored

    All other checks on that host work absolutely fine, however Zabbix is reporting that due to a network failure that one check (out of about 30) is down. Zabbix also reports that it loses connectivity to the agent, then a few seconds later the "connection restored" message is displayed.

    The only thing I have noticed so far is that the script is taking a little longer than usual, but I have extended the "Timeout=" value in the agent config to 10 seconds. Unfortunately this hasn't helped.

    Has anyone seen this before?
  • Starko
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2012
    • 93

    #2
    I have exactly the same error on Windows Hosts, where I monitor Veeam with a PowerShell Script.
    The scrip is called via:
    Code:
    UserParameter=vbr[*],%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -nologo -command "& '%PROGRAMFILES%\Zabbix\UserParameter\vbr1.0.4.ps1"' "$1" "$2"
    If I test the script via
    Code:
    zabbix_get -s 192.168.24.17 -k vbr[VmCount,287e9538-6d48-4654-8cda-5668fd131e78]
    for example, it works every single time. Takes about 8-14 seconds, but Timeout is set to 30 on Agent and Proxy.
    Did you ever found a solution?

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      If zabbix agent is using active agent setup (ServerActive instead Server) it will not be possible to use zabbix_get command because this command is for testing remotely passive items.
      Testing active item is possible only locally using "zabbix_agentt -t <key>" command.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • Starko
        Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Aug 2012
        • 93

        #4
        All I wrote is with passive checks. I don't use active checks.

        Comment

        Working...