Какой пакет mailx я должен установить для Nagios?

Я следую инструкциям 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

Какой мне установить?

10
задан 6 March 2011 в 00:50

2 ответа

Вероятно, у вас уже установлена ​​подходящая программа. Попробуйте команды: mailx -s Test postmaster и mail -s Test postmaster. Выйдите из команды, введя ctrl-c подряд. Если любой из них найден и не выходит из строя при вызове, как указано выше, все должно быть в порядке. В случае сбоя одного из них вам необходимо убедиться, что используется команда, которую использует Nagios. При необходимости вы можете изменить команду в вашей конфигурации.

0
ответ дан 6 March 2011 в 00:50

Вы должны быть в состоянии установить любой из них. У меня есть 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
0
ответ дан 6 March 2011 в 00:50

Другие вопросы по тегам:

Похожие вопросы: