This is a known issue affecting vRealize Operations 8.0-8.3, specifically with the Application Remote Collector. The currently recommended solution is to migrate to
Workaround:
To workaround the issue:
For an Application Remote Collector with external internet access
- SSH to the Application Remote Collector as root
- Install the logrotate package
tdnf install logrotate
- Using a text editor, create a file cron-log in this location: /etc/logrotate.d/cron-log, with the beneath content
/var/log/cron {
daily
missingok
copytruncate
rotate 2
size 1M
compress
notifempty
}
- Take a backup of this file:
cp /ucp/ucp-config-scripts/cron-input /ucp/ucp-config-scripts/cron-input_backup
- Using a text editor, append the following entry to the end of the original /ucp/ucp-config-scripts/cron-input file. This will create a cron job entry to enable the log rotation for /var/log/cron which will run at 22:00 each day:
0 22 * * * /usr/sbin/logrotate /etc/logrotate.d/cron-log
- Save your changes and exit the text editor
- Run the following command to submit this file to crontab
crontab /ucp/ucp-config-scripts/cron-input
- To confirm it was added, run the following command. You should see the cron entry we added in step 5 in the output.
crontab -l
For an Application Remote Collector without external internet access
- Download the logrotate-3.9.1-2.ph1.x86_64.rpm from the attachments
- Copy the file to the /tmp directory of your Application Remote Collector Appliance
- SSH to the Application Remote Collector as root
- Install the logrotate package
rpm -ivh logrotate-3.9.1-2.ph1.x86_64.rpm
- Using a text editor, create a file cron-log in this location: /etc/logrotate.d/cron-log, with the beneath content
/var/log/cron {
daily
missingok
copytruncate
rotate 2
size 1M
compress
notifempty
}
- Take a backup of this file:
cp /ucp/ucp-config-scripts/cron-input /ucp/ucp-config-scripts/cron-input_backup
- Using a text editor, append the following entry to the end of the original /ucp/ucp-config-scripts/cron-input file. This will create a cron job entry to enable the log rotation for /var/log/cron which will run at 22:00 each day:
0 22 * * * /usr/sbin/logrotate /etc/logrotate.d/cron-log
- Save your changes and exit the text editor
- Run the following command to submit this file to crontab
crontab /ucp/ucp-config-scripts/cron-input
- To confirm it was added, run the following command. You should see the cron entry we added in step 5 in the output.
crontab -l