2

バイナリ インストール (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>
4

1 に答える 1