I'm following the Nagios Ubuntu quickstart instructions. I'm on Ubuntu 10.10 and installing Nagios 3.2.3.
At the bottom of the docs it says I need to install the mailx and postfix packages. (Postfix is already installed.) But when I try to install mailx, I get asked which of 3 packages to install:
$ sudo apt-get install mailx
[sudo] password for nagios:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mailx is a virtual package provided by:
mailutils 1:2.1+dfsg1-4ubuntu1
heirloom-mailx 12.4-1.1
bsd-mailx 8.1.2-0.20090911cvs-2ubuntu1
You should explicitly select one to install.
E: Package mailx has no installation candidate
Which one should I install?
You should be able to install any of them. I have
bsd-mailx
on my system, and I don't see any reason not to go with it.It appears that this is the intended migration path.
Here's some of the
apt-cache show mailx
output:Two additional things, though. The instruction set you're using is quite old at this point (as you've seen, some package names change over time). And it's also about installing from source.
I'm assuming that you do actually want to install from source, presumably for more control or to get a specific version installed.
But in case you weren't aware of this (or for others who are not), there are a number of pre-built pacakges in the repositories for nagios already.
Here's some slightly edited output from
apt-cache search nagios
:You likely already have a suitable program installed. Try the commands:
mailx -s Test postmaster
andmail -s Test postmaster
. Exit the command by entering toctrl-c
s in a row. If either is found and doesn't fail when called as above, you should be ok. If one of them fails, you will need to verify that the command used is the one Nagios uses. You can change the command in your configuration if necessary.