Ad Widget

Collapse

Zabbix server does not discover anything

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amirhz
    Junior Member
    • Oct 2020
    • 9

    #1

    Zabbix server does not discover anything

    Hi,
    Recently I installed Zabbix on Ubuntu 20
    But I have this error on the front-end side:


    Zabbix server is running No localhost:10051

    I tried to see the zabbix_server.log file which shows this error repeatedly:

    976950:20201023:160455.183 failed to accept an incoming connection: from 192.168.0.1: TLS handshake set result code to 1: file ../ssl/statem/statem_srvr.c line 2961: error:1419E0DF:SSL routines:tls_process_cke_psk_preamblesk identity not found: TLS write fatal alert "unknown PSK identity"


    Zabbix server is running No localhost:10051



    Last edited by amirhz; 26-10-2020, 15:39.
  • NilsA
    Senior Member
    • Sep 2020
    • 102

    #2
    How exactly is your Zabbix server set up?
    Did you configure anything TLS-related in /etc/zabbix/zabbix_server.conf?

    Comment

    • amirhz
      Junior Member
      • Oct 2020
      • 9

      #3
      No, I didn't,
      Everything in the TLS section is commented on.

      Comment

      • NilsA
        Senior Member
        • Sep 2020
        • 102

        #4
        From the log it looks like another device - 192.168.0.1 - is trying to connect via TLS with an unknown PSK identity. Which makes sense if there is nothing configured.
        I don't know what the problem could be so here's some more questions:
        Which device is 192.168.0.1?
        Is the zabbix-server service running and restarted after the last change in your config file?

        Comment


        • NilsA
          NilsA commented
          Editing a comment
          I tested it on my server. If the zabbix-server service is dead it shows exactly as in your screenshot.
      • amirhz
        Junior Member
        • Oct 2020
        • 9

        #5
        Originally posted by NilsA
        From the log it looks like another device - 192.168.0.1 - is trying to connect via TLS with an unknown PSK identity. Which makes sense if there is nothing configured.
        I don't know what the problem could be so here's some more questions:
        Which device is 192.168.0.1?
        Is the zabbix-server service running and restarted after the last change in your config file?
        This device is a host that I added using the "Configuration" menu by a PSK identity and a PSK key, while this PSK is defined on both sides. Should I add this key anywhere like the config file?
        The Zabbix server is running and restarted multiple times. It is the result of running the status command (systemctl status zabbix-server):

        zabbix-server.service - Zabbix Server
        Loaded: loaded (/lib/systemd/system/zabbix-server.service; enabled; vendor preset: enabled)
        Active: active (running) since Fri 2020-10-23 15:51:41 UTC; 3 days ago
        Main PID: 976910 (zabbix_server)
        Tasks: 38 (limit: 9452)
        Memory: 72.9M
        CGroup: ..........
        ...

        Comment

        • NilsA
          Senior Member
          • Sep 2020
          • 102

          #6
          To add encryption to a host, under the "Encryption" tab choose connections to and from your host according to the values of TLSConnect and TLSAccept in the zabbix_agentd.conf on your host system.
          Then put in your PSK identity and PSK. On your host system PSK identity is the value TLSPSKIdentity in your config. You also need to have a file containing your PSK on the host system with the config value TLSPSKFile pointing at it.

          If it doesn't work, check for simple errors like an empty space at the end of a PSK.
          Alternatively you can turn off your TLS and try monitoring without encryption just so you know it works at all.

          I'm not sure why your zabbix server still says "not running" when it is running. Can you try increasing the debug-level and checking the server log for any errors?

          Comment

          • amirhz
            Junior Member
            • Oct 2020
            • 9

            #7
            Originally posted by NilsA
            To add encryption to a host, under the "Encryption" tab choose connections to and from your host according to the values of TLSConnect and TLSAccept in the zabbix_agentd.conf on your host system.
            Then put in your PSK identity and PSK. On your host system PSK identity is the value TLSPSKIdentity in your config. You also need to have a file containing your PSK on the host system with the config value TLSPSKFile pointing at it.

            If it doesn't work, check for simple errors like an empty space at the end of a PSK.
            Alternatively you can turn off your TLS and try monitoring without encryption just so you know it works at all.

            I'm not sure why your zabbix server still says "not running" when it is running. Can you try increasing the debug-level and checking the server log for any errors?

            This did not work either, and the server log shows this now:

            976950:20201027:155647.947 cannot send list of active checks to "x.x.x.x": host [XRouter] not found

            Also, I have this on the agent log:
            976913:20201027:155047.480 failed to accept an incoming connection: connection from "x.x.x.x" rejected, allowed hosts: "127.0.0.1"

            Wonder what can I do for the Zabbix server status, although the web interface is working and I can add different types of hosts, it can not identify them as available devices!


            Attached Files

            Comment

            • NilsA
              Senior Member
              • Sep 2020
              • 102

              #8
              The agent log suggests, that the Server or ServerActive are not correctly set up and only accept connections from localhost (127.0.0.1).

              Concerning the server status, I checked up on the config again. What value is StatsAllowedIP in your server config?

              Comment

              • amirhz
                Junior Member
                • Oct 2020
                • 9

                #9
                Originally posted by NilsA
                The agent log suggests, that the Server or ServerActive are not correctly set up and only accept connections from localhost (127.0.0.1).

                Concerning the server status, I checked up on the config again. What value is StatsAllowedIP in your server config?
                It is
                StatsAllowedIP=127.0.0.1

                Comment

                • NilsA
                  Senior Member
                  • Sep 2020
                  • 102

                  #10
                  Please check agent config for Server and ServerActive.

                  Concerning server status, try adding port 10051 to your iptables like this: "iptables -A INPUT -p tcp -m tcp --dport 10051 -j ACCEPT"

                  Comment

                  • amirhz
                    Junior Member
                    • Oct 2020
                    • 9

                    #11
                    I even add those IP addresses to both server and agent config files, with no effect.
                    I wonder what is this error message and if it is something related:
                    /etc/passwd has been changed
                    Problem expression {Zabbix server:vfs.file.cksum[/etc/passwd].diff()}>0

                    Comment

                    • NilsA
                      Senior Member
                      • Sep 2020
                      • 102

                      #12
                      You did restart the services for agent and server after the changes?
                      I don't think that trigger event makes any difference.

                      Can you put your server and agent settings in the thread? I don't see this going anywhere.

                      Comment

                      • amirhz
                        Junior Member
                        • Oct 2020
                        • 9

                        #13
                        Yes, I stop, start both of them several times.
                        Here are the config files:

                        Comment

                        • amirhz
                          Junior Member
                          • Oct 2020
                          • 9

                          #14
                          Any solution?

                          Comment

                          • NilsA
                            Senior Member
                            • Sep 2020
                            • 102

                            #15
                            I'm looking through your configs and can't really find anything wrong with them. Multiple IPs in your agent config shouldn't cause this.
                            Can you post your iptables here?

                            Comment

                            Working...