Required Nagios email alert packages

Nagios saves me more sleep than I care to admit, but configuring its email alerts if you build from source requires a little more finesse. Specifically, you need postfix (likely you already have) and heirloom-mailx.

On Debian (and probably Ubuntu, but check first):

apt-get install heirloom-mailx

On FreeBSD:

cd /usr/ports/mail/heirloom-mailx
make install clean

And NetBSD’s pkgsrc:

cd /usr/pkg/mail/heirloom-mailx
make install clean

The BSDs also have binary versions in pkgng/pkgin, ports and pkgsrc. That’s a lot of package managers.


This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at Thanks :).