Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37728832
en ru br
ALT Linux repositórios
S:3.2.1-alt7
5.0: 2.12-alt2.1
4.1: 2.12-alt1.M41.1
4.0: 2.6-alt1
3.0: 2.0-alt1.1

Group :: Monitoramento
RPM: nagios-nrpe

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009