I am trying to use corrective action to delete the old log files from OEL 6.3 host and it is not working.
I gave the following command in the Host->Monitoring->Metric and Collection setting->Total Disk Usage->Warning->Single Operation->Warning
find /u01/app/oracle/admin/soa_domain/mserver/soa_domain/servers/WLS_OSB1/logs -mtime +1 -a ! -name "access.log" -a ! -name "WLS_OSB1-diagnostic.log" -a ! -name "WLS_OSB1.log" -a ! -name "WL S_OSB1.out" -exec rm -f {} \;
I also gave the credential for the Named Credentials.
It does not work
I also tried a different option
I gave the following command in the Host->Monitoring->Metric and Collection setting->Total Disk Usage->Warning->Single Operation->Critical
and selected multi tasking and gave the following command
cd /u01/app/oracle/admin/soa_domain/mserver/soa_domain/servers/WLS_OSB1/logs
rm -rf WLS_OSB1.out0* WLS_OSB1.log0*
Both of them are not working...
Need help...