Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
icinga
:
production
>
check_openmanage
> check_openmanage.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File check_openmanage.spec of Package check_openmanage
Summary: A Nagios plugin to check hardware health on Dell servers Name: check_openmanage Version: 3.7.12 Release: 10%{?dist} License: GPL Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-root URL: http://folk.uio.no/trondham/software/check_openmanage.html Source0: http://folk.uio.no/trondham/software/%{name}-%{version}.tar.bz2 Requires: perl Provides: nagios-plugins-openmanage = %{version}.%{release} %description check_openmanage is a plugin for Nagios which checks the hardware health of Dell PowerEgde and PowerVault servers. It uses the Dell OpenManage Server Administrator (OMSA) software to accomplish this task. check_openmanage can be used with SNMP or NRPE, whichever suits your needs and particular taste. The plugin checks the health of the storage subsystem, power supplies, memory modules, temperature probes etc., and gives an alert if any of the components are faulty or operate outside normal parameters. %prep %setup -q %build gzip man/%{name}.8 gzip man/%{name}.conf.5 mkdir -p %{buildroot}/%{_prefix}/lib/nagios/plugins/contrib mkdir -p %{buildroot}/%{_mandir}/man8 mkdir -p %{buildroot}/%{_mandir}/man5 mkdir -p pnp mv %{name}.php pnp/ %install install -d -m 0755 %{buildroot}/%{_prefix}/lib/nagios/plugins/contrib install -m 0755 %{name} %{buildroot}/%{_prefix}/lib/nagios/plugins/contrib install -D -m 0755 man/%{name}.8.gz %{buildroot}/%{_mandir}/man8/%{name}.8.gz install -D -m 0755 man/%{name}.conf.5.gz %{buildroot}/%{_mandir}/man5/%{name}.conf.5.gz pushd %{buildroot}/%{_prefix}/lib/nagios/plugins/contrib ln -s %{name} %{name}_alertlog ln -s %{name} %{name}_batteries ln -s %{name} %{name}_cpu ln -s %{name} %{name}_esmlog ln -s %{name} %{name}_fans ln -s %{name} %{name}_intrusion ln -s %{name} %{name}_memory ln -s %{name} %{name}_power ln -s %{name} %{name}_pwrmonitor ln -s %{name} %{name}_storage ln -s %{name} %{name}_temperature ln -s %{name} %{name}_esmhealth popd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) %{_prefix}/lib/nagios/plugins/contrib/%{name}* %dir %{_prefix}/lib/nagios %dir %{_prefix}/lib/nagios/plugins %dir %{_prefix}/lib/nagios/plugins/contrib %attr(0755, root, root) %{_mandir}/man8/%{name}.8* %attr(0755, root, root) %{_mandir}/man5/%{name}.conf.5* %doc pnp %changelog