File monitoring-plugins-spool_page.spec of Package monitoring-plugins-spool_page

#
# spec file for package monitoring-plugins-spool_page
#
# Copyright (c) 2011-2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           monitoring-plugins-spool_page
Summary:        Check Spool and page file usage on z/VM
Version:        1.0
Release:        100
License:        BSD-4-Clause
Group:          System/Monitoring
Source0:        check_spool_page
Requires:       s390-tools
Requires:       bash
BuildRequires:  nagios-rpm-macros
Provides:       nagios-plugins-spool_page = %{version}-%{release}
Obsoletes:      nagios-plugins-spool_page < %{version}-%{release}
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This plugin checks spool and page file usage on z/VM.
# s390:~ # vmcp query alloc spool
#                 EXTENT     EXTENT  TOTAL  PAGES   HIGH    %
# VOLID  RDEV      START        END  PAGES IN USE   PAGE USED
# ------ ---- ---------- ---------- ------ ------ ------ ----
# 540SPL 9028          1      10016  1761K 357279  1593K  19%
#                                   ------ ------        ----
# SUMMARY                            1761K 357279         19%
# USABLE                             1761K 357279         19%
# s390zhi126:~ # vmcp query alloc page
#                 EXTENT     EXTENT  TOTAL  PAGES   HIGH    %
# VOLID  RDEV      START        END  PAGES IN USE   PAGE USED
# ------ ---- ---------- ---------- ------ ------ ------ ----
# 540PAG 9029          1      10016  1761K      2    212   1%
#                                   ------ ------        ----
# SUMMARY                            1761K      2          1%
# USABLE                             1761K      2          1%



%prep

%build

%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_spool_page

%clean
rm -rf %buildroot

%files 
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_spool_page

%changelog
openSUSE Build Service is sponsored by