Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-plugins-zypper
> nagios-plugins-zypper.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nagios-plugins-zypper.spec of Package nagios-plugins-zypper (Revision 9)
Currently displaying revision
9
,
show latest
# # spec file for package nagios-plugins-zypper (Version 1.26) # # Copyright (c) 2010 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 http://bugs.opensuse.org/ # # norootforbuild Name: nagios-plugins-zypper Summary: Nagios plugin for checking software updates Version: 1.26 Release: 4.2 Url: http://en.opensuse.org/Nagios-plugins-zypper License: BSD4c Group: System/Monitoring Source0: check_zypper.pl %if 0%{?suse_version} > 1010 # nagios can execute the script with embedded perl Recommends: perl %endif Requires: zypper BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define libexecdir %_prefix/lib/nagios/plugins %description This plugin checks for software updates on systems that use package management systems based on the zypper command found in openSUSE. It checks for security, recommended and optional patches and also for optional package updates. You can define the status by patch category. Use a commata to list more than one category to a state. If you like to know the names of available patches and packages, use the "-v" option. Authors: -------- Lars Vogdt %prep %build %install install -D -m755 %{SOURCE0} %buildroot/%libexecdir/check_zypper %clean rm -rf %buildroot %files %defattr(-,root,root) # avoid build dependecy of nagios - own the dirs %dir %_prefix/lib/nagios %dir %libexecdir %libexecdir/check_zypper %changelog * Fri Feb 5 2010 lars@linux-schulserver.de - update to 1.26 + Enhanced error reporting for repository refreshing * Mon Feb 1 2010 lars@linux-schulserver.de - update to 1.25: + fix typo in 11.0 options ('xml-updates') + fix bnc #536475: check_zypper triggers "warning" when there are no updates available * Wed Jan 20 2010 lars@linux-schulserver.de - update to 1.24: + fix bnc#557862 : Result of nagios plugin check_zypper is interpreted as critical even if OK (thanks to Matthias Pfafferodt for the patch) + reformat the code using perltidy * Sat Nov 28 2009 lrupp@suse.de - update to 1.23: + enhanced debug output * Fri Oct 16 2009 lrupp@suse.de - update to 1.22: + fix wrong update counting for SLE11 (fixes bnc#546166 - thanks to Sven Giller) + fix small typo in output * Mon Sep 28 2009 lrupp@suse.de - update to 1.21: + use --non-interactive everywhere * Sat Sep 26 2009 lrupp@suse.de - update to 1.2: + use the same zypper options for all openSUSE versions > 11.0 (fixes bnc#538850) + handle new message type 'warning' * Wed Sep 23 2009 lrupp@suse.de - update to 1.1: + code cleanup + added option "-d" for debug output * Fri Apr 3 2009 lrupp@suse.de - update to 1.01: + better handling for SLE11 * Mon Mar 23 2009 lrupp@suse.de - update to 1.0: + added option '-p' to disable perfdata output + fixed perfdata output * Fri Feb 20 2009 lrupp@suse.de - update to 0.980: + also support old Nagios v2 output format + no whitespaces in perfdata output * Mon Feb 16 2009 lrupp@suse.de - update to 0.975: + added option '-i' to allow admins to ignore some patches/ packages via config file * Thu Feb 12 2009 lrupp@suse.de - update to 0.966: + support nagios embedded perl interpreter * Wed Jan 28 2009 lrupp@suse.de - update to 0.965: + added option '-r' to refresh zypper automatically * Wed Jan 28 2009 lrupp@suse.de - update to 0.951: - return perfdata even if no update is available * Tue Jan 27 2009 lrupp@suse.de - update to 0.950: - allow to ignore outdated repositories with -o - reset alarm() on exit - handle unknown options instead of ignoring them - first version of performancedata output in check result * Tue Dec 16 2008 lrupp@suse.de - update to 0.911: + first working version for 11.1 + use own functions: nagios-plugins is obsolete + better exit handling for -c and -w options + warn, if a repository is out of date + small enhancements for -v option * Thu Nov 27 2008 lrupp@suse.de - update to 0.9: - better whitespace handling for SLE10 based products * Thu Oct 23 2008 lrupp@suse.de - update to 0.8.1: + enhance the documentation (help text) * Wed Oct 22 2008 lrupp@suse.de - update to 0.8: + return UNKNOWN if zypper prints "Error message" + return UNKNOWN if zypper is already running * Mon Sep 29 2008 lrupp@suse.de - update to 0.7: + enable verbose output for SLE10 based hosts * Wed Sep 17 2008 lrupp@suse.de - update to 0.6: + added error handling if update source is not available + switch to BSD License * Thu Sep 11 2008 lrupp@suse.de - fix stupid variable clash * Wed Sep 10 2008 lrupp@suse.de - update to 0.5: + code cleanup + return UNKNOWN state if system doesn't support check without sudo rights + allow user to specify the release file with '-r' * Wed Sep 3 2008 lrupp@suse.de - update to 0.4: + added sudo option to call zypper via sudo + don't print packagelist if packagelist is empty * Tue Sep 2 2008 lrupp@suse.de - update to 0.3: + now outputs also the names of patches and packages, if selected + improved help output - truncate the trailing .pl so the script follows the nagios plugins scheme * Mon Jul 28 2008 lrupp@suse.de - ignore error messages: they bother the nagios parser * Tue May 6 2008 lrupp@suse.de - ignore host variable for now: this check only works local * Tue Apr 15 2008 lrupp@suse.de - work also with 10.2 and (not tested:) SLES10-SP1 - accept arguments -w and -c * Mon Apr 14 2008 lrupp@suse.de - initial version 0.1