Event Monitoring

My recent problem with the Raspberry Pi is an event monitoring and notification problem. It’s one, that over my career, I have spent a lot of time considering, but today, I only have one server. I don’t think I need or want to afford something like Zabbix, which comes with a series of event monitors and reporting and dashboard functionality. I have however adopted the habit of attempting to dovetail with host OS’s logging and reporting schemes. At the moment, I have written two event monitors which report to the desk top. Can I do better? Here are my notes. Continue reading “Event Monitoring”

Log Rotate and *NIX

This has changed since my days at Pyramid. There has been quite a lot of thinking and engineering about dealing with daemon logs. The places to look are via the syslogd, newsyslog project, you can see a the newsyslog man pages and using the keyword “rotate log”. The idea is that logs are rotated, although the names are not and that old logs are deleted. So the newest is called mypackage or mypackage.0 and the older logs increment the counter. Logs are generally kept in /var/log or /var/log/package_name and not in the package or product install tree. What a nob? There is a command ‘logrotate’; it can be installed using macports. It needs a a configuration file. Continue reading “Log Rotate and *NIX”