File monitoring-plugins-ipmi-sensor3.spec of Package monitoring-plugins-ipmi-sensor3

# spec file for package monitoring-plugins-ipmi-sensor2
# Copyright (c) 2010-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.

Name:           monitoring-plugins-ipmi-sensor3
Version:        3.13
Release:        0
License:        GPL-3.0+
Summary:        IPMI Sensor 3 Monitoring Plugin
Group:          System/Monitoring
Source0:        check_ipmi_sensor_v3-%{version}.tar.xz
Source1:        README.SUSE
BuildRequires:  nagios-rpm-macros
BuildRequires:  xz
Recommends:     sudo
Requires:       freeipmi >= 0.5.1
Requires:       perl(Getopt::Long)
Requires:       perl(IPC::Run)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

With this plugin the hardware status of a server can be monitored with Nagios,
Icinga or Icinga 2. Specifically, fan speeds, temperatures, voltages, power
consumption, power supply performance, etc. can be monitored.

%setup -q -n check_ipmi_sensor_v3-%{version}


install -D -m0755 check_ipmi_sensor  %{buildroot}/%{nagios_plugindir}/check_ipmi_sensor3
install -D -m0644 changelog %{buildroot}/%{_defaultdocdir}/%{name}/changelog
install -D -m0644 contrib/default-combinedgraph.template %{buildroot}/%{pnp4nagios_templatedir}/templates.dist/monitoring-plugins-ipmi-sensor3.php
install -m0644 %{SOURCE1} %{buildroot}/%{_defaultdocdir}/%{name}/README.SUSE

rm -rf %{buildroot}

%doc %{_defaultdocdir}/%{name}
%license COPYING
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{pnp4nagios_datadir}
%dir %{pnp4nagios_templatedir}
%dir %{pnp4nagios_templatedir}/templates.dist

openSUSE Build Service is sponsored by