Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37433987
en ru br
Репозитории ALT
S:3.2.1-alt7
5.1: 2.12-alt3
4.1: 2.12-alt1.M41.1
4.0: 2.6-alt1
3.0: 2.0-alt1.1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: nagios-nrpe

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define nagios_bname nagios
%define nagios_bver 1.1
%define realname nrpe
%define nagios_plugdir %_libdir/nagios/plugins
%define nagios_confdir %_sysconfdir/nagios
%define plugin_docdir %_docdir/%nagios_bname-%nagios_bver/plug-ins
%define nagios_usr nagios
%define nagios_grp nagios

Name: %nagios_bname-%realname
Version: 2.0
Release: alt1.1

Summary: NRPE -- Nagios(R) Remote Plug-ins Execution daemon.
Summary(ru_RU.KOI8-R): NRPE -- Сервер выполнения команд Nagios(R) на удаленном хосте.
License: GPL
Group: Monitoring
URL: http://www.nagios.org
###########################################
# Relations with other POP3/IMAP server pkgs (like courier-imap)

# Provide the abstract service names (which are virtual pkg names),

# specify their origin (our pkg name as the epoch + version-release):
Provides: nagios-daemon = %name:%version-%release

# Conflict with all other real pkgs which provide the same services

# (they should specify the origin the same way, so the epoch-version-release
# of the virtual pkgs POP3D & IMAPD will always differ from that of ours if
# they are provided by a different real pkg):
Conflicts: nagios-daemon < %name:%version-%release
Conflicts: nagios-daemon > %name:%version-%release

# End of the statements to describe relations with other POP3/IMAP server pkgs

########################################
Requires: nagios-plugins

Source0: %realname-%version.tar.gz
Source1: %realname-init

# fix default NRPE configuration

Patch0: %realname-2.0-alt-config.patch

Prefix: %prefix

# Automatically added by buildreq on Sun Dec 21 2003

BuildRequires: libssl-devel openssl

%package -n %nagios_bname-plugins-%realname
Summary: Nagios(R) plug-in for NRPE.
Summary(ru_RU.KOI8-R): Модуль для Nagios(R), взаимодействующий с сервером NRPE.
License: GPL
Group: Monitoring
PreReq: nagios-plugins

%description
The %name packages contains the Nagios(R) Remote Plug-ins Executor
-- daemon which can execute predefined commands on the remote host.
Execution request is send via check_nrpe Nagios(R) plug-in. Allowed
monitoring commands are described in the daemon configuration file.

Install the %name package if you want accept and procedd requests
from check_nrpe on this hosts.

%description -l ru_RU.KOI8-R
NRPE -- сервер выполнения комманд системы мониторинга Nagios(R) на удаленном
хосте. Система мониторинга Nagios(R) отправляет запросы серверу NRPE с помощью
подключаемого модуля check_nrpe. Команды мониторинга описываются в файле
конфигурации демона.

Установите этот пакет, если вы желаете принимать запросы на выполнение команд
мониторинга от сервера Nagios(R).

%description -n %nagios_bname-plugins-%realname
Plug-in for Nagios(R) monitoring system. With this plug-in you can send check
request to remote host, with installed NRPE, and process result of execution
as host or service state.

%description -l ru_RU.KOI8-R -n %nagios_bname-plugins-%realname
Подключаемый модуль для системы мониторинга Nagios(R). Позволяет отправлять
запросы на выполнение команд мониторинга к удаленному хосту с установленным
демоном NRPE.

%prep
%setup -n %realname-%version

%patch0 -p1

%build
%configure \
--libexecdir=%nagios_plugdir \
--with-nrpe-user=%nagios_usr \
--with-nrpe-grp=%nagios_grp \
--with-nrpe-port=65534

%__make

%install

%__mkdir_p %buildroot/%nagios_confdir

%__mkdir_p %buildroot/%_initdir
%__mkdir_p %buildroot/%_sbindir
%__mkdir_p %buildroot/%nagios_plugdir
%__mkdir_p %buildroot/%plugin_docdir

# install binaries

%__install -m 0711 src/nrpe %buildroot/%_sbindir
%__install -m 0711 src/check_nrpe %buildroot/%nagios_plugdir

# install config

%__install -m 0644 nrpe.cfg %buildroot/%nagios_confdir

#install init-script


# install sample init-script and xinetd config file

%__install -m 0644 nrpe.xinetd %buildroot/%plugin_docdir/nrpe.xinetd
%__install -m 0644 %SOURCE1 %buildroot/%plugin_docdir

# install docs

for d in Changelog LEGAL README ; do
%__install -m 0644 $d %buildroot/%plugin_docdir/$d.%realname
done

#post

#post_service %realname

#preun

#preun_service %realname

%files
%dir %nagios_confdir
%nagios_confdir/nrpe.cfg
#_initdir/nrpe
%_sbindir/nrpe
%doc %plugin_docdir/*

%files -n %nagios_bname-plugins-%realname
%dir %nagios_plugdir
%nagios_plugdir/check_nrpe
%doc %plugin_docdir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin