mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-13 02:20:57 +01:00
Compare commits
3 Commits
nagios-okp
...
nagios-okp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ff4605400 | ||
|
|
7143d69552 | ||
|
|
a71110fdff |
@@ -26,7 +26,7 @@ Critical Security
|
|||||||
|
|
||||||
Critical on all security type updates
|
Critical on all security type updates
|
||||||
```
|
```
|
||||||
$ check_updates --no-longoutput --th "metric=security,critical=1..inf"
|
$ check_package_updates --no-longoutput --th "metric=security,critical=1..inf"
|
||||||
Critical - Total: 67, Security: 15, Bug fix: 48, Enhancement: 0, Normal: 4. Critical on security | 'total'=67;;;; 'security'=15;;1..inf;; 'bug fix'=48;;;; 'normal'=4;;;;
|
Critical - Total: 67, Security: 15, Bug fix: 48, Enhancement: 0, Normal: 4. Critical on security | 'total'=67;;;; 'security'=15;;1..inf;; 'bug fix'=48;;;; 'normal'=4;;;;
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ Total Updates
|
|||||||
|
|
||||||
Critical on all security type updates and warning on many total updates
|
Critical on all security type updates and warning on many total updates
|
||||||
```
|
```
|
||||||
$ python check_updates --no-longoutput --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
|
$ python check_package_updates --no-longoutput --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
|
||||||
Critical - Total: 67, Security: 15, Bug fix: 48, Enhancement: 0, Normal: 4. Critical on security. Warning on total | 'total'=67;40..inf;;; 'security'=15;;1..inf;; 'bug fix'=48;;;; 'normal'=4;;;;
|
Critical - Total: 67, Security: 15, Bug fix: 48, Enhancement: 0, Normal: 4. Critical on security. Warning on total | 'total'=67;40..inf;;; 'security'=15;;1..inf;; 'bug fix'=48;;;; 'normal'=4;;;;
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ Long Output
|
|||||||
With long output (default) you also get the list of packages
|
With long output (default) you also get the list of packages
|
||||||
|
|
||||||
```
|
```
|
||||||
$ python check_updates --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
|
$ python check_package_updates --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
|
||||||
Critical - Total: 32, Security: 1, Bug fix: 31, Enhancement: 0, Normal: 0. Critical on security | 'total'=32;40..inf;;; 'security'=1;;1..inf;; 'bug fix'=31;;;;
|
Critical - Total: 32, Security: 1, Bug fix: 31, Enhancement: 0, Normal: 0. Critical on security | 'total'=32;40..inf;;; 'security'=1;;1..inf;; 'bug fix'=31;;;;
|
||||||
Security
|
Security
|
||||||
python-bugzilla-0.9.0-1.fc18.noarch
|
python-bugzilla-0.9.0-1.fc18.noarch
|
||||||
@@ -102,7 +102,7 @@ Install
|
|||||||
* Install PackageKit (packagekit in Debian)
|
* Install PackageKit (packagekit in Debian)
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://raw.github.com/opinkerfi/nagios-plugins/master/check_updates/check_updates
|
wget https://raw.github.com/opinkerfi/nagios-plugins/master/check_package_updates/check_package_updates
|
||||||
```
|
```
|
||||||
|
|
||||||
Room for improvement
|
Room for improvement
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%define plugin check_updates
|
%define plugin check_package_updates
|
||||||
|
|
||||||
Summary: A Nagios plugin to check operating system updates
|
Summary: A Nagios plugin to check operating system updates
|
||||||
Name: nagios-okplugin-%{plugin}
|
Name: nagios-okplugin-%{plugin}
|
||||||
Version: 0.0.3
|
Version: 0.0.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@@ -15,7 +15,7 @@ BuildArch: noarch
|
|||||||
Requires: nrpe
|
Requires: nrpe
|
||||||
Requires: pynag
|
Requires: pynag
|
||||||
Requires: PackageKit
|
Requires: PackageKit
|
||||||
Conflicts: nagios-okplugin-check_yum
|
Obsoletes: nagios-okplugin-check_yum
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -43,6 +43,9 @@ rm -rf %{buildroot}
|
|||||||
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.4-1
|
||||||
|
- new package built with tito
|
||||||
|
|
||||||
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.3-1
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.3-1
|
||||||
- Plugin should conflict with check_yum (tommi@tommi.org)
|
- Plugin should conflict with check_yum (tommi@tommi.org)
|
||||||
- No obsolete (tommi@tommi.org)
|
- No obsolete (tommi@tommi.org)
|
||||||
2
check_package_updates/nrpe.d/check_package_updates.cfg
Normal file
2
check_package_updates/nrpe.d/check_package_updates.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Critical on security updates, warning if 40 or more total updates
|
||||||
|
command[check_updates]=/usr/lib64/nagios/plugins/check_package_updates --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Critical on security updates, warning if 40 or more total updates
|
|
||||||
command[check_updates]=/usr/lib64/nagios/plugins/check_updates --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
|
|
||||||
1
rel-eng/packages/nagios-okplugin-check_package_updates
Normal file
1
rel-eng/packages/nagios-okplugin-check_package_updates
Normal file
@@ -0,0 +1 @@
|
|||||||
|
0.0.4-1 check_package_updates/
|
||||||
Reference in New Issue
Block a user