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

Compare commits

..

2 Commits

Author SHA1 Message Date
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 6 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)

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.5
Release: 1%{?dist}
License: GPLv3+
Group: Applications/System
@@ -43,6 +43,9 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
%changelog
* 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.5-1 check_package_updates/