Ad Widget

Collapse

How to update zabbix agent and how to set up active monitoring?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jnoas123
    Junior Member
    • Jan 2025
    • 1

    #1

    How to update zabbix agent and how to set up active monitoring?

    Hi,

    I'm trying to enable active monitoring on some linux devices (they are running on ubuntu 18.04.6 LTS).
    The agent that is currently on there is quiet old (too old i think for active monitoring) so how do i update this one or remove it so i can install a new one?
    For the agent configuration which options should be present to allow it to use active monitoring?

    Thank you so much if you can help with this question.
  • Answer selected by jnoas123 at 16-01-2025, 10:08.
    kyus
    Senior Member
    • Feb 2024
    • 172

    Hey!

    You can go to https://www.zabbix.com/download?zabb...gent_2&db=&ws= choose the version of the agent that you need and follow the installation instructions.

    For the active agent you need to setup the ServerActive and Hostname parameters in /etc/zabbix/zabbix_agentd.conf or /etc/zabbix/zabbix_agent2.conf (accordingly to the agent you installed).
    In the frontend you need to create a host with the same hostname you setup in the agent config.
    Last edited by kyus; 13-01-2025, 18:36.

    Comment

    • kyus
      Senior Member
      • Feb 2024
      • 172

      #2
      Hey!

      You can go to https://www.zabbix.com/download?zabb...gent_2&db=&ws= choose the version of the agent that you need and follow the installation instructions.

      For the active agent you need to setup the ServerActive and Hostname parameters in /etc/zabbix/zabbix_agentd.conf or /etc/zabbix/zabbix_agent2.conf (accordingly to the agent you installed).
      In the frontend you need to create a host with the same hostname you setup in the agent config.
      Last edited by kyus; 13-01-2025, 18:36.

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #3
        Originally posted by kyus
        In the frontend you need to create a host with the same hostname you setup in the agent config.
        I don't know why a hard-coded hostname is the default in the Zabbix agent config. Literally no device I ever installed the agent on is called "Zabbix server", so it's guaranteed to be wrong. I always comment out Hostname= and then the hostname is just the hostname!

        Comment


        • troffasky
          troffasky commented
          Editing a comment
          There is exactly one time this works - when you install Zabbix server, a host is added called "This Zabbix server" and has a hostname of "Zabbix server".
      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        I have not installed any clean agents for ages (corporate env and automated installs), but docs indicate that hostname is by deafult set by "HostnameItem" and HostnameItem defaults to "system.hostname"

        Is it really "Zabbix server" there if you install a clean agent by hand

        Comment

        • troffasky
          Senior Member
          • Jul 2008
          • 567

          #5
          In zabbix_agentd.conf shipped with Zabbix packages from Zabbix repos, HostnameItem is commented out and Hostname is "Zabbix server". Amusingly, it also says:
          Code:
          # Default:
          # Hostname=
          but if config file shipped in vendor packages doesn't do what is "default", then what does "default" even mean?

          I cannot be the only person who finds this a bit odd.
          If you use packages from Debian repos, both are commented out by default.

          Last edited by troffasky; 15-01-2025, 15:17.

          Comment

          Working...