mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
4 Commits
nagios-okp
...
nagios-okp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5dbf632f2 | ||
|
|
5af347c3df | ||
|
|
7ad46b2f68 | ||
|
|
5a8cad9783 |
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.0.4-1 check_package_updates/
|
||||
0.0.6-1 check_package_updates/
|
||||
|
||||
Reference in New Issue
Block a user