【问题标题】:ossec agent.conf updated but not readossec ag​​ent.conf 已更新但未读取
【发布时间】:2016-04-29 14:22:07
【问题描述】:

我已经通过二进制安装(使用 preloaded_var.conf)安装了服务器和代理。服务器上 agent.conf 文件中的更改在代理上更新,但是当我重新启动代理时,agent.conf 中的更改没有正在运行。

当我使用 verify-agent-conf 时,我收到 ERROR: Unable to open file '/queue/ossec/.agent_info' 并且没有其他错误。

agent.conf:

enter code here

                <localfile>
                <log_format>syslog</log_format>
                <location>/var/log/output.log</location>
                <alias>SAS LOG ALERT</alias>
                </localfile> 

                <localfile>
                <log_format>full_command</log_format>
                <command>netstat -ulpn|grep LISTEN |grep -v 127.0.0.1              | sort 
                </command>
                <alias>UDP Port Scan Alert  </alias>
                <frequency>3600</frequency>
                </localfile>

               <!-- Check Ossec process CPU usage in all Agent Machines -->
             <localfile>
             <log_format>full_command</log_format>
             <command>ps -eo pcpu,pid,user,args| grep ossec</command>
             <alias>Agent Process Details</alias>
             <frequency>3600</frequency>
             </localfile>

【问题讨论】:

    标签: intrusion-detection


    【解决方案1】:

    默认情况下,代理不会接受来自集中配置的命令。代理必须明确配置为接受远程命令,您可以通过在/var/ossec/etc/local_internal_options.conf 中设置logcollector.remote_commands=1 来启用此功能。

    您可以在此处找到有关集中式配置的更多信息:https://documentation.wazuh.com/4.0/user-manual/reference/centralized-configuration.html

    【讨论】:

      猜你喜欢
      • 2014-01-02
      • 1970-01-01
      • 1970-01-01
      • 2018-01-04
      • 1970-01-01
      • 1970-01-01
      • 2017-01-13
      • 2014-07-29
      • 2015-12-13
      相关资源
      最近更新 更多