Logrotate basics

By default, logrotate runs once a day, using a cron scheduler from /etc/cron.daily/ # ls /etc/cron.daily/ logrotate Configuration files for logrotate: default configuration /etc/logrotate.conf: $ cat /etc/logrotate.conf # see “man logrotate” for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after… Continue reading “Logrotate basics”

Leaving incrond for systemd.path

I’ve been having problems with incrond for months; after trying to upgrade from version 0.5.10, incrond would not trigger after a specified event occurred in the monitored path. After upgrading to version 0.5.12-9 (I couldn’t use 0.5.10 because of security policies), incrond has started behaving in a completely random way: sometimes it was triggered as… Continue reading “Leaving incrond for systemd.path”

NTP time drift

I had to update a couple of NTP servers and after rebooting Nagios was returning an alert on the check_ntp_peer check, indicating a time drift. To fix it, I forced a clock update with NTP servers: systemctl stop ntpd ntpdate -s ntp1.inrim.it systemctl start ntpdsystemctl stop ntpd ntpdate -s ntp1.inrim.it systemctl start ntpd