hvad pushed to shinken (el6). "path.cfg file"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu May 7 17:55:12 UTC 2015
From 882d898c0ff64b47fa3774e4ec22e10b64f06ca3 Mon Sep 17 00:00:00 2001
From: hvad <david.hannequin at gmail.com>
Date: Sat, 14 Feb 2015 16:58:52 +0100
Subject: path.cfg file
diff --git a/path.cfg b/path.cfg
index dc369ce..27b7f6d 100644
--- a/path.cfg
+++ b/path.cfg
@@ -1 +1,5 @@
+# Plugin path for X86_64
$PLUGINSDIR$=/usr/lib64/nagios/plugins
+
+# Change plugin path if you need :
+#$PLUGINSDIR$=/usr/lib/nagios/plugins
diff --git a/shinken.spec b/shinken.spec
index 9afe373..baa4364 100644
--- a/shinken.spec
+++ b/shinken.spec
@@ -5,7 +5,7 @@
Summary: Python Monitoring tool
Name: shinken
Version: 2.2
-Release: 3%{?dist}
+Release: 4%{?dist}
URL: http://www.%{name}-monitoring.org
Source0: https://github.com/naparuba/%{name}/archive/%{version}.tar.gz
Source1: %{name}-arbiter.service
@@ -21,6 +21,7 @@ Source10: %{name}-scheduler.init
Source11: %{name}-receiver.init
Source12: %{name}-poller.init
Source13: %{name}.8shinken
+Source14: path.cfg
License: AGPLv3+
Requires: python-simplejson
Requires: python-pycurl
@@ -148,7 +149,7 @@ install -p -m0644 for_fedora/etc/objects/contacts/nagiosadmin.cfg %{buildroot}%{
install -p -m0644 for_fedora/etc/objects/hosts/localhost.cfg %{buildroot}%{_sysconfdir}/%{name}/hosts/localhost.cfg
install -p -m0644 for_fedora/etc/objects/services/linux_disks.cfg %{buildroot}%{_sysconfdir}/%{name}/services/linux_disks.cfg
install -p -m0644 for_fedora/etc/contactgroups.cfg %{buildroot}%{_sysconfdir}/%{name}/contactgroups/contactgroups.cfg
-echo '$PLUGINSDIR$=%{_libdir}/nagios/plugins' > %{buildroot}%{_sysconfdir}/%{name}/resource.d/path.cfg
+install -p -m0644 %{SOURCE14} %{buildroot}%{_sysconfdir}/%{name}/resource.d/path.cfg
%if %{with_systemd}
@@ -545,6 +546,9 @@ fi
%attr(-,%{shinken_user} ,%{shinken_group}) %dir %{_localstatedir}/run/%{name}
%changelog
+* Thu May 7 2015 David Hannequin <david.hannequin at gmail.com> - 2.2-4
+- Add path.cfg file
+
* Fri Mar 27 2015 David Hannequin <david.hannequin at gmail.com> - 2.2-3
- Fix bad daemon configuration file.
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/shinken.git/commit/?h=el6&id=882d898c0ff64b47fa3774e4ec22e10b64f06ca3
More information about the scm-commits
mailing list