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

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
BuildRequires:  nagios-rpm-macros
Requires:       monitoring-plugins-common
Requires:       s390-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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: -m LPAR1 -m LPAR2 -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.

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

# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}