1 %define plugin check_chef_stale
2 Summary: Nagios/Icinga plugin to check stale nodes in Chef
3 Name: nagios-plugin-%{plugin}
8 Source0: https://github.com/glensc/monitoring-plugin-check_chef_stale/archive/v%{version}/%{plugin}-%{version}.tar.gz
9 # Source0-md5: 28db2a26d0b78f045f7c70ac702e435d
10 URL: https://github.com/glensc/monitoring-plugin-check_chef_stale
12 Requires: nagios-common
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _sysconfdir /etc/nagios/plugins
17 %define plugindir %{_prefix}/lib/nagios/plugins
20 Alerting for stale nodes on Chef with Nagios/Icinga.
23 %setup -q -n monitoring-plugin-check_chef_stale-%{version}
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
28 install -p %{plugin}.rb $RPM_BUILD_ROOT%{plugindir}/%{plugin}
29 cp -p %{plugin}.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
32 rm -rf $RPM_BUILD_ROOT
35 %defattr(644,root,root,755)
37 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
38 %attr(755,root,root) %{plugindir}/%{plugin}