sajithgsm

Well-Known Member
Jun 9, 2020
98
19
83
Sri Lanka
cPanel Access Level
Root Administrator
Hi there,

Since several days, I'm getting this email from the server.


Subject:
Anacron job 'cron.daily' on hostname.domain.lk

Body:

/etc/cron.daily/logrotate:

Redirecting to /bin/systemctl restart imunify360-pam.service


Any idea how to solve that thing?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,620
363
cPanel Access Level
Root Administrator
Hey there! I would likely need some more details before I could make a good recommendation on the issue.

Can you send me the output of this command?

Code:
cat /etc/logrotate.d/imunify*
That will show the current rotation configuration for any imunify services.
 

sajithgsm

Well-Known Member
Jun 9, 2020
98
19
83
Sri Lanka
cPanel Access Level
Root Administrator
Hi,
Thank you so much for the reply.

These are the result.


/var/log/imunify360/captcha.log {
# Keep 3 lotated files before removal
rotate 3
maxsize 50M
hourly
compress
delaycompress

nocreate
missingok

postrotate
if systemctl status imunify360-captcha > /dev/null ; then \
systemctl restart imunify360-captcha > /dev/null; \
fi;
endscript
}
/var/log/imunify360/pam.log {
missingok
notifempty
size 30k
create 0600 root root
postrotate
service imunify360-pam restart
endscript
}
/var/log/imunify360-webshield/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 imunify360-webshield adm
sharedscripts
postrotate
if [ -f /var/run/imunify360-webshield.pid ]; then
kill -USR1 `cat /var/run/imunify360-webshield.pid`
fi
endscript
}
/var/log/wsshdict/wsshdict.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 600 imunify360-webshield imunify360-webshield
sharedscripts
postrotate
if [ -f /var/run/wsshdict/wsshdict.pid ]; then
kill -USR1 `cat /var/run/wsshdict/wsshdict.pid`
fi
endscript
}
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,620
363
cPanel Access Level
Root Administrator
Thanks for that - that does match what I'm seeing on a stock test machine.

It might be best to open a ticket with our team so we can examine the server directly and see what the issue may be. If you do submit a ticket, please post the number here so I can follow along and make sure this thread stays updated.