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

# 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-sensor2
Version:        2.3
Release:        100
License:        GPL-2.0+
Summary:        IPMI Sensor 2 Monitoring Plugin
Group:          System/Monitoring
Source0:        check_ipmi_sensor_v%{version}.tar.bz2
Source1:        README.SUSE
BuildRequires:  nagios-rpm-macros
Provides:       nagios-plugins-ipmi-sensor2 = %{version}-%{release}
Obsoletes:      nagios-plugins-ipmi-sensor2 < %{version}-%{release}
Requires:       freeipmi
Requires:       gawk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This plugin checks all IPMI sensors of a server remotely or locally. It works
with any IPMI-compatible server, so you can use it also in heterogeneous
environments with different server vendors.

Version 2.x of the plugin is based on ipmimonitoring (FreeIPMI). It monitors
both IPMI sensor classes (threshold and discrete). The older version 1.x (which
is still maintained) is based on ipmitool and can only monitor threshold based

%setup -q -n check_ipmi_sensor_v%{version}


install -D -m755 check_ipmi_sensor  %{buildroot}/%{nagios_plugindir}/check_ipmi_sensor
install -D -m644 changelog.txt %{buildroot}/%{_defaultdocdir}/%{name}/changelog.txt
install -D -m644 contrib/default-combinedgraph.template %{buildroot}/%{pnp4nagios_templatedir}/templates.dist/monitoring-plugins-ipmi-sensor2.php
install -m644 gpl.txt %{buildroot}/%{_defaultdocdir}/%{name}/
install -m644 %{SOURCE1} %{buildroot}/%{_defaultdocdir}/%{name}/README.SUSE

rm -rf %{buildroot}

%doc %{_defaultdocdir}/%{name}
# 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