Changes of Revision 5
[-] | Added | nagios-plugins-printer.spec |
x 1
2 +# 3 +# spec file for package nagios-plugins-printer 4 +# 5 +# This file and all modifications and additions to the pristine 6 +# package are under the same license as the package itself. 7 +# 8 + 9 +# norootforbuild 10 + 11 +Name: nagios-plugins-printer 12 +%define realname check_printer 13 +Summary: Generic check for printers supporting SNMP Printer MIB 14 +Version: 0.14 15 +Release: 1 16 +Url: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1955.html;d=1 17 +License: GPL 18 +Group: System/Monitoring 19 +Source: %realname.tar.bz2 20 +Patch1: nagios-plugins-printer-config.patch 21 +Patch2: nagios-plugins-printer-destdir.patch 22 +Requires: nagios-plugins 23 +# for the directory ownership: 24 +BuildRequires: nagios-plugins 25 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 +%define libexecdir %_prefix/lib/nagios/plugins 27 +%define nsusr nagios 28 +%define cmdgrp nagios 29 + 30 +%description 31 +This Nagios plugin queries prtAlertTable from the Printer MIB. 32 + 33 +It honors only prtAlertTrainingLevel = trained(4) or 34 +fieldService(5),prtAlertTrainingLevel = other(1),unknown(2),untrained(3) and 35 +management(6) are ignored. 36 + 37 +For prtAlertSeverityLevel = warning(4) the plugin result is "WARNING", for 38 +critical(3) the plugin result is "CRITICAL", obviously, for 39 +warningBinaryChangeEvent(5) (new in RFC3805) the state is by default "WARNING", 40 +but there is a hardcoded table of change events, which result in state 41 +"CRITICAL". 42 + 43 + 44 +Author: 45 +------- 46 + csc@fes-aes.de 47 + 48 + 49 +%prep 50 +%setup -q -n %realname 51 +%patch1 -p0 52 +%patch2 -p0 53 + 54 +%build 55 +make %{?jobs:-j%jobs} 56 + 57 +%install 58 +mkdir -p %{buildroot}/%{libexecdir} 59 +%makeinstall DESTDIR="%buildroot" 60 +strip %{buildroot}/%{libexecdir}/* 61 + 62 +%clean 63 +rm -rf %buildroot 64 + 65 +%files 66 +%defattr(-,root,root) 67 +%libexecdir/* 68 + 69 +%changelog 70 |