我应该为Nagios安装哪个mailx软件包?


10

我正在遵循Nagios Ubuntu快速入门说明。我正在Ubuntu 10.10上并安装Nagios 3.2.3。

在文档底部,它说我需要安装mailx和postfix软件包。(已经安装了Postfix。)但是,当我尝试安装mailx时,系统会询问我要安装3个软件包中的哪个:

$ 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

我应该安装哪一个?

Answers:


4

您应该能够安装其中的任何一个。我已经bsd-mailx安装了系统,但是我看不出任何理由不使用它。

看来这是预期的迁移路径。
这是一些apt-cache show mailx输出:

Depends: bsd-mailx
Description: Transitional package for mailx rename
 This dummy package is provided to smooth the upgrade from mailx to
 bsd-mailx and can be safely removed afterwards.

不过,还有两件事。此时,您正在使用的指令集已经很旧了(如您所见,某些程序包名称会随着时间而改变)。这也与从源代码安装有关。

我假设您实际上确实想从源代码安装,大概是为了获得更多控制权或安装特定版本。
但是,如果您不了解此信息(或对于其他人则不知道),则存储库中已经有许多针对nagios的预制包装。

这是来自的一些经过稍微编辑的输出apt-cache search nagios

nagios3-core - A host/service/network monitoring and management system core files
nagios3 - A host/service/network monitoring and management system
nagios3-cgi - cgi files for nagios3
nagios3-common - support files for nagios3
nagios3-dbg - debugging symbols and debug stuff for nagios3
nagios3-doc - documentation for nagios3
nagios-images - Collection of images and icons for the nagios system
nagios-nrpe-server - Nagios Remote Plugin Executor Server
nagios-plugins - Plugins for the nagios network monitoring and management system
nagios-plugins-basic - Plugins for the nagios network monitoring and management system
nagios-plugins-standard - Plugins for the nagios network monitoring and management system
[...]
djagios - A package to help configure nagios written in Django
libnagios-object-perl - module to parse and represent Nagios configuration as objects
libnagios-plugin-perl - family of perl modules to streamline writing Nagios
mailping - monitor email service availability and functioning
nagcon - console application interfacing to Nagios
nagios-nrpe-plugin - Nagios Remote Plugin Executor Plugin
nagios-plugins-extra - Plugins for the nagios network monitoring and manegement system.
nagios-snmp-plugins - SNMP Plugins for nagios
nagios-statd-client - Nagios client for monitoring remote system information
nagios-statd-server - Nagios server for monitoring remote system information
nagiosgrapher - Charting add-on for Nagios
nagstamon - Nagios status monitor which takes place in systray or on desktop
nagvis - Visualization addon for Nagios
ndoutils-nagios3-mysql - This provides the NDOUtils for Nagios with MySQL support
nsca - Nagios service monitor agent
pomamonitor - A simple host downtime alert for GNOME/KDE desktop

2

您可能已经安装了合适的程序。尝试以下命令:mailx -s Test postmastermail -s Test postmasterctrl-c连续输入到退出命令。如果找到任何一个并且按上述方式调用时没有失败,则应该没问题。如果其中之一失败,则需要验证所使用的命令是Nagios所使用的命令。您可以根据需要在配置中更改命令。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.