Ad Widget

Collapse

need help getting the zabbix agent's to work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Potato-Warrior
    Junior Member
    • May 2023
    • 12

    #1

    need help getting the zabbix agent's to work

    So i have a zabbix setup with a 3 separate servers one for the zabbix-database one for the zabbix-application and then one for the zabbix-web-interface. all three are on ubuntu 22.04 and im using mysql as the database and it is working. i just need to get the agent's to send information. i installed the agent's one each server. i configured the "nano /etc/zabbix/zabbix_agentd.conf" file.

    like this for each of them so there all the same.


    ​### Option: Server
    # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
    # Incoming connections will be accepted only from the hosts listed here.
    # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
    # and '::/0' will allow any IPv4 or IPv6 address.
    # '0.0.0.0/0' can be used to allow any IPv4 address.
    # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
    #
    # Mandatory: yes, if StartAgents is not explicitly set to 0
    # Default:
    # Server=

    Server=Zabbix-Apllication-Server

    ### Option: ListenPort
    # Agent will listen on this port for connections from the server.
    #
    # Mandatory: no
    # Range: 1024-32767
    # Default:
    ListenPort=10050


    ### Option: ServerActive
    # Zabbix server/proxy address or cluster configuration to get active checks from.
    # Server/proxy address is IP address or DNS name and optional port separated by colon.
    # Cluster configuration is one or more server addresses separated by semicolon.
    # Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma.
    # More than one Zabbix proxy should not be specified from each Zabbix server/cluster.
    # If Zabbix proxy is specified then Zabbix server/cluster for that proxy should not be specified.
    # Multiple comma-delimited addresses can be provided to use several independent Zabbix servers in parallel. Spaces are allowed.
    # If port is not specified, default port is used.
    # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
    # If port is not specified, square brackets for IPv6 addresses are optional.
    # If this parameter is not specified, active checks are disabled.
    # Example for Zabbix proxy:
    # ServerActive=127.0.0.1:10051
    # Example for multiple servers:
    # ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
    # Example for high availability:
    # ServerActive=zabbix.cluster.node1;zabbix.cluster.n ode2:20051;zabbix.cluster.node3
    # Example for high availability with two clusters and one server:
    # ServerActive=zabbix.cluster.node1;zabbix.cluster.n ode2:20051,zabbix.cluster2.node1;zabbix.cluster2.n ode2,zabbix.domain
    #
    # Mandatory: no
    # Default:
    # ServerActive=

    ServerActive=Zabbix-Apllication-Server

    ### Option: Hostname
    # List of comma delimited unique, case sensitive hostnames.
    # Required for active checks and must match hostnames as configured on the server.
    # Value is acquired from HostnameItem if undefined.
    #
    # Mandatory: no
    # Default:
    # Hostname=

    Hostname=Zabbix-Server


    ​but it's not working all im getting is (zabbix dashboard).
    and why am i only seeing 1 agent i thought id see 3? "Host availability


    0Available
    1Not available
    0Unknown
    1Total

    is there something im missing?


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

    #2
    Hostname=Zabbix-Server
    ​Hostname should be unique. Each host has its own. And config in GUI should be correct... If you set it as "Zabbix-Server" in agent config, then you should also have that host in GUI as "Zabbix-Server". Or if you already have "Zabbix server" in GUI, then make sure you set it in agent config also exactly like that."Hostname=Zabbix server"

    Comment

    • Potato-Warrior
      Junior Member
      • May 2023
      • 12

      #3
      zabbix-app01 app01-IP:10050 ZBX Enabled Latest data Problems Graphs Dashboards Web
      zabbix-app02 app02-IP:10050 ZBX Enabled Latest data Problems Graphs Dashboards Web
      zabbix-db01 db01-IP:10050 ZBX Enabled Latest data Problems Graphs Dashboards Web
      Zabbix server 127.0.0.1:10050 ZBX class: osclass: softwaretarget: linux Enabled Latest data 116 1 Graphs 21 Dashboards 4 Web
      its still not functioning ​correctly i changed the names in the conf files and in the gui so thats its those names up there for in the file and the gui.
      but im suppose to put in the ip of the host im trying to monitor in the gui right like up here .zabbix server i dont even know what its doing there wasn't even me happend automatically or something.

      Comment

      • Potato-Warrior
        Junior Member
        • May 2023
        • 12

        #4
        Guys i can't believe it all i forgot was the template that u add in the web-interface when u add a host to monitor i thought it was optional (It was not optional).
        anyways if u choose the right template it'll work.

        Comment

        Working...