Hi Masters!
I have successfully installed the Wazuh https://wazuh.com/install/ XDR and SIEM protection program on my VPS.
My goal would be to use wazuh Agentless https://documentation.wazuh.com/current/user-manual/capabilities/agentless-monitoring/index.html to report the status of my router (hAP ac²) via SSH.
It is theoretically possible, but unfortunately the method is not compatible with mikrotik or I just don’t notice something.
I use this agentless config in /var/ossec/etc/ossec.conf with Endpoints with password authentication:
<agentless>
<type>ssh_generic_diff</type>
<frequency>60</frequency>
<host>admin@mydomain.com</host>
<state>periodic_diff</state>
<arguments>/log print</arguments>
</agentless>
Unfortunately the process gets stuck, of course it doesn’t display an error /var/ossec/logs/ossec.log:
...
2024/02/13 08:23:21 wazuh-agentlessd: INFO: Test passed for 'ssh_generic_diff'.
2024/02/13 08:23:22 wazuh-agentlessd: INFO: ssh_generic_diff: admin@mydomain.com: Started.
2024/02/13 08:23:22 wazuh-agentlessd: INFO: ssh_generic_diff: admin@mydomain.com: Starting.
2024/02/13 08:34:34 wazuh-agentlessd: INFO: ssh_generic_diff: admin@mydomain.com: Started.
2024/02/13 08:34:34 wazuh-agentlessd: INFO: ssh_generic_diff: admin@mydomain.com: Starting.
...
I tried all the existing variations that were listed as configurations, but none of them succeeded.
Of course I can log in manually via ssh console.
My question is, has anyone managed to put this together like this?
I think the problem is with the ssh_generic_diff script.
Thank you!
Regards: DrCyberg