ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Wazuh Agent Install - CentOS

    IT Discussion
    wazuh centos linux
    3
    4
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by scottalanmiller


      Add CentOS repository


      cat > /etc/yum.repos.d/wazuh.repo <<\EOF
      [wazuh_repo]
      gpgcheck=1
      gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH
      enabled=1
      name=Wazuh repository
      baseurl=https://packages.wazuh.com/3.x/yum/
      protect=1
      EOF
      

      Install agent


      yum install -y wazuh-agent
      

      Disable automatic updates for agents


      sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo
      yum update
      
       
      

      Copy ossec.conf file for agent configuration settings.


      I used this area to push an automatically configured ossec.conf file down to client
      You can manually edit /var/ossec/etc/ossec.conf
      

      Add agent to wazuh server using SSL


      systemctl restart wazuh-agent
      /var/ossec/bin/agent-auth -m 192.168.1.1
      systemctl restart wazuh-agent
       
      
      **********************************************************
      Manual agent registration notes are below in case
      automation fails
      ***********************************************************
      
      
      #***********************************************************
      #On Wazuh Manager
      #***********************************************************
      
      # sudo /var/ossec/bin/manage_agents
      # A to add
      # Enter Hostname and IP address of client(s)
      # E to Extract Key for Agent
      #***********************************************************
      
      #***********************************************************
      #On Wazuh Agent Machine
      #***********************************************************
      # sudo /var/ossec/bin/manage_agents
      # I to import key (copy and paste key from wazuh manager)
      #**********************************************************
      1 Reply Last reply Reply Quote 4
      • JaredBuschJ
        JaredBusch
        last edited by

        Why are you disabling agent updates?

        IRJI travisdh1T 2 Replies Last reply Reply Quote 0
        • IRJI
          IRJ @JaredBusch
          last edited by

          @JaredBusch said in Wazuh Agent Install - CentOS:

          Why are you disabling agent updates?

          It is recommended by wazuh in their documentation to prevent automatic updates.

          1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1 @JaredBusch
            last edited by

            @JaredBusch said in Wazuh Agent Install - CentOS:

            Why are you disabling agent updates?

            Wazuh doesn't understand how to maintain their own repository, so when OSSIM updates their stuff, it breaks Wazuh. It's silly, easily fixable, and I don't have the time to maintain the thing myself.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post