Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37042536
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 realname nrpe
%define nagios_confdir   %_sysconfdir/nagios
%define contacts_cfgdir  %_sysconfdir/nagios/contacts
%define plugins_cmddir   %_sysconfdir/nagios/commands
%define templates_cfgdir %_sysconfdir/nagios/templates
%define nagios_plugdir   %_libexecdir/nagios/plugins
%define nagios_evhdir    %_libexecdir/nagios/eventhandlers
%define plugin_docdir    %_docdir/%name-%version
%define nagios_usr nagios
%define nagios_grp nagiosnew

Name: nagios-%realname
Version: 3.2.1
Release: alt7

Summary: NRPE -- Nagios(R) Remote Plug-ins Execution daemon.
Summary(ru_RU.UTF-8): NRPE -- п║п╣я─п╡п╣я─ п╡я▀п©п╬п╩п╫п╣п╫п╦я▐ п╨п╬п╪п╟п╫п╢ Nagios(R) п╫п╟ я┐п╢п╟п╩п╣п╫п╫п╬п╪ я┘п╬я│я┌п╣.
License: GPLv2
Group: Monitoring
URL: http://www.nagios.org

###########################################

# Relations with Nagios daemon or other nagios-plugins executors pkgs (like NRPE)

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

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

# 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 will always differ from that of ours if they are provided
# by a different real pkg):
Conflicts: nagios-daemon < %EVR
Conflicts: nagios-daemon > %EVR
# End of the statements to describe relations with Nagios daemon or NRPE pkgs
########################################

Requires: nagios-plugins
Requires(pre): nagios-common
Conflicts: nagios < 3.0.6-alt12

Source0: %name-%version.tar
Source1: %realname-init
Source2: nagios-addons-nrpe.cfg

# fix default NRPE configuration

Patch0: %realname-3.2.1-alt-config.patch
Patch1: %realname-2.12-alt-defpath.patch

# Automatically added by buildreq on Sat Jul 01 2006

BuildRequires: libssl-devel openssl

%package -n nagios-addons-%realname
Summary: Nagios(R) plug-in for NRPE.
Summary(ru_RU.UTF-8): п°п╬п╢я┐п╩я▄ п╢п╩я▐ Nagios(R), п╡п╥п╟п╦п╪п╬п╢п╣п╧я│я┌п╡я┐я▌я┴п╦п╧ я│ я│п╣я─п╡п╣я─п╬п╪ NRPE.
License: GPLv2
Group: Monitoring
PreReq: nagios-plugins
Provides: nagios-plugins-nrpe = %version
Obsoletes: nagios-plugins-nrpe

%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.UTF-8
NRPE -- я│п╣я─п╡п╣я─ п╡я▀п©п╬п╩п╫п╣п╫п╦я▐ п╨п╬п╪п╪п╟п╫п╢ я│п╦я│я┌п╣п╪я▀ п╪п╬п╫п╦я┌п╬я─п╦п╫пЁп╟ Nagios(R) п╫п╟ я┐п╢п╟п╩п╣п╫п╫п╬п╪
я┘п╬я│я┌п╣. п║п╦я│я┌п╣п╪п╟ п╪п╬п╫п╦я┌п╬я─п╦п╫пЁп╟ Nagios(R) п╬я┌п©я─п╟п╡п╩я▐п╣я┌ п╥п╟п©я─п╬я│я▀ я│п╣я─п╡п╣я─я┐ NRPE я│ п©п╬п╪п╬я┴я▄я▌
п©п╬п╢п╨п╩я▌я┤п╟п╣п╪п╬пЁп╬ п╪п╬п╢я┐п╩я▐ check_nrpe. п п╬п╪п╟п╫п╢я▀ п╪п╬п╫п╦я┌п╬я─п╦п╫пЁп╟ п╬п©п╦я│я▀п╡п╟я▌я┌я│я▐ п╡ я└п╟п╧п╩п╣
п╨п╬п╫я└п╦пЁя┐я─п╟я├п╦п╦ п╢п╣п╪п╬п╫п╟.

пёя│я┌п╟п╫п╬п╡п╦я┌п╣ я█я┌п╬я┌ п©п╟п╨п╣я┌, п╣я│п╩п╦ п╡я▀ п╤п╣п╩п╟п╣я┌п╣ п©я─п╦п╫п╦п╪п╟я┌я▄ п╥п╟п©я─п╬я│я▀ п╫п╟ п╡я▀п©п╬п╩п╫п╣п╫п╦п╣ п╨п╬п╪п╟п╫п╢
п╪п╬п╫п╦я┌п╬я─п╦п╫пЁп╟ п╬я┌ я│п╣я─п╡п╣я─п╟ Nagios(R).

%description -n nagios-addons-%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.UTF-8 -n nagios-addons-%realname
п÷п╬п╢п╨п╩я▌я┤п╟п╣п╪я▀п╧ п╪п╬п╢я┐п╩я▄ п╢п╩я▐ я│п╦я│я┌п╣п╪я▀ п╪п╬п╫п╦я┌п╬я─п╦п╫пЁп╟ Nagios(R). п÷п╬п╥п╡п╬п╩я▐п╣я┌ п╬я┌п©я─п╟п╡п╩я▐я┌я▄
п╥п╟п©я─п╬я│я▀ п╫п╟ п╡я▀п©п╬п╩п╫п╣п╫п╦п╣ п╨п╬п╪п╟п╫п╢ п╪п╬п╫п╦я┌п╬я─п╦п╫пЁп╟ п╨ я┐п╢п╟п╩п╣п╫п╫п╬п╪я┐ я┘п╬я│я┌я┐ я│ я┐я│я┌п╟п╫п╬п╡п╩п╣п╫п╫я▀п╪
п╢п╣п╪п╬п╫п╬п╪ NRPE.

%prep
%setup
%patch0 -p1
#patch1 -p1

%build
%configure \
   --with-nrpe-user=%nagios_usr \
   --with-nrpe-group=%nagios_grp \
   --with-nrpe-port=65534 \
   --enable-ssl \
   --disable-command-args \
   --with-pluginsdir="%_libexecdir/nagios/plugins" \
   --with-piddir=/run

%make_build all
#pushd contrib
# gcc -o nrpe_check_control nrpe_check_control.c
#popd

%install
mkdir -p %buildroot%plugin_docdir

# install binaries

install -pDm0711 src/nrpe %buildroot%_sbindir/nrpe
install -pDm0711 src/check_nrpe %buildroot%nagios_plugdir/check_nrpe
#install -pDm0711 contrib/nrpe_check_control %buildroot%nagios_evhdir/nrpe_check_control

# install config

install -pDm0644 sample-config/nrpe.cfg %buildroot%nagios_confdir/nrpe.cfg
install -pDm0644 %SOURCE2 %buildroot%plugins_cmddir/nagios-addons-nrpe.cfg

#install init-script

install -pDm0755 %SOURCE1 %buildroot%_initdir/nrpe

# install docs

for d in CHANGELOG.md LEGAL README* SECURITY.md; do
   install -m 0644 $d %buildroot%plugin_docdir/
done
#install -m 0644 contrib/README.nrpe_check_control %buildroot%plugin_docdir/

mkdir -p %buildroot%nagios_confdir/nrpe-commands

%pre
%_sbindir/groupadd -r -f %nagios_grp &>/dev/null ||:
%_sbindir/useradd -r -n -g %nagios_grp -d %_localstatedir/nagios \
   -s /bin/false -c 'Nagios(R) account' %nagios_usr &>/dev/null ||:

%post
%post_service %realname

%preun
%preun_service %realname

%files
%dir %nagios_confdir
%dir %nagios_confdir/nrpe-commands
%config(noreplace) %nagios_confdir/nrpe.cfg
%_initdir/nrpe
%_sbindir/nrpe
%doc %plugin_docdir/*
# The package does not own its own docdir subdirectory.
# The line below is added by repocop to fix this bug in a straightforward way.
# Another way is to rewrite the spec to use relative doc paths.
%dir %_docdir/nagios-nrpe-%version

%files -n nagios-addons-%realname
%config(noreplace) %plugins_cmddir/nagios-addons-nrpe.cfg
%nagios_plugdir/check_nrpe
#%nagios_evhdir/nrpe_check_control
%doc %plugin_docdir/*

%changelog

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

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