Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package monitoring-plugins-http_json for
openSUSE:Factory checked in at 2026-03-02 17:35:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-http_json (Old)
and /work/SRC/openSUSE:Factory/.monitoring-plugins-http_json.new.29461
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "monitoring-plugins-http_json"
Mon Mar 2 17:35:33 2026 rev:6 rq:1335614 version:2.3.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/monitoring-plugins-http_json/monitoring-plugins-http_json.changes
2025-04-14 12:58:18.620067822 +0200
+++
/work/SRC/openSUSE:Factory/.monitoring-plugins-http_json.new.29461/monitoring-plugins-http_json.changes
2026-03-02 17:35:47.343963810 +0100
@@ -1,0 +2,6 @@
+Wed Feb 25 20:25:53 UTC 2026 - Martin Hauke <[email protected]>
+
+- Update to version 2.3.1
+ * Fix the use of multiple similar CLI flags.
+
+-------------------------------------------------------------------
Old:
----
nagios-http-json-2.3.0.tar.gz
New:
----
nagios-http-json-2.3.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ monitoring-plugins-http_json.spec ++++++
--- /var/tmp/diff_new_pack.n7vL8T/_old 2026-03-02 17:35:49.556056316 +0100
+++ /var/tmp/diff_new_pack.n7vL8T/_new 2026-03-02 17:35:49.560056484 +0100
@@ -1,7 +1,7 @@
#
# spec file for package monitoring-plugins-http_json
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%define modname monitoring-plugins-http_json
%define pythons python3
Name: monitoring-plugins-http_json
-Version: 2.3.0
+Version: 2.3.1
Release: 0
Summary: Plugin for Nagios which checks json values from a given HTTP
endpoint
License: Apache-2.0
++++++ nagios-http-json-2.3.0.tar.gz -> nagios-http-json-2.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/nagios-http-json-2.3.0/.github/workflows/unittest.yml
new/nagios-http-json-2.3.1/.github/workflows/unittest.yml
--- old/nagios-http-json-2.3.0/.github/workflows/unittest.yml 2025-04-11
15:31:43.000000000 +0200
+++ new/nagios-http-json-2.3.1/.github/workflows/unittest.yml 2026-02-25
08:29:54.000000000 +0100
@@ -1,6 +1,11 @@
name: CI
-on: [push, pull_request]
+on:
+ push:
+ branches: [main, master]
+ tags:
+ - v*
+ pull_request:
jobs:
gitHubActionForPytest:
@@ -11,7 +16,7 @@
name: GitHub Action
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install -r requirements-dev.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nagios-http-json-2.3.0/README.md
new/nagios-http-json-2.3.1/README.md
--- old/nagios-http-json-2.3.0/README.md 2025-04-11 15:31:43.000000000
+0200
+++ new/nagios-http-json-2.3.1/README.md 2026-02-25 08:29:54.000000000
+0100
@@ -8,7 +8,7 @@
Requirements:
-* Python 3.6+
+* Python 3.8+
### Nagios
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nagios-http-json-2.3.0/check_http_json.py
new/nagios-http-json-2.3.1/check_http_json.py
--- old/nagios-http-json-2.3.0/check_http_json.py 2025-04-11
15:31:43.000000000 +0200
+++ new/nagios-http-json-2.3.1/check_http_json.py 2026-02-25
08:29:54.000000000 +0100
@@ -25,8 +25,8 @@
CRITICAL_CODE = 2
UNKNOWN_CODE = 3
-__version__ = '2.3.0'
-__version_date__ = '2025-04-11'
+__version__ = '2.3.1'
+__version_date__ = '2026-02-25'
class NagiosHelper:
"""
@@ -551,19 +551,21 @@
parser.add_argument('-e', '--key_exists', dest='key_list', nargs='*',
help='''Checks existence of these keys to determine
status. Return warning if key is not present.''')
- parser.add_argument('-E', '--key_exists_critical',
- dest='key_list_critical',
+ parser.add_argument('-E', '--key_exists_critical',
dest='key_list_critical',
nargs='*',
help='''Same as -e but return critical if key is
not present.''')
- parser.add_argument('-q', '--key_equals', dest='key_value_list', nargs='*',
+ parser.add_argument('-q', '--key_equals', dest='key_value_list',
+ action='extend',
+ nargs='*',
help='''Checks equality of these keys and values
(key[>alias],value key2,value2) to determine status.
Multiple key values can be delimited with colon
(key,value1:value2). Return warning if equality
check fails''')
- parser.add_argument('-Q', '--key_equals_critical',
- dest='key_value_list_critical', nargs='*',
+ parser.add_argument('-Q', '--key_equals_critical',
dest='key_value_list_critical',
+ action='extend',
+ nargs='*',
help='''Same as -q but return critical if
equality check fails.''')
parser.add_argument('--key_time', dest='key_time_list', nargs='*',
@@ -571,7 +573,7 @@
(key[>alias],value key2,value2) to determine status.
Multiple key values can be delimited with colon
(key,value1:value2). Return warning if the key is older
- than the value (ex.: 30s,10m,2h,3d,...).
+ than the value (ex.: 30s,10m,2h,3d,...).
With at it return warning if the key is jounger
than the value (ex.: @30s,@10m,@2h,@3d,...).
With Minus you can shift the time in the future.''')
@@ -594,7 +596,9 @@
dest='key_value_list_not_critical', nargs='*',
help='''Same as -q but return critical if equality
check succeeds.''')
- parser.add_argument('-m', '--key_metric', dest='metric_list', nargs='*',
+ parser.add_argument('-m', '--key_metric', dest='metric_list',
+ action='extend',
+ nargs='*',
help='''Gathers the values of these keys (key[>alias],
UnitOfMeasure,WarnRange,CriticalRange,Min,Max) for
Nagios performance data. More information about Range
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/nagios-http-json-2.3.0/contrib/icinga2_check_command_definition.conf
new/nagios-http-json-2.3.1/contrib/icinga2_check_command_definition.conf
--- old/nagios-http-json-2.3.0/contrib/icinga2_check_command_definition.conf
2025-04-11 15:31:43.000000000 +0200
+++ new/nagios-http-json-2.3.1/contrib/icinga2_check_command_definition.conf
2026-02-25 08:29:54.000000000 +0100
@@ -1,4 +1,6 @@
object CheckCommand "http_json" {
+ // Example configuration for Icinga
+
import "plugin-check-command"
command = [ PluginDir + "/check_http_json.py" ]
@@ -53,6 +55,13 @@
value = "$http_json_headers$"
description = "additional http headers in JSON format
to send with the request"
}
+ "--unreachable-state" = {
+ value = "$http_json_unreachable_state$"
+ description = "Exit with specified code when the URL is
unreachable."
+ }
+ "--invalid-json-state" = {
+ value = "$http_json_invalid_json_state$"
+ description = "Exit with specified code when no valid
JSON is returned."
"--field_separator" = {
value = "$http_json_field_separator$"
description = "JSON Field separator, defaults to '.';
Select element in an array with '(' ')'"
@@ -64,46 +73,62 @@
"--warning" = {
value = "$http_json_warning$"
description = "Warning threshold for these values,
WarningRange is in the format [@]start:end"
+ repeat_key = true
}
"--critical" = {
value = "$http_json_critical$"
description = "Critical threshold for these values,
CriticalRange is in the format [@]start:end"
+ repeat_key = true
}
"--key_exists" = {
value = "$http_json_key_exists$"
description = "Checks existence of these keys to
determine status. Return warning if key is not present."
+ repeat_key = true
}
"--key_exists_critical" = {
value = "$http_json_key_exists_critical$"
description = "Checks existence of these keys to
determine status. Return critical if key is not present."
+ repeat_key = true
}
"--key_equals" = {
value = "$http_json_key_equals$"
description = "Checks equality of these keys and
values. Return warning if equality check fails"
+ repeat_key = true
}
"--key_equals_critical" = {
value = "$http_json_key_equals_critical$"
description = "Checks equality of these keys and
values. Return critical if equality check fails"
+ repeat_key = true
}
"--key_equals_unknown" = {
value = "$http_json_key_equals_unknown$"
description = "Checks equality of these keys and
values. Return unknown if equality check fails"
- }
- "--unreachable-state" = {
- value = "$http_json_unreachable_state$"
- description = "Exit with specified code if URL
unreachable. Examples: 1 for Warning, 2 for Critical, 3 for Unknown (default:
3)"
+ repeat_key = true
}
"--key_not_equals" = {
value = "$http_json_key_not_equals$"
description = "Checks equality of these keys and values
(key[>alias],value key2,value2) to determine status. Multiple key values can be
delimited with colon (key,value1:value2). Return warning if equality check
succeeds."
+ repeat_key = true
}
"--key_not_equals_critical" = {
value = "$http_json_key_not_equals_critical$"
description = "Checks equality of these keys and values
(key[>alias],value key2,value2) to determine status. Multiple key values can be
delimited with colon (key,value1:value2). Return critical if equality check
succeeds."
+ repeat_key = true
}
"--key_metric" = {
value = "$http_json_key_metric$"
description = "Gathers the values of these keys"
+ repeat_key = true
+ }
+ "--key_time" = {
+ value = "$http_json_key_time$"
+ description = " Checks a Timestamp of these keys and
values (key[>alias],value key2,value2) to determine status."
+ repeat_key = true
+ }
+ "--key_time_critical" = {
+ value = "$http_json_key_time_critical$"
+ description = "Same as --key_time but return critical
if Timestamp age fails."
+ repeat_key = true
}
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nagios-http-json-2.3.0/requirements-dev.txt
new/nagios-http-json-2.3.1/requirements-dev.txt
--- old/nagios-http-json-2.3.0/requirements-dev.txt 2025-04-11
15:31:43.000000000 +0200
+++ new/nagios-http-json-2.3.1/requirements-dev.txt 2026-02-25
08:29:54.000000000 +0100
@@ -1,2 +1,2 @@
-coverage==6.5.0
-pylint==2.17.7
+coverage==7.8.0
+pylint==3.3.6