I did it exactly according to the instructions on the windows machine (windows server 2012):
- In the file internal_options.conf I have converted logcollector.remote_commands = 1
- I also added in the file local_internal_options.conf logcollector.remote_commands = 1
On OSSEC server (ossec 3.1.0) I configured the agent.conf file as follows:
<agent_config os = "windows">
<localfile>
<log_format> full_command </log_format>
<command> tasklist </command>
<frequency> 60 </frequency>
</localfile>
</agent_config>
But when I verify agent.conf, the message is as follows:
2020/07/13 21:02:42 verify-agent-conf: Remote commands are not accepted from the manager. Ignoring it on the agent.conf
2020/07/13 21:02:42 verify-agent-conf (1202): ERROR: Configuration error at '/var/ossec/etc/shared/agent.conf'. Exiting.
Hope everyone can show me how to fix this, thank you very much