jueves, 03 de mayo de 2012 7:13We are monitoring Linux servers using SCOM and the Linux team has identified that the following directoy
/var/opt/microsoft/scx/log has around 12GB data in it
Q:What data is in this log folder
Q:Why dow e need to have them
Q:What can we do to clean this up
Q:Is there any issue if we clean these up
Do we even need this
Todas las respuestas
jueves, 03 de mayo de 2012 9:35
Is it one log in particular that takes up that much space?
mats.w | www.opsmode.com
jueves, 03 de mayo de 2012 12:34Moderador
Wow - 12 GB of data. Did someone turn on trace logging and leave it on? If not, there is something wrong with the agent and it's doing a lot of warning/error logging which should be addressed. View the scx.log and see if there is anything that gives a clues as to why it's logging so much.
The agent, by default, will only log warning and errors and if running properly should rarely log anything so the log directory should be fairly small.
To clean it up do the following:
stop the agent - scxadmin -stop
remove the logs - rm -rf /var/opt/microsoft/scx/log/*
start the agent - scxadmin -start
set the logging to only catch warning/error issues - scxadmin -log-reset
After an hour or so see if the log is growing again. If it is there are still issues with the agent and the scx.log should give you a good idea what is causing it.
- Marcado como respuesta Kitaab domingo, 06 de mayo de 2012 13:38
domingo, 06 de mayo de 2012 13:40
There were couple or .trc files taking 2 GB each and scx.log was 1.9GB as well.
As checked the Tracing was Set to ALL TraceLevel=4
I have reset the Log Level to 1
Will monitor if it grows.