Current Agent version:

  1. First update your package list:
    sudo yum update
  2. Second we need to install sysstat. This utility using for measuring disks load.
    sudo yum install sysstat
  3. In your home directory – download binary archive:
  4. Make directory to extract:
    mkdir spm-agent_files
  5. And extract files into this directory:
    tar -xzvf spm-agent.tar.gz -C /$HOME/spm-agent_files
  6. Lets copy binary file into system /bin directory:
    sudo cp spm-agent_files/bin/SPM_AgentService_Linux /bin/
  7. Copy configuration file into system /etc/ directory:
    sudo cp spm-agent_files/etc/spm-agent.conf /etc/
  8. And copy systemd daemon file into systemd directory:
    sudo cp spm-agent_files/etc/systemd/system/spm-agent.service /etc/systemd/system/
  9. Now we can delete temp directory with extracted files:
    rm -r spm-agent_files
  10. Go to configuration file:
    sudo nano /etc/spm-agent.conf
    a. Put the encryption key from SPM Monitoring options to the encryption_key filed
    b. Optionally you can change listen port in listen_port filed
  11. Reload systemd daemon configuration:
    sudo systemctl daemon-reload
  12. Enable autostart for SPM Agent service in systemd:
    sudo systemctl enable spm-agent
  13. Start systemd SPM Agent service:
    sudo systemctl start spm-agent
  14. Check the status of service:
    sudo systemctl status spm-agent
    Press Ctrl-C to exit.
  15. Add exception to system firewall:
    a. Check what firewall zone is using your network adapter at this time: firewall-cmd –get-active-zones
    b. Open tcp port from configuration file (4538/tcp by default) for your zone: sudo firewall-cmd zone=public –permanent –add-port=4538/tcp
    c. Reload firewall: sudo firewall-cmd –reload

Requirements: Tested on CentOS 7/8