wwwhizz' blog Jan Kazemier & his music, photography, nerd-projects, developing, electronics and gadgets

27Apr/090

Make monit send less email

Today I found some nice extensions in the monit configuration file.

If you only want an alert message sent for certain events and just for some services, then append the alert-statement with the following lines.

check process apache2 with pidfile /var/run/apache2.pid
alert myemail@adress.ext only on { timeout, nonexist }

Only and on are so called "noise keywords", ignored by Monit to make it more readable.

You can also setup to send alerts for all events except some by putting the word "not" ahead of the list. For example, if you want to receive alerts for all events except Monit instance events, you can write (note that the noise words 'but' and 'on' are optional):

check system myserver
alert foo@bar but not on { instance }

instead of:

alert myemail@adress.ext on { action
checksum
content
data
exec
gid
icmp
invalid
fsflags
nonexist
permission
pid
ppid
size
timeout
timestamp }

Some parts of this are taken from the Monit Documentation

24Apr/092

Blogs come and blogs go

Actually, I wasn't planning on having a blog. Then a friend of mine showed me how well WordPress works, and I quite liked it. Thought I might give it a go. I'll post my worklog on my midibox here, some small Debian HOW-TO's as well as some tech-related stories.

Comments are highly appreciated :)