Ad Widget

Collapse

Zabbix proxy not sending data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gferradas
    Junior Member
    • Jan 2023
    • 24

    #1

    Zabbix proxy not sending data

    Hi, im trying to configure a zabbix proxy to monitor a single host. The host and proxy are in the same network, the server is in another

    but when i configure the proxy and the agent on the host the server doesn´t receive any items and nothing i checked the conf in the agent of the host and the proxy.conf and everything seems to be okay.

    And the logs of the proxy show this:

    Code:
    669182:20230428:140014.931 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140015.932 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140016.934 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140017.935 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140018.950 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140019.951 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140020.952 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140021.954 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140022.955 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140023.957 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140027.948 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140028.950 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    669182:20230428:140029.951 cannot send proxy data to server at "172.19.129.75": negative response "failed"
    Also this in a testing area so for the moment i set selinux to permissive the proxy is in a rhel 9 and the host is a rhel 8

    any ideas of what is happening?
  • ingrid@gearnoc.com.br
    Junior Member
    • May 2022
    • 13

    #2
    Hi,

    Did you make sure that the versions of the zabbix server and zabbix proxy are the same?

    Comment

    • gferradas
      Junior Member
      • Jan 2023
      • 24

      #3
      Now that you say the proxy is 6.2 and the server is 6.0 but wouldn´t still work even if they are different versions?

      Comment

      • ingrid@gearnoc.com.br
        Junior Member
        • May 2022
        • 13

        #4
        No, the server and the proxy must be the same versions for it to work.

        So, you should downgrade proxy or upgrade server.

        Comment

        • gferradas
          Junior Member
          • Jan 2023
          • 24

          #5
          Ok, thanks for the help i will downgrade the proxy and see if it works thanks again

          Comment

          • gferradas
            Junior Member
            • Jan 2023
            • 24

            #6
            Well i downgrade the proxy now it shows items in the dashboard but when i enter in latest data the server still doesn´t recieve information of the host

            Comment

            • ingrid@gearnoc.com.br
              Junior Member
              • May 2022
              • 13

              #7
              Can you put the logs of the proxy and the server here so we can check?

              Comment

              • gferradas
                Junior Member
                • Jan 2023
                • 24

                #8
                Originally posted by [email protected]
                Can you put the logs of the proxy and the server here so we can check?
                Proxy:
                Code:
                731528:20230428:154510.967 unknown request received from "172.19.175.88": [active check heartbeat]
                731528:20230428:154610.980 unknown request received from "172.19.175.88": [active check heartbeat]
                731531:20230428:154629.023 slow query: 3.035336 sec, "commit;"
                731539:20230428:154629.718 slow query: 3.618503 sec, "commit;"
                731539:20230428:154633.732 slow query: 3.008522 sec, "commit;"
                731544:20230428:154636.078 slow query: 3.296705 sec, "commit;"
                731539:20230428:154652.355 slow query: 6.071250 sec, "commit;"
                731544:20230428:154655.746 slow query: 7.668703 sec, "commit;"
                731539:20230428:154700.420 slow query: 7.055683 sec, "commit;"
                731531:20230428:154710.991 unknown request received from "172.19.175.88": [active check heartbeat]
                731531:20230428:154810.010 unknown request received from "172.19.175.88": [active check heartbeat]
                731539:20230428:154829.892 slow query: 3.808767 sec, "commit;"
                731540:20230428:154831.749 executing housekeeper
                731540:20230428:154832.498 housekeeper [deleted 604 records in 0.745946 sec, idle for 1 hour(s)]
                731528:20230428:154910.022 unknown request received from "172.19.175.88": [active check heartbeat]
                731529:20230428:155010.042 unknown request received from "172.19.175.88": [active check heartbeat]
                731544:20230428:155050.765 slow query: 5.184064 sec, "commit;"
                731539:20230428:155050.766 slow query: 4.184719 sec, "commit;"
                731526:20230428:155110.053 unknown request received from "172.19.175.88": [active check heartbeat]
                731527:20230428:155210.076 unknown request received from "172.19.175.88": [active check heartbeat]
                731539:20230428:155231.077 slow query: 7.178017 sec, "commit;"
                731544:20230428:155231.080 slow query: 4.122060 sec, "commit;"
                731544:20230428:155304.841 slow query: 3.323684 sec, "commit;"
                731544:20230428:155308.883 slow query: 4.042628 sec, "update drules set nextcheck=1682708044 where druleid=2"
                731529:20230428:155310.087 unknown request received from "172.19.175.88": [active check heartbeat]
                731528:20230428:155410.308 unknown request received from "172.19.175.88": [active check heartbeat]
                731528:20230428:155510.318 unknown request received from "172.19.175.88": [active check heartbeat]
                731539:20230428:155602.949 slow query: 3.250751 sec, "commit;"
                731526:20230428:155610.338 unknown request received from "172.19.175.88": [active check heartbeat]
                731544:20230428:155626.125 slow query: 4.415929 sec, "commit;"
                731539:20230428:155629.129 slow query: 6.499058 sec, "commit;"
                731544:20230428:155632.235 slow query: 3.037187 sec, "commit;"
                731527:20230428:155710.349 unknown request received from "172.19.175.88": [active check heartbeat]
                731528:20230428:155810.351 unknown request received from "172.19.175.88": [active check heartbeat]
                731539:20230428:155852.768 slow query: 3.187629 sec, "commit;"
                731544:20230428:155854.747 slow query: 3.597050 sec, "commit;"
                731539:20230428:160030.187 slow query: 6.420362 sec, "commit;"
                731544:20230428:160035.055 slow query: 5.985604 sec, "commit;"
                731539:20230428:160036.704 slow query: 5.507974 sec, "commit;"
                731544:20230428:160211.398 slow query: 3.320359 sec, "commit;"
                731531:20230428:160241.037 slow query: 3.095941 sec, "commit;"
                731539:20230428:160245.906 slow query: 7.792858 sec, "select nextid from ids where table_name='proxy_history' and field_name='history_lastid'"
                731542:20230428:160245.906 slow query: 7.288347 sec, "select h.hostid,h.host,h.name,t.httptestid,t.name,t.agent,t.authentication,t.http_user,t.http_password,t.http_proxy,t.retries,t.ssl_cert_file,t.ssl_key_file,t.ssl_key_password,t.verify_peer,t.verify_host,t.delay from httptest t,hosts h where t.hostid=h.hostid and t.nextcheck<=1682708558 and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)"
                731556:20230428:160245.906 slow query: 5.267392 sec, "select taskid,type,clock,ttl from task where status=1 and type in (2, 6, 7) order by taskid"
                731531:20230428:160245.907 slow query: 4.869302 sec, "select itemid from items where type=7 and flags<>2 and hostid=10547"
                731544:20230428:160245.907 slow query: 6.854053 sec, "select null from drules where druleid=2 for update"
                731544:20230428:160257.834 slow query: 3.229110 sec, "commit;"
                731539:20230428:160421.685 slow query: 4.542022 sec, "commit;"
                731544:20230428:160426.918 slow query: 5.785230 sec, "commit;"
                731556:20230428:160432.346 slow query: 6.342298 sec, "select taskid,type,clock,ttl from task where status=1 and type in (2, 6, 7) order by taskid"
                731542:20230428:160432.346 slow query: 6.401883 sec, "select h.hostid,h.host,h.name,t.httptestid,t.name,t.agent,t.authentication,t.http_user,t.http_password,t.http_proxy,t.retries,t.ssl_cert_file,t.ssl_key_file,t.ssl_key_password,t.verify_peer,t.verify_host,t.delay from httptest t,hosts h where t.hostid=h.hostid and t.nextcheck<=1682708665 and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)"
                731544:20230428:160432.346 slow query: 5.425313 sec, "select dcheckid,type,key_,snmp_community,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authpassphrase,snmpv3_privpassphrase,snmpv3_authprotocol,snmpv3_privprotocol,ports,snmpv3_contextname from dchecks where druleid=2 order by dcheckid"
                731539:20230428:160432.346 slow query: 9.660559 sec, "select nextid from ids where table_name='proxy_history' and field_name='history_lastid'"
                731544:20230428:160509.288 slow query: 3.542460 sec, "commit;"
                731544:20230428:160513.866 slow query: 4.574371 sec, "commit;"
                731539:20230428:160703.791 slow query: 4.036564 sec, "commit;"
                731539:20230428:160830.665 slow query: 7.285384 sec, "commit;"
                731544:20230428:160832.237 slow query: 6.352144 sec, "commit;"
                731539:20230428:160910.183 slow query: 3.140365 sec, "commit;"
                731539:20230428:160922.017 slow query: 4.121150 sec, "commit;"
                731544:20230428:160922.287 slow query: 4.100845 sec, "commit;"
                731544:20230428:160928.509 slow query: 6.217991 sec, "commit;"
                731539:20230428:161037.651 slow query: 5.133920 sec, "commit;"
                731544:20230428:161117.569 slow query: 5.491846 sec, "commit;"
                731539:20230428:161118.863 slow query: 6.298286 sec, "commit;"
                731539:20230428:161125.488 slow query: 4.612733 sec, "commit;"
                731539:20230428:161132.604 slow query: 3.093966 sec, "commit;"
                731544:20230428:161134.171 slow query: 3.301939 sec, "commit;"
                731544:20230428:161453.255 slow query: 3.065459 sec, "commit;"
                731544:20230428:161704.642 slow query: 5.044651 sec, "commit;"
                731539:20230428:161707.200 slow query: 6.823910 sec, "commit;"
                ​
                Server:

                Code:
                  1909:20230428:161524.437 slow query: 5.084673 sec, "commit;"
                  1885:20230428:161524.437 slow query: 4.065597 sec, "commit;"
                  1909:20230428:161539.613 unknown request received from "172.19.175.87": [active check heartbeat]
                  1887:20230428:161542.035 slow query: 7.785869 sec, "commit;"
                  1907:20230428:161542.313 slow query: 4.100230 sec, "commit;"
                  1886:20230428:161542.313 slow query: 5.421794 sec, "commit;"
                  1885:20230428:161542.313 slow query: 7.320296 sec, "commit;"
                  1891:20230428:161542.313 slow query: 6.422832 sec, "commit;"
                  1879:20230428:161542.314 slow query: 5.625745 sec, "commit;"
                  1865:20230428:161542.314 slow query: 7.117562 sec, "commit;"
                  1891:20230428:161619.028 slow query: 8.432126 sec, "commit;"
                  1886:20230428:161629.098 slow query: 16.490202 sec, "commit;"
                  1887:20230428:161629.098 slow query: 17.495820 sec, "commit;"
                  1909:20230428:161629.098 slow query: 14.732207 sec, "commit;"
                  1885:20230428:161629.098 slow query: 15.466725 sec, "commit;"
                  1865:20230428:161629.098 slow query: 16.902312 sec, "commit;"
                  1880:20230428:161629.098 slow query: 12.345153 sec, "commit;"
                  1907:20230428:161629.098 slow query: 8.710292 sec, "update hosts set lastaccess=1682709380 where hostid=10542;
                "
                  1891:20230428:161629.107 slow query: 10.076581 sec, "commit;"
                  1907:20230428:161639.625 unknown request received from "172.19.175.87": [active check heartbeat]
                  1909:20230428:161706.080 slow query: 6.704903 sec, "commit;"
                  1886:20230428:161706.418 slow query: 4.891813 sec, "commit;"
                  1865:20230428:161706.418 slow query: 4.222525 sec, "commit;"
                  1887:20230428:161706.419 slow query: 5.938891 sec, "commit;"
                  1891:20230428:161706.419 slow query: 3.735230 sec, "commit;"
                  1885:20230428:161706.419 slow query: 6.945706 sec, "commit;"
                  1885:20230428:161720.626 slow query: 9.468302 sec, "commit;"
                  1865:20230428:161725.546 slow query: 14.350359 sec, "commit;"
                  1891:20230428:161725.652 slow query: 13.627533 sec, "commit;"
                  1885:20230428:161725.652 slow query: 5.024292 sec, "commit;"
                  1907:20230428:161725.652 slow query: 10.488762 sec, "commit;"
                  1887:20230428:161725.653 slow query: 12.620761 sec, "commit;"
                  1886:20230428:161725.653 slow query: 11.432054 sec, "commit;"
                  1909:20230428:161725.653 slow query: 3.716998 sec, "update hosts set lastaccess=1682709441 where hostid=10542;
                "
                  1880:20230428:161725.654 slow query: 8.806794 sec, "commit;"
                  1907:20230428:161739.639 unknown request received from "172.19.175.87": [active check heartbeat]
                  1885:20230428:161809.393 slow query: 4.054422 sec, "commit;"
                  1886:20230428:161811.246 slow query: 4.709375 sec, "commit;"
                  1891:20230428:161811.265 slow query: 3.627298 sec, "commit;"
                  1865:20230428:161819.276 slow query: 7.081571 sec, "commit;"
                  1891:20230428:161819.303 slow query: 5.032522 sec, "commit;"
                  1907:20230428:161819.303 slow query: 3.396951 sec, "commit;"
                  1885:20230428:161819.303 slow query: 7.034856 sec, "commit;"
                  1887:20230428:161819.303 slow query: 6.034966 sec, "commit;"
                  1886:20230428:161819.303 slow query: 3.759816 sec, "commit;"
                  1891:20230428:161833.357 slow query: 7.004205 sec, "commit;"
                  1887:20230428:161833.660 slow query: 6.305843 sec, "commit;"
                  1865:20230428:161833.660 slow query: 4.464595 sec, "commit;"
                  1907:20230428:161833.660 slow query: 5.708113 sec, "commit;"
                  1885:20230428:161833.661 slow query: 4.099108 sec, "commit;"
                  1886:20230428:161833.661 slow query: 5.247468 sec, "commit;"
                  1907:20230428:161839.120 sending configuration data to proxy "Jenkins" at "172.19.175.87", datalen 22664, bytes 3933 with compression ratio 5.8
                  1907:20230428:161839.650 unknown request received from "172.19.175.87": [active check heartbeat]
                  1891:20230428:161914.573 slow query: 3.736278 sec, "commit;"
                ​
                im not sure if it is a agent problem im been checking the versions of the agent and i have 6.0 and 6.2 but none of them work

                Comment

                • gferradas
                  Junior Member
                  • Jan 2023
                  • 24

                  #9
                  Update: I actually got to monitor 1 host via the proxy

                  Code:
                  ### Option: Timeout
                  #       Spend no more than Timeout seconds on processing
                  #
                  # Mandatory: no
                  # Range: 1-30
                  # Default:
                  Timeout=30​
                  i just put 30 seconds of timeout and now it i have info in the dashboard not everything like interface type but is still progress

                  Comment

                  Working...