packages: nagios-plugin-check_rrd/check_rrd.cfg (NEW), nagios-plugin-check_...

glen glen at pld-linux.org
Wed Oct 12 22:23:09 CEST 2011


Author: glen                         Date: Wed Oct 12 20:23:09 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/nagios-plugin-check_rrd:
   check_rrd.cfg (NONE -> 1.1)  (NEW), nagios-plugin-check_rrd.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_rrd/check_rrd.cfg
diff -u /dev/null packages/nagios-plugin-check_rrd/check_rrd.cfg:1.1
--- /dev/null	Wed Oct 12 22:23:09 2011
+++ packages/nagios-plugin-check_rrd/check_rrd.cfg	Wed Oct 12 22:23:04 2011
@@ -0,0 +1,27 @@
+# Usage:
+#     check_rrd.pl -R rrd_file --ds data_source [--cf CF] [-v] \
+#                 [--start timespec] [--end timespec] [--resolution seconds] \
+#                 [--compute MAX|MIN|AVERAGE|PERCENT] \
+#                 [--na-value-returncode OK|WARNING|ERROR|UNKNOWN] \
+#                 [--text-label label] [--performance-label label]
+#                 [--clip-warn-level percent] [--clip-crit-level percent] \
+#                 [-w warning_threshold] [-c critical_threshold]
+
+define command {
+	command_name    check_rrd
+	command_line    /usr/lib/nagios/plugins/check_rrd $ARG1$
+}
+
+define service {
+	use                     generic-service
+	name                    rrd
+	service_description     rrd
+	register                0
+
+	normal_check_interval   5
+	retry_check_interval    1
+
+	notification_interval   10
+
+	check_command           check_rrd
+}

================================================================
Index: packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec
diff -u /dev/null packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec:1.1
--- /dev/null	Wed Oct 12 22:23:10 2011
+++ packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec	Wed Oct 12 22:23:04 2011
@@ -0,0 +1,52 @@
+# $Revision$, $Date$
+%define		plugin	check_rrd
+%include	/usr/lib/rpm/macros.perl
+Summary:	Nagios plugin to check values from RRD database
+Name:		nagios-plugin-%{plugin}
+Version:	1.0
+Release:	1
+License:	GPL v2
+Group:		Networking
+Source0:	http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=489&cf_id=24#/%{plugin}.pl
+# Source0-md5:	468e0b91c696b8b0278834ee0c2db516
+Source1:	%{plugin}.cfg
+URL:		http://exchange.nagios.org/directory/Plugins/Databases/RRD/check_rrd-2Epl/details
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+Requires:	nagios-common
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/nagios/plugins
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%description
+Generic Perl plugin to check age and values of an RRD database. It
+uses RRDs and Nagios::Plugin.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/10/12 20:23:04  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list