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

#
# spec file for package monitoring-plugins-zcpuload
#
# Copyright (c) 2017 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-zcpuload
Version:        1.0
Release:        0
License:        BSD-3-Clause
Summary:        Check the load of a System Z system
Group:          System/Monitoring
Source:         check_zcpuload.sh
BuildRequires:  nagios-rpm-macros
Requires:       monitoring-plugins-common
Requires:       s390-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This plugin was written to get an overview about the CPU load
distribution on Mainframes. When deployed to an LPAR, it shows the load
of all LPARs that are visible from that specific LPAR. If deployed on
z/VM, it displays the load of the respective z/VM Guests.

In addition to the respective load of individual machines, it also
displays the total of the load of all involved machines.

By default, the load of all machines is displayed. If desired, the
output can be limited to certain machines:

check_zcpuload.sh -m LPAR1 -m LPAR2
check_zcpuload.sh -m GUEST1 -m GUEST2 -m GUEST3

The resulting values are percentages of one CPU. This means, a total of
500 would mean 5x 100% of one CPU.

%prep
#
%build
#
%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_zcpuload.sh


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

%changelog