Thanks for the information Chema,
Regarding the messages from ossec-remoted there were a dozen of so old agents that should have been removed before and were still running. I have requested they remove them and will monitor the log to verify that warning goes away.
For the csyslogd memory issue. The osscec-csyslogd will use all memory until it stopped the csyslogd service from running.
////////////////////////////////////////////////////////
First thing this morning, I noticed the RAM usage was very low and the service was stopped.
# free -m
total used free shared buffers cached
Mem: 16080 1105 14975 0 1 84
-/+ buffers/cache: 1019 15061
Swap: 1999 277 1722
# managerstatus
wazuh-clusterd is running...
ossec-monitord is running...
ossec-logcollector is running...
ossec-remoted is running...
ossec-syscheckd is running...
ossec-analysisd is running...
ossec-maild not running...
ossec-execd not running...
wazuh-modulesd is running...
wazuh-db is running...
ossec-csyslogd: Process 30485 not used by ossec, removing...
ossec-csyslogd not running...
ossec-authd is running...
/////////////////////////////////////////////////////////////
After restart, 8:25am
# managerstatus
wazuh-clusterd is running...
ossec-monitord is running...
ossec-logcollector is running...
ossec-remoted is running...
ossec-syscheckd is running...
ossec-analysisd is running...
ossec-maild not running...
ossec-execd not running...
wazuh-modulesd is running...
wazuh-db is running...
ossec-csyslogd is running...
ossec-authd is running...
# free -m
total used free shared buffers cached
Mem: 16080 1069 15011 0 2 108
-/+ buffers/cache: 958 15122
Swap: 1999 267 1732
///////////////////////////////////////////
After 1.5 hours
# free -m
total used free shared buffers cached
Mem: 16080 3972 12108 0 13 407
-/+ buffers/cache: 3551 12529
14431 ossecm 20 0 2514m 2.4g 748 S 0.0 15.5 0:06.85 ossec-csyslogd <-- %MEM at 15.5% from top
/////////////////////////////////////////
After 3 hours
# free -m
total used free shared buffers cached
Mem: 16080 7264 8816 0 13 454
-/+ buffers/cache: 6797 9283
Swap: 1999 267 1732
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14431 ossecm 20 0 5629m 5.5g 748 S 0.0 34.9 0:15.72 ossec-csyslogd <-- %MEM upto 34.9%
///////////////////////////////////////////
After 5 hours
# free -m
total used free shared buffers cached
Mem: 16080 9940 6140 0 13 499
-/+ buffers/cache: 9427 6653
Swap: 1999 266 1733
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14431 ossecm 20 0 8282m 8.1g 748 S 0.0 51.4 0:23.82 ossec-csyslogd <-- %MEM upto 51.4%
1607 root 20 0 1517m 780m 2828 S 2.3 4.9 1384:59 java
14461 ossec 20 0 74696 56m 1052 S 0.7 0.4 2:35.16 ossec-analysisd
As you can see the memory usage increases over time until it's maxed out and then stops the csyslogd service. Can you help me identify why it's happening and/or what is causing this?
Regards,
Robert