0 Pluspunkte 0 Minuspunkte

Ich habe den Wazuh Agent auf einem Debian Server (Zevenet Loadbalancer) installiert und in Wazuh wird der Agent auch als Connected angezeigt. Ich wollte den Agent löschen aber finde das Service gar nicht.

root@vie-p-srv-flb01:~# service --status-all
 [ ? ]  cherokee
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  dbus
 [ - ]  hwclock.sh
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ - ]  lvm2-lvmpolld
 [ + ]  networking
 [ + ]  open-vm-tools
 [ + ]  pound
 [ + ]  procps
 [ + ]  rngd
 [ - ]  rpcbind
 [ + ]  rsyslog
 [ + ]  snmpd
 [ + ]  ssh
 [ + ]  udev
 [ ? ]  zevenet

Ich sehe es aber in der Prozessliste

root@vie-p-srv-flb01:~# ps aux | grep wazuh
root      6951  0.0  0.0  25832  3524 ?        Sl   Mär25   0:14 /var/ossec/bin/wazuh-execd
wazuh     6962  0.3  0.3 247752 12384 ?        Sl   Mär25  22:50 /var/ossec/bin/wazuh-agentd
root      6977  0.1  0.3 344412 13112 ?        SNl  Mär25   8:55 /var/ossec/bin/wazuh-syscheckd
root      6990  0.0  0.4 516100 18672 ?        Sl   Mär25   0:55 /var/ossec/bin/wazuh-logcollector
root      7034  0.0  0.5 731856 22868 ?        Sl   Mär25   1:02 /var/ossec/bin/wazuh-modulesd
root     15762  0.0  0.0   6088   828 pts/0    R+   23:55   0:00 grep wazuh
root@vie-p-srv-flb01:~#

Auch den Status des Service kann ich nicht abfragen.

root@vie-p-srv-flb01:~# service wazuh-manager status
Unit wazuh-manager.service could not be found.

Wie kann ich das Service löschen und deinstallieren?

von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Zuerst stopst du das Service und deaktivierst es.

systemctl stop wazuh-agent
systemctl disable wazuh-agent

Danach deinstallierst du das Paket mit seinen Konfigurationen.

apt purge wazuh-agent -y
von (1.1k Punkte)