Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 9e0adc21ee0895a64f3194d8fba0beea > files > 2

nagios-check_memory-1.0-4.mga3.src.rpm

%define name    nagios-check_memory
%define version 1.0
%define release %mkrel 4

Name:       %{name}
Version:    %{version}
Release:    %{release}
Epoch:      1
Summary:    Check memory
Group:      Networking/Other
License:    BSD
URL:        http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_memory
Source0:    check_memory.pl
BuildArch:  noarch
BuildRoot:  %{_tmppath}/%{name}-%{version}

%description
This plugin may be used as nrpe plugin and checks the amount of memory free,
used and total available by using the linux "free -mt" command. 

%prep
%setup -c -T

%build


%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins/check_memory

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_memory.cfg <<'EOF'
define command{
    command_name    check_memory
    command_line    %{_datadir}/nagios/plugins/check_memory
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_memory
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_memory.cfg




%changelog

* Sat Jan 12 2013 umeabot <umeabot> 1:1.0-4.mga3
+ Revision: 360708
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Mar 03 2011 ennael <ennael> 1:1.0-3.mga1
+ Revision: 62937
- imported package nagios-check_memory