Ad Widget

Collapse

Zabbix 6.4.8 on Ubuntu 22.04 host issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • plissj@cotsworks.com
    Junior Member
    • Nov 2023
    • 12

    #1

    Zabbix 6.4.8 on Ubuntu 22.04 host issue

    So im having s strange issue with zabbix when trying to add hosts.

    I complete the create host in the GUI using the DNS and using the Agent interface for a windows 2016 datacenter server as the host.

    I use the hosts name and used IP address.

    The host will never seem to connect or go green, always shows unknown

    I can ping the host

    At the OS level I have installed the zabbix_get tool and using the same name and port from the zabbix server I can get data

    zabbix_get -s systemname -p 10050 -k agent.version
    6.4.8

    These servers are on the same network not that it matters as zabbix_get works as expected.

    I can get version, hostname and cpu data

    If I disable the zabbix agent 2 client then the command line zabbix_get does not work, this indicates to me that at least the service in the host mahine is working, there are no firewalls blocking port 10050 or 10051.

    Telnet to the 10050 or 10051 works.

    Im baffled as based on this info it should just work.

    My last implementation I swear did not have this many issues.


  • plissj@cotsworks.com
    Junior Member
    • Nov 2023
    • 12

    #2
    I did for fun try another physical windows host.

    Again im receiving the same behavior, zabbix_get work but the GUI seems to never be able to register or communicate with the host.

    I sure hope someone has some ideas.

    Comment

    • solution
      Senior Member
      • Jun 2020
      • 269

      #3
      Check requirements for the availability icon to turn green.


      as they are on the same network, you can change from Active Mode to Passive mode, associating the "Windows/Linux Agent".
      Or you can keep the current template and add the "Zabbix Agent" Template.​

      as they are on the same network, you can change from Active Mode to Passive mode, associating the "Windows/Linux Agent".
      Or you can keep the current template and add the "Zabbix Agent" Template.

      Note: Passive Mode requires you to open port 10050 on the Hosts firewall​

      Wellington

      Comment

      • plissj@cotsworks.com
        Junior Member
        • Nov 2023
        • 12

        #4
        So either im dumber than a box of rocks or this document just isnt giving me the information I need.

        Using the example shown the windows server listed with the example of template being used Windows by Zabbix Agent active is showing the same thing my dashboard os showing.

        Not only that I am getting no data whatsoever.

        I would like some documentation that basically tells be how to get data from a windows server so I can have dashboards and useable information such as cpu usage, memory usage, disk IO network io.

        Seems to me the linux works well but the Windows does not ?

        I swear the last time I used Zabbix I never had these kinds of issues.

        Are there some beginner guides as tou how to add a host, how to get data and how to use logs to determine if there is an error ?

        Please dont point me to you tube, I have so far wasted too many man hours watching videos that either take 20 minutes to get the 30 seconds of info I needed or dont help at all.

        Just seems this wasnt this difficult before.


        Comment

        • plissj@cotsworks.com
          Junior Member
          • Nov 2023
          • 12

          #5
          On a side not I am using the Windows by Zabbix agent active.

          I have this info in the config file on the host that is running the zabbix agent 2

          Click image for larger version

Name:	image.png
Views:	1421
Size:	3.5 KB
ID:	474986
          Server=192.168.7.194
          ServerActive=192.168.7.194

          Just asking but should be able to use FQDN for these correct ?






          Comment

          • plissj@cotsworks.com
            Junior Member
            • Nov 2023
            • 12

            #6
            Another note as you can see im getting no data at all, which indicates to e something isnt working as expected.

            Click image for larger version

Name:	image.png
Views:	1334
Size:	46.8 KB
ID:	474988

            Comment

            • plissj@cotsworks.com
              Junior Member
              • Nov 2023
              • 12

              #7
              2023/11/29 07:19:30.842557 [101] no active checks on server [zabbixip:10051]: host [hostfqdn] not found

              seeing this erro on the host in the zabbix client folder

              Comment

              • cyber
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Dec 2006
                • 4807

                #8
                Originally posted by [email protected]
                2023/11/29 07:19:30.842557 [101] no active checks on server [zabbixip:10051]: host [hostfqdn] not found

                seeing this erro on the host in the zabbix client folder
                So your host tries to obtain active checks, but server says, it does not recognize this host. Verify, that hostname in agent config file and in Zabbix GUI ("host name" field) match. Zabbix is case sensitive!

                Comment

                • plissj@cotsworks.com
                  Junior Member
                  • Nov 2023
                  • 12

                  #9
                  cyber,

                  while looking at the conf file on the host I went to zabbix host config and noticed that there was a case issue.

                  I copied the zabbix hot name and pasted it into the conf file and saved restarted the service on the ost and what do you know im getting data.

                  I came here to update an saw your post and went yep im im dumb arse

                  Comment

                  • solution
                    Senior Member
                    • Jun 2020
                    • 269

                    #10
                    Great that you found the problem and resolved it.
                    Anyway, let's summarize the "mode of operation":

                    If you choose to use "Active Mode": (Agent Query and send data to the Zabbix Server)
                    -The templates to use must be those with "Active" in the name, example: Windows by Zabbix agent active
                    -Zabbix Gui --> Host --> Agent: It does not need to be the real IP, as in Active mode this IP is not used.
                    -On Device Windows or Linux: Install Agent and in ServerActive confirm that you have the IP or Hostname of the Zabbix Server
                    -Firewall Device: no action required

                    If you choose to use "Passive Mode": (Zabbix Server Query and get data from the Agent)
                    -The templates to use must be those that DO NOT have "Active" in the name, example: Windows by Zabbix agent
                    -Zabbix Gui --> Host --> Agent: MUST be the real IP or hostname, as the Zabbix Server will contact the device to collect the data.
                    -On Device Windows or Linux: Install Agent and in Server confirm that you have the IP or Hostname of the Zabbix Server
                    -Firewall Device: Open port 10050, direction: inbound
                    -Confirm that the service is listening on port 10050:
                    Code:
                    netstat -abn | findstr 10050
                    Code:
                    for /f "tokens=5" %a in ('netstat -aon ^| findstr 10050') do tasklist /FI "PID eq %a"

                    Wellington​

                    Comment

                    • plissj@cotsworks.com
                      Junior Member
                      • Nov 2023
                      • 12

                      #11
                      Thank you for the information

                      I was making sure the ports were working and that allows were put in any rule.

                      By going to passive rather than active if has really helped what im startign about here.

                      Now I can fail them and test responses.

                      Thank you for the help

                      Comment

                      Working...