Accepting request 296376 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/296376 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Monitor-Simple?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
aad6fa6801
commit
6609f4a9fe
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 19:28:32 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.2.8
|
||||
see /usr/share/doc/packages/perl-Monitor-Simple/ChangeLog
|
||||
|
||||
2013-06-08 Martin Senger <martin.senger@gmail.com>
|
||||
|
||||
* Version 0.2.8 released.
|
||||
|
||||
* Fixed tests (some where depending on the order of keys in a
|
||||
hash).
|
||||
|
||||
2013-06-03 Martin Senger <martin.senger@gmail.com>
|
||||
|
||||
* Version 0.2.7 released.
|
||||
|
||||
* Fixed some tests in order to work under Windows (patches
|
||||
contributed by GWS@cpan.org).
|
||||
|
||||
* Version 0.2.6 released.
|
||||
|
||||
* Moved to the GitHub repository => bugtracker changed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 19 02:17:26 UTC 2012 - pascal.bleser@opensuse.org
|
||||
|
||||
|
||||
+56
-70
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Monitor-Simple
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,110 +17,96 @@
|
||||
|
||||
|
||||
Name: perl-Monitor-Simple
|
||||
Version: 0.2.5
|
||||
Version: 0.2.8
|
||||
Release: 0
|
||||
Summary: Perl Module for Simple Monitoring of Applications and Services
|
||||
License: GPL-2.0+ or Artistic-1.0(GPL-2.0+ or Artistic-1.0)
|
||||
%define cpan_name Monitor-Simple
|
||||
Summary: Simple monitoring of applications and services
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/T/TU/TULSOFT/Monitor-Simple-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/Monitor-Simple
|
||||
Url: http://search.cpan.org/dist/Monitor-Simple/
|
||||
Source: http://www.cpan.org/authors/id/T/TU/TULSOFT/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(File::Basename)
|
||||
BuildRequires: perl(File::Slurp)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(File::Which)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Getopt::Long) >= 2.38
|
||||
BuildRequires: perl(IO::CaptureOutput)
|
||||
BuildRequires: perl(LWP::UserAgent)
|
||||
BuildRequires: perl(Log::Log4perl)
|
||||
BuildRequires: perl(Parallel::ForkManager)
|
||||
BuildRequires: perl(Pod::Usage)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Time::HiRes)
|
||||
BuildRequires: perl(XML::Simple)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(Fcntl)
|
||||
Requires: perl(File::Basename)
|
||||
Requires: perl(File::Spec)
|
||||
Requires: perl(File::Temp)
|
||||
Requires: perl(Getopt::Long) >= 2.38
|
||||
Requires: perl(IO::CaptureOutput)
|
||||
Requires: perl(LWP::UserAgent)
|
||||
Requires: perl(Log::Log4perl)
|
||||
Requires: perl(Parallel::ForkManager)
|
||||
Requires: perl(Pod::Usage)
|
||||
Requires: perl(Time::HiRes)
|
||||
Requires: perl(XML::Simple)
|
||||
Requires: perl(constant)
|
||||
Requires: perl(strict)
|
||||
Requires: perl(warnings)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
Recommends: smonitor = %{version}-%{release}
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
The Monitor::Simple allows simple monitoring of applications and services
|
||||
The *Monitor::Simple* allows simple monitoring of applications and services
|
||||
of your IT infrastructure. There are many such tools, some of them very
|
||||
complex and sophisticated. For example, one widely used is *Nagios*
|
||||
(<http://www.nagios.org/>). The Monitor::Simple does not aim, as its
|
||||
complex and sophisticated. For example, one widely used is _Nagios_ (the
|
||||
http://www.nagios.org/ manpage). The _Monitor::Simple_ does not aim, as its
|
||||
name indicates, for all features provided by those tools. It allows,
|
||||
however, to check whether your applications and services are running
|
||||
correctly. Its simple command-line interface can be used in cron jobs and
|
||||
reports can be viewed as a single HTML or text page.
|
||||
|
||||
%package -n smonitor
|
||||
Summary: Simple Monitoring of Applications and Services
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Regarding *what* it checks, it uses the same concept as _Nagios_: all
|
||||
checking is done by *plugins*, standalone scripts. And more to it: these
|
||||
plugins are fully compatible with the Nagios plugins. Which means that you
|
||||
either write your own plugins and use them either with _Monitor::Simple_ or
|
||||
with _Nagios_, or you can use many existing Nagios plugins and use them
|
||||
directly with the _Monitor::Simple_. For example, the "Memory check" in the
|
||||
synopsis above is an unchanged Nagios plugin.
|
||||
|
||||
%description -n smonitor
|
||||
smonitor allows simple monitoring of applications and services of your IT
|
||||
infrastructure.
|
||||
Another concept used by _Monitor::Simple_ are *notifiers*. These are again
|
||||
standalone scripts that are called whenever a service/application check is
|
||||
done and there is a notifier (or notifiers) defined to be used. The
|
||||
notification can be sent (or ignored) for every possible check result
|
||||
(errors, OK, all, etc.). Because these _notifiers_ are just standalone
|
||||
scripts, one can easily wrapped many existing notifying tools (pagers, SMS
|
||||
senders, etc.); again, many of them are known to Nagios and similar
|
||||
programs.
|
||||
|
||||
Finally, the last "concept" in _Monitor::Simple_ is the configuration. The
|
||||
Monitor::Simple uses an *XML configuration file* defining what services
|
||||
should be checked, how to check them (meaning, what plugins to use) and
|
||||
whom to notify (meaning, what notifiers to use). You can use
|
||||
Monitor::Simple without any Perl programming, just by creating a
|
||||
configuration file (because only you know what services you wish to check)
|
||||
and use it with the provided ready-to-use script *smonitor*, providing that
|
||||
the few plugins and notifiers distributed with Monitor::Simple are good
|
||||
enough (at least as a starting point). The _smonitor_ has its own
|
||||
documentation describing its command-line parameters in details:
|
||||
|
||||
smonitor -man
|
||||
|
||||
However, either way (using _smonitor_ or embedding _Monitor::Simple_ into
|
||||
your Perl code), you need to write a configuration file. So, let's start
|
||||
with it:
|
||||
|
||||
%prep
|
||||
%setup -q -n "Monitor-Simple-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?_smp_flags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README
|
||||
%dir %{perl_vendorlib}/Monitor
|
||||
%{perl_vendorlib}/Monitor/Simple.pm
|
||||
%{perl_vendorlib}/Monitor/Simple
|
||||
%doc %{perl_man3dir}/Monitor::Simple.%{perl_man3ext}%{ext_man}
|
||||
%doc %{perl_man3dir}/Monitor::Simple::*.%{perl_man3ext}%{ext_man}
|
||||
|
||||
%files -n smonitor
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/smonitor
|
||||
%doc %{_mandir}/man1/smonitor.1*
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc ChangeLog LICENSE README README.md
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:641bbd80432137f338d4e837c9ccbda5b7aa0423ada8c826e44bd0f9eaa90e73
|
||||
size 80065
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e38607dc76d36cef8de0d18fd4879f9b2444b6b3e3c098ac3ce99db3d1842b3b
|
||||
size 82562
|
||||
Reference in New Issue
Block a user