All my linux machines run logrotate between 4am to 5am on Sundays. During this run, snmpd is restarted to free the lock on the log file. Unfortunately, NPM believes a reboot has occured whenever snmpd is restarted because sysUpTime.0 is reset. Is there a way to mitigate this false reboot alert?
/etc/logrotate.d/snmpd:
/var/log/snmpd.log {
notifempty
missingok
postrotate
/sbin/service snmpd condrestart 2> /dev/null > /dev/null || true
endscript
}
Thank you,
Chris