Skip to content
Snippets Groups Projects
Commit 4472a87b authored by Meisam Farzalipour Tabriz's avatar Meisam Farzalipour Tabriz
Browse files

bump version to 0.5

improve documentation
parent 98a162fd
Branches
Tags 0.5
No related merge requests found
Pipeline #259059 canceled
# check_dnf_automatic # check_dnf_automatic
An Icinga plugin for monitoring the number of pending dnf-automatic security updates to be installed. Compatibility with Nagios has not been tested. An Icinga/Nagios plugin for monitoring the number of pending dnf-automatic security updates to be installed. Compatibility with Nagios has not been tested.
## Requirements ## Requirements
...@@ -50,6 +50,8 @@ An Icinga plugin for monitoring the number of pending dnf-automatic security upd ...@@ -50,6 +50,8 @@ An Icinga plugin for monitoring the number of pending dnf-automatic security upd
## Building RPM ## Building RPM
The RPM has been successfully built and tested on AlmaLinux 9. Upon installation, the RPM automatically installs the necessary dependencies and copies the script to the `/usr/lib64/nagios/plugins/` directory.
### Development Version ### Development Version
Build the RPM package based on the current git commit. The resulting RPM will be at `rpmbuild/RPMS/noarch/`. Build the RPM package based on the current git commit. The resulting RPM will be at `rpmbuild/RPMS/noarch/`.
......
Name: check_dnf_automatic Name: check_dnf_automatic
Version: 0.4 Version: 0.5
Release: 1%{?dist} Release: 1%{?dist}
Summary: Icinga plugin for monitoring the number of pending dnf-automatic security updates Summary: Icinga/Nagios plugin for monitoring the number of pending dnf-automatic security updates
License: GPLv3+ License: GPLv3+
URL: https://gitlab.mpcdf.mpg.de/tier2/monitoring-plugins/%{name} URL: https://gitlab.mpcdf.mpg.de/tier2/monitoring-plugins/%{name}
...@@ -15,7 +15,7 @@ Requires: sed ...@@ -15,7 +15,7 @@ Requires: sed
BuildArch: noarch BuildArch: noarch
%description %description
An Icinga plugin for monitoring the number of pending dnf-automatic security updates to be installed. An Icinga/Nagios plugin for monitoring the number of pending dnf-automatic security updates to be installed.
%prep %prep
%setup -q %setup -q
...@@ -33,6 +33,10 @@ install -m 0755 script/%{name} %{buildroot}/usr/lib64/nagios/plugins/%{name} ...@@ -33,6 +33,10 @@ install -m 0755 script/%{name} %{buildroot}/usr/lib64/nagios/plugins/%{name}
/usr/lib64/nagios/plugins/%{name} /usr/lib64/nagios/plugins/%{name}
%changelog %changelog
* Wed Feb 26 2025 Meisam Farzalipour Tabriz <5204-tbz@users.noreply.gitlab.mpcdf.mpg.de> - 0.5-1
- Bump version to 0.5
- Use make for building RPM
- Improve documentaion and CI workflow
* Tue Feb 25 2025 Meisam Farzalipour Tabriz <5204-tbz@users.noreply.gitlab.mpcdf.mpg.de> - 0.4-1 * Tue Feb 25 2025 Meisam Farzalipour Tabriz <5204-tbz@users.noreply.gitlab.mpcdf.mpg.de> - 0.4-1
- Bump version to 0.4 - Bump version to 0.4
- Improve packaging and CI workflow - Improve packaging and CI workflow
......
...@@ -14,12 +14,11 @@ ...@@ -14,12 +14,11 @@
# ======================================================================================================================================= # =======================================================================================================================================
_version="0.4" _version="0.5"
_requirements=('dnf-automatic' 'tail' 'sed') _requirements=('dnf-automatic' 'tail' 'sed')
declare -A _exit_code declare -A _exit_code
_exit_code[OK]="0" _exit_code[OK]="0"
_exit_code[WARNING]="1" _exit_code[WARNING]="1"
...@@ -117,6 +116,6 @@ elif [ -n "$_no_updates" ]; then ...@@ -117,6 +116,6 @@ elif [ -n "$_no_updates" ]; then
echo "DNF OK: No update available! | available_updates=0;;;; security_updates=0;;;;" echo "DNF OK: No update available! | available_updates=0;;;; security_updates=0;;;;"
exit "${_exit_code[OK]}" exit "${_exit_code[OK]}"
else else
echo "DNF UNKNOWN: unexpected response from dnf-automatic! $_dnf_automatic_output" echo "DNF UNKNOWN: unexpected response from dnf-automatic: $_dnf_automatic_output"
exit "${_exit_code[UNKNOWN]}" exit "${_exit_code[UNKNOWN]}"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment