Cobbler logfiles growing out of control!
I discovered my cobbler logs were starting to take up a noticeable portion of my /var/log/ filesystem. It appears to be all in the pseudo-rotated log file collection in /var/log/cobbler/tasks/ . If there's a setting to control how much is retained, I haven't seen it yet. And I didn't have time to go looking as I had some filesystem issues to get through.
Here's my temporary fix:
# cat > /etc/cron.daily/zz-cobbler-tmpwatch
#!/bin/sh
/usr/sbin/tmpwatch -umc -f 720 /var/log/cobbler/tasks/
And that was it.
Now I can breathe easier while I dig out a better fix.
Let me know if this worked for you, or whether you found a better fix in cobbler itself.
Here's my temporary fix:
# cat > /etc/cron.daily/zz-cobbler-tmpwatch
#!/bin/sh
/usr/sbin/tmpwatch -umc -f 720 /var/log/cobbler/tasks/
Now I can breathe easier while I dig out a better fix.
Let me know if this worked for you, or whether you found a better fix in cobbler itself.
<< Home