Ad Widget

Collapse

Getting started, My Dashboard not updating

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TimL
    Junior Member
    • Feb 2021
    • 3

    #1

    Getting started, My Dashboard not updating

    I have used Zabbix in the past. It's been a while and I am setting it up on a new group of server and I don't remember anything, maybe because of versions and bad memory.
    I have several servers I would like to monitor. On the server I installed the latest Server and Agent via yum on Centos 7 and the agents the just the Agent the same way.
    Currently I have one Zabbix Server and three Agents. I was having issues using the public IP having to do with firewall, at least. I now setup private IPs just for Zabbix and no more network issues.

    Using PSK. All the Agents are running and have no errors except:
    Code:
    20638:20210131:162427.419 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    And I suspect that has to do with the distro, but cannot see anything in the error to indicate where that is coming from.

    I have verified that the Agent is working (I think) by running:
    Code:
    zabbix_get -s 192.168.153.57 -p 10050 --tls-connect psk --tls-psk-identity "PSK000" --tls-psk-file /etc/zabbix/zabbix_agent.psk -k agent.hostname
    and it returns the correct hostname.

    I setup a Dashboard for CPU Load Values. I added graphs with the key of 'system.cpu.load[all,avg1]', 'system.cpu.load[all,avg5]', 'system.cpu.load[all,avg15]' for each Agent but the graphs never show any values. If I test with:
    Code:
     zabbix_get -s 192.168.153.57 -p 10050 --tls-connect psk --tls-psk-identity "PSK000" --tls-psk-file /etc/zabbix/zabbix_agent.psk -k system.cpu.load[all,avg5]
    I get a value from 0.000001 to something less than 1.000000.
    Code:
    [root@server zabbix]# zabbix_get -s 192.168.153.57 -p 10050 --tls-connect psk --tls-psk-identity "PSK000" --tls-psk-file /etc/zabbix/zabbix_agent.psk -k system.cpu.load[all,avg5]
    0.080000
    [root@server zabbix]# zabbix_get -s 192.168.177.245 -p 10050 --tls-connect psk --tls-psk-identity "PSK000" --tls-psk-file /etc/zabbix/zabbix_agent.psk -k system.cpu.load[all,avg5]
    0.030000
    [root@server zabbix]# zabbix_get -s 192.168.177.8 -p 10050 --tls-connect psk --tls-psk-identity "PSK000" --tls-psk-file /etc/zabbix/zabbix_agent.psk -k system.cpu.load[all,avg5]
    0.060000
    I have tried with all three setup Agents and have a separate graph for each server. None update with any data.

    The server log contains just the following over and over again but no errors:
    20658:20210131:121638.862 executing housekeeper
    20658:20210131:121639.014 housekeeper [deleted 6370 hist/trends, 0 items/triggers, 0 events, 1 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 0.151297 sec, idle for 1 hour(s)]
    20658:20210131:131639.451 executing housekeeper
    20658:20210131:131639.531 housekeeper [deleted 6372 hist/trends, 0 items/triggers, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 0.078925 sec, idle for 1 hour(s)]
    The Agent logs are as follows:
    20639:20210131:164827.622 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    20638:20210131:164827.623 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    20639:20210131:165027.654 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    20638:20210131:165027.655 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    20638:20210131:165227.671 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    20639:20210131:165227.672 cannot parse list of active checks: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'ZBX_NOTSUPPORTED'
    Any suggestions are welcome.
  • TimL
    Junior Member
    • Feb 2021
    • 3

    #2
    Update: If I monitor the Server with an Agent on the same machine things seem to work.

    Comment

    • LenR
      Senior Member
      • Sep 2009
      • 1005

      #3
      Check and share the version of zabbix server and agents. You might start without PSK to get it working, at least on one problem server.

      Comment

      • TimL
        Junior Member
        • Feb 2021
        • 3

        #4
        Thanks for the reply.

        Server on server:
        [root@server ~]# zabbix_server -V
        zabbix_server (Zabbix) 5.0.8
        Revision d3c78f993a 25 January 2021, compilation time: Jan 25 2021 10:53:23

        Copyright (C) 2021 Zabbix SIA
        License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
        This is free software: you are free to change and redistribute it according to
        the license. There is NO WARRANTY, to the extent permitted by law.

        This product includes software developed by the OpenSSL Project
        for use in the OpenSSL Toolkit (http://www.openssl.org/).

        Compiled with OpenSSL 1.0.2k-fips 26 Jan 2017
        Running with OpenSSL 1.0.2k-fips 26 Jan 2017
        Agent on server:
        [root@server ~]# zabbix_agentd -V
        zabbix_agentd (daemon) (Zabbix) 5.0.8
        Revision d3c78f993a 25 January 2021, compilation time: Jan 25 2021 10:53:23

        Copyright (C) 2021 Zabbix SIA
        License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
        This is free software: you are free to change and redistribute it according to
        the license. There is NO WARRANTY, to the extent permitted by law.

        This product includes software developed by the OpenSSL Project
        for use in the OpenSSL Toolkit (http://www.openssl.org/).

        Compiled with OpenSSL 1.0.2k-fips 26 Jan 2017
        Running with OpenSSL 1.0.2k-fips 26 Jan 2017
        Agent on agent:
        [root@agent ~]# zabbix_agentd -V
        zabbix_agentd (daemon) (Zabbix) 5.0.8
        Revision d3c78f993a 25 January 2021, compilation time: Jan 25 2021 10:53:23

        Copyright (C) 2021 Zabbix SIA
        License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
        This is free software: you are free to change and redistribute it according to
        the license. There is NO WARRANTY, to the extent permitted by law.

        This product includes software developed by the OpenSSL Project
        for use in the OpenSSL Toolkit (http://www.openssl.org/).

        Compiled with OpenSSL 1.0.2k-fips 26 Jan 2017
        Running with OpenSSL 1.0.2k-fips 26 Jan 2017
        Well I am able to get the results I wanted with the zabbix_get so it looks like PSK is working.

        Last night I got feed up and deleted all the hosts and their configs.
        I then started without templates. created Applications and Items from scratch. I was able to get things working for CPU Load and Network IN/Out.
        I then created my own template for my servers, as all my servers are almost identical.
        This is working on 6 so far perfect.

        Another issue, maybe I should open a new post:
        After deleting all the Hosts I rebooted the server and I am able to get data, graph it and all that but there is a message at the bottom saying:
        Zabbix server is not running: the information displayed may not be current.
        The only thing I noticed is that zabbix_get fails from the command line saying that the server is not running.
        I have checked and systemctl shows status running and there are no errors in the zabbix_server.log
        Last edited by TimL; 02-02-2021, 22:52.

        Comment

        Working...