Monitoring services with monit

I’m testing monit for active monitoring of linux services, and it looks very useful.

See this example from the documentation:

check process apache with pidfile /var/run/httpd.pid
start "/etc/init.d/httpd start"
stop  "/etc/init.d/httpd stop"
if failed host www.sol.no port 80 then alert
if failed host shop.sol.no port 443 then alert
if failed host chat.sol.no port 80 then alert
if failed host www.tildeslash.com port 80 then alert

Nice and clean, looks like monit will join my toolbox next to nagios, which is more suited to “external” monitoring while monit can also easily restart failed or unstable services automatically.

Comments are closed.

%d bloggers like this: