AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 29163
Accepted
coffee-grinder
coffee-grinder
Asked: 2011-03-06 13:50:18 +0800 CST2011-03-06 13:50:18 +0800 CST 2011-03-06 13:50:18 +0800 CST

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

  • 772

我正在遵循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

我应该安装哪一个?

email
  • 2 2 个回答
  • 14236 Views

2 个回答

  • Voted
  1. Best Answer
    belacqua
    2011-03-06T14:34:19+08:002011-03-06T14:34:19+08:00

    您应该能够安装其中的任何一个。我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 的存储库中已经有许多预构建的 pacakges。

    这是一些稍微编辑的输出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
    
    • 4
  2. BillThor
    2011-03-06T20:07:17+08:002011-03-06T20:07:17+08:00

    您可能已经安装了合适的程序。尝试命令:mailx -s Test postmaster和mail -s Test postmaster. ctrl-c连续输入 s 退出命令。如果找到任何一个并且在如上所述调用时没有失败,那么你应该没问题。如果其中一个失败,您将需要验证使用的命令是否是 Nagios 使用的命令。如有必要,您可以更改配置中的命令。

    • 2

相关问题

  • 如何让 Evolution 自动应用过滤器?

  • 电脑残障人士的电邮申请

  • 在 Kmail 中配置 GPG

  • 如何在不保持主 UI 打开的情况下进行 Evolution 检查并通知新电子邮件?[关闭]

  • 如何配置邮件服务器以报告与服务器名称不同的主机名[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    我需要什么命令来解压缩/提取 .tar.gz 文件?

    • 8 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Marko Smith

    如何使用命令行将用户添加为新的 sudoer?

    • 7 个回答
  • Marko Smith

    更改文件夹权限和所有权

    • 9 个回答
  • Martin Hope
    EmmyS 我需要什么命令来解压缩/提取 .tar.gz 文件? 2011-02-09 14:50:41 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve