1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2026-02-13 02:20:57 +01:00

Compare commits

..

4 Commits

Author SHA1 Message Date
Tomas Edwardsson
a5dbf632f2 Automatic commit of package [nagios-okplugin-check_package_updates] release [0.0.6-1]. 2013-07-16 22:09:50 +00:00
Tomas Edwardsson
5af347c3df Fix failure on a fully patched system 2013-07-16 22:09:23 +00:00
Tomas Edwardsson
7ad46b2f68 Automatic commit of package [nagios-okplugin-check_package_updates] release [0.0.5-1]. 2013-07-16 19:43:19 +00:00
Tomas Edwardsson
5a8cad9783 Known types always have a metric, even if 0 2013-07-16 19:43:00 +00:00
3 changed files with 11 additions and 3 deletions

View File

@@ -39,9 +39,9 @@ def main():
", ".join(["%s: %i" % (x, len(pkg_updates[x])) for x in pkg_updates.keys()]))
p.add_metric("total", total_updates)
for update_type in pkg_updates:
p.add_metric(update_type.lower(), len(pkg_updates[update_type]))
if len(pkg_updates[update_type]):
p.add_long_output(update_type)
p.add_metric(update_type.lower(), len(pkg_updates[update_type]))
for pkg in pkg_updates[update_type]:
p.add_long_output(" %s" % pkg)
@@ -75,6 +75,8 @@ def pkcon_get_updates():
for line in stdout.split("\n"):
if not line:
continue
if line.startswith("There are no updates"):
continue
if results_section is False and line == "Results:":
results_section = True
elif results_section:

View File

@@ -3,7 +3,7 @@
Summary: A Nagios plugin to check operating system updates
Name: nagios-okplugin-%{plugin}
Version: 0.0.4
Version: 0.0.6
Release: 1%{?dist}
License: GPLv3+
Group: Applications/System
@@ -43,6 +43,12 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
%changelog
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.6-1
- Fix failure on a fully patched system (tommi@tommi.org)
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.5-1
- Known types always have a metric, even if 0 (tommi@tommi.org)
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.4-1
- new package built with tito

View File

@@ -1 +1 @@
0.0.4-1 check_package_updates/
0.0.6-1 check_package_updates/