Ad Widget

Collapse

Zabbix agent grey

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xs4it
    Junior Member
    • May 2019
    • 4

    #1

    Zabbix agent grey

    Hello, I'm relatively new to Zabbix. I'v installed the server and a couple of agents. The agents all have the same zabbix_agentd.conf file. Some agents (Of the server and the MySQL server) have a green ZBX icon. The others are grey. All installations are done via an ansible playbook and all servers are CentOS 8 vm's installed from a standard template. Running the agent under zabbix user or under root makes no difference. Firewall port 10050 on all vm's is open.

    /etc/zabbix/zabbix_agentd.conf:

    AllowRoot=1
    HostMetadata=Linux <KEY>
    HostnameItem=system.hostname
    Include=/etc/zabbix/zabbix_agentd.d/*.conf
    LogFileSize=0
    LogFile=/var/log/zabbix/zabbix_agentd.log
    PidFile=/var/run/zabbix/zabbix_agentd.pid
    ServerActive=192.168.178.133:10051
    Server=sh30srv33.streur.dbnl

    What else can I do.
    Last edited by xs4it; 07-05-2020, 17:31.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Why the different method of specifying Server vs. ServerActive? Also, are you using both passive and active items with these clients, as they're configured within Zabbix on the server?

    Does using 'zabbix_get' from your Zabbix server allow you to retrieve items from one of the agents that isn't showing green?

    If you increase the log level on one of the clients, do you see connections from your Zabbix server taking place?

    Comment

    • xs4it
      Junior Member
      • May 2019
      • 4

      #3
      Hello Tim,

      1. I would like to see how the agents are coming in without having to define them in my Zabbix Server, as this would be needed for big environments. This would be the advantage of using Serveractive isn't it. right?
      2. I have defined a discovery for the Zabbix Agents (Configuration -> Discovery)
      3. Increasing the loglevel on one of the servers with the ZBX on grey....... -> LogLevel set to 4:

      BTW: 192.168.178.133 is the Zabbix Server.

      /var/log/zabbix/zabbix_agentd.log tail shows:

      127145:20200508:094910.375 for key [vm.memory.size[total]] received value [4114595840]
      127145:20200508:094910.375 In process_value() key:'sh30srv21.streur.dbnl:vm.memory.size[total]' lastlogsize:null value:'4114595840'
      127145:20200508:094910.375 In send_buffer() host:'192.168.178.133' port:10051 entries:39/100
      127145:20200508:094910.375 send_buffer() now:1588924150 lastsent:1588924149 now-lastsent:1 BufferSend:5; will not send now
      127145:20200508:094910.375 End of send_buffer():SUCCEED
      127145:20200508:094910.375 buffer: new element 39
      127145:20200508:094910.375 End of process_value():SUCCEED
      127145:20200508:094910.375 In need_meta_update() key:vm.memory.size[total]
      127145:20200508:094910.375 End of need_meta_update():FAIL
      127145:20200508:094910.375 In send_buffer() host:'192.168.178.133' port:10051 entries:40/100
      127145:20200508:094910.375 send_buffer() now:1588924150 lastsent:1588924149 now-lastsent:1 BufferSend:5; will not send now
      127145:20200508:094910.375 End of send_buffer():SUCCEED
      127145:20200508:094910.375 End of process_active_checks()
      127145:20200508:094910.375 In get_min_nextcheck()
      127145:20200508:094910.375 End of get_min_nextcheck():1588924180
      127145:20200508:094910.375 zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
      127141:20200508:094911.294 zbx_setproctitle() title:'collector [processing data]'
      127141:20200508:094911.294 In update_cpustats()
      127141:20200508:094911.294 End of update_cpustats()
      127141:20200508:094911.294 zbx_setproctitle() title:'collector [idle 1 sec]'
      127145:20200508:094911.376 In send_buffer() host:'192.168.178.133' port:10051 entries:40/100
      127145:20200508:094911.376 send_buffer() now:1588924151 lastsent:1588924149 now-lastsent:2 BufferSend:5; will not send now
      127145:20200508:094911.376 End of send_buffer():SUCCEED
      Last edited by xs4it; 08-05-2020, 10:05. Reason: Added answers and logtail.

      Comment

      • xs4it
        Junior Member
        • May 2019
        • 4

        #4
        Zabbix-get shows following information on the target host

        [root@sh30srv33 install]# zabbix_get -s sh30srv21 -p 10050 -k """system.cpu.load[all,avg1]"""
        0.000000

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          link from other topic on forum
          https://www.zabbix.com/forum/zabbix-...ray#post259448
          Do you have passive checks item for the host?
          Passive checks item mean that item type is "Zabbix agent".
          not "Zabbix agent(active)".

          If that host have no passive check item, that host's Z icon will not change status.
          Sincerely yours,
          Aleksey

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #6
            Or this one: https://www.zabbix.com/forum/zabbix-...bility-is-gray

            Comment

            • xs4it
              Junior Member
              • May 2019
              • 4

              #7
              Solved issues by using the "Passive Template" thanks.

              Comment

              • pabloarg
                Member
                • Jun 2019
                • 32

                #8
                You can use Active Template and set at least one value as pasive (agent.ping is maybe the best option).

                We discuss this topic here: https://www.zabbix.com/forum/zabbix-...t-availability

                Comment

                Working...