# Copyright (C) 2007 Platform Computing Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # # # $Id$ # Summary: Kusu configuration for NRPE Name: kusu-nrpe-config Version: 0.1 Release: 2 License: GPLv2 Group: Applications/System Vendor: Platform Computing Corporation Source0: %{name}-%{version}.1.tar.gz URL: http://www.nagios.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: nrpe BuildArch: noarch %description This package will modify the configuration of a standard NRPE install to monitor a Kusu cluster out of the box. %prep %setup -q -n %{name} %build %install mkdir -p $RPM_BUILD_ROOT install -D -m 0644 nrpe.cfg.kusu $RPM_BUILD_ROOT/%{_sysconfdir}/nagios/nrpe.cfg.kusu install -D -m 0755 nagios_nrpe_cfmclient_plugin.sh $RPM_BUILD_ROOT/opt/kusu/lib/plugins/cfmclient/nrpe.sh %clean rm -rf $RPM_BUILD_ROOT %pre %post # Move the original configs aside. mv %{_sysconfdir}/nagios/nrpe.cfg{,.orig} # Install our configs. mv %{_sysconfdir}/nagios/nrpe.cfg{.kusu,} # Run NRPE on start. /sbin/chkconfig nrpe on > /dev/null 2>&1 || : /sbin/service nrpe start > /dev/null 2>&1 || : %preun %postun %files %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/nagios/nrpe.cfg.kusu /opt/kusu/lib/plugins/cfmclient/nrpe.sh %changelog * Thu Apr 10 2008 Mike Frisch 0.1-2 - Bugfixes * Tue Jan 29 2008 Mike Mazur 0.1-1 - Initial package.