Ad Widget

Collapse

ZBX indicator is disabled in host with active checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aranelofdoriath
    Junior Member
    • Aug 2020
    • 3

    #1

    ZBX indicator is disabled in host with active checks

    Hi,

    I have zabbix server (1.2.3.4) with configured autoregistration action.
    Also I have one instance with zabbix agent:

    Code:
    LogFile=/tmp/zabbix_agentd.log
    DebugLevel=3
    StartAgents=0
    ServerActive=1.2.3.4:10051
    EnableRemoteCommands=1
    LogRemoteCommands=1
    HostnameItem=system.hostname
    HostMetadata=asdasd
    PidFile=/run/zabbix/zabbix_agentd.pid
    Agent hostname equals hostname in Zabbix frontend and equals value in agent log.
    When i start zabbix agent in this instance, i got in server logs:
    Code:
     15072:20200807:114442.610 cannot send list of active checks to "1.2.3.4": host [zabbixagent.compute.internal] not found
    This error is no longer appears in server logs even after zabbix agent restarts , so, as i understand, it shows only when host config is not created in Zabbix yet.
    Zabbix agent logs in this time:

    Code:
    Starting Zabbix Agent [zabbixagent.compute.internal]. Zabbix 5.0.2 (revision 352ca05870).
     **** Enabled features ****
     IPv6 support: NO
     TLS support: NO
     **************************
     using configuration file: /etc/zabbix/zabbix_agentd.conf
     agent #0 started [main process]
     agent #2 started [active checks #1]
     agent #1 started [collector]
    I can see the graphs in Monitoring - Hosts - zabbixagent.compute.internal - Graphs.
    SELinux in agent instance is disabled, nmap to zabbix server shows both 10050 and 10051 ports are open.
    "Template OS Linux by Zabbix agent active" is already applied to the host.
    zabbix_agentd (daemon) (Zabbix) 5.0.2
    zabbix_server (Zabbix) 5.0.2


    My question is: why ZBX indicator is not green? It's just grey.
    Last edited by aranelofdoriath; 07-08-2020, 14:37.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Because you don't read the documentation! :-)

    Comment


    • LCC
      LCC commented
      Editing a comment
      You seem to say this a lot when people ask this very legitimate question. It's not helpful. The documentation does say that the passive agent is required, but most of us who have come to this tool have come here to get a tool that can show us agent status instantly by seeing "all greens"... having a pile of hosts in "Unknown" status is useless. If the active status is a supported feature then it should be included in the "Available" status .... simple as that. So, please either offer a solution, state the reason why it is not available (or possible) or refrain from spamming us with your comments. Thank you.

    • Hamardaban
      Hamardaban commented
      Editing a comment
      I'm not a zabbix developer! And the forum is not a place to make requests to the company that gave you the system for free. Something not to like? Write to support and pay the money. I just think that it is stupid to require an icon with the name "PASSIVE agent state" to reflect the state of something else. Yes - I also don't like it very much and I made https://www.zabbix.com/forum/zabbix-...tus-of-a-hosts for myself and all those who are not lazy. And if you think about it, then looking at the icons is a waste of time. You need to use triggers and alerts.
  • aranelofdoriath
    Junior Member
    • Aug 2020
    • 3

    #3
    Originally posted by Hamardaban
    Because you don't read the documentation! :-)
    Already read docs after my first post went to the moderation >_>
    If somebody else faced the same "issue" - zabbix agents with active checks only don't turn ZBX indicator to green, it always grey.

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #4
      Read it again!
      https://www.zabbix.com/documentation...t_availability

      Zabbix server sets the host availability icon to gray (unknown status) for the corresponding agent interface (Zabbix, SNMP, IPMI, JMX) if:
      • there are no enabled items on the interface (they were removed or disabled);
      • there are only active Zabbix agent items;
      • host is disabled;
      • host is set to be monitored by proxy, a different proxy or by server if it was monitored by proxy;
      • host is monitored by a proxy that appears to be offline (no updates received from the proxy during the maximum heartbeat interval - 1 hour).

      Setting host availability to unknown is done after server configuration cache synchronization. Restoring host availability (available/unavailable) on hosts monitored by proxies is done after proxy configuration cache synchronization.

      Comment

      • aranelofdoriath
        Junior Member
        • Aug 2020
        • 3

        #5
        Originally posted by Hamardaban
        Hmm, I wrote the same, isn't it? Active checks only -> zbx indicator always grey.

        Comment


        • Hamardaban
          Hamardaban commented
          Editing a comment
          It's okay! I got a little excited because this is the most common question for a beginner.
      • LCC
        Junior Member
        • Mar 2021
        • 2

        #6
        I never said you were a developer but the ICMP icon is a step in the right direction towards positively helping people. Instead of your constant beratement of people who ask, why not explain that it's not supported but that you have a partial solution? Having said that, two points: One: using ICMP does not solve the issue for anyone using active agents behind firewalls unless the firewall rules are changed (which is a bad thing for this purpose); Two: the point that people are trying to make is that the icon labelled "ZBX" (not Passive ZBX) *should* display agent status regardless if the agent is passive or active.

        Your assertion that " looking at the icons is a waste of time" is absurd. Maybe for you it is, but to a lot of people visual clues are very important first indicators of problems or provide a very fast way to see status. I worked in UI design and development for over 20 years BTW.

        With regard to a company giving something for free.... nothing is for free. They are offering it for free so that one buys additional services (presumably). With this MASSIVE design flaw I'm deleting the entire VM appliance today and moving on... no future money for them from me because of such a simple design flaw ... "unknown"... LOL!

        Finally, to call people "lazy" just because they don't operate like you is childish. Three hours before I posted my requests for help on this topic I literally never heard of Zabbix... within three hours I had the appliance running, auto discovery running, local and WAN servers being monitored, alerts setup and more... lazy... ha ha.

        Comment

        • Hamardaban
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • May 2019
          • 2713

          #7
          Have you talked to yourself? Feeling better?
          If you don't like the system - don't use it.
          If you use it - don't grumble.
          If you don't know how to use it - read the documentation.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #8
            Vote it!
            ZBXNEXT-5088 : Set Agent icon color to green on getting "active" data

            Comment


            • LCC
              LCC commented
              Editing a comment
              Already did
          • boatcoder
            Junior Member
            • Jul 2022
            • 9

            #9
            ZBX is also disabled if you have 2 network interfaces to the agent:
            ipv6 and ipv4. Removing the ipv4 interface turns it green since ipv6 is the default. This is a deficiency in my opinion. Zabbix should either check both or be happy with the default but it turns ZBX grey if you have them both in there.....

            Comment

            Working...