This is an automated email from the ASF dual-hosted git repository.
bamaer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new be6fd896b8 Fix#9198 Send Nagios passive check failing to load
commons-lang Validate (#9275)
be6fd896b8 is described below
commit be6fd896b89ed25560bccd66e38421233c4729e2
Author: Lance <[email protected]>
AuthorDate: Thu Nov 5 14:54:07 2026 +0800
Fix#9198 Send Nagios passive check failing to load commons-lang Validate
(#9275)
* Fix Send Nagios passive check failing to load commons-lang Validate
Signed-off-by: leehaut <[email protected]>
* update jsendnsca v3.0.0
Signed-off-by: leehaut <[email protected]>
---------
Signed-off-by: leehaut <[email protected]>
---
assemblies/static/src/main/resources/LICENSE | 2 +-
.../workflow/actions/sendnagiospassivecheck.adoc | 2 --
plugins/actions/sendnagiospassivecheck/pom.xml | 21 +++++----------------
3 files changed, 6 insertions(+), 19 deletions(-)
diff --git a/assemblies/static/src/main/resources/LICENSE
b/assemblies/static/src/main/resources/LICENSE
index 872463e86e..df7c8e8aff 100644
--- a/assemblies/static/src/main/resources/LICENSE
+++ b/assemblies/static/src/main/resources/LICENSE
@@ -1912,7 +1912,7 @@ This product bundles js-scriptengine 25.0.4, which is
available under a
This product bundles jsch 2.28.8, which is available under a
"3-clause BSD" license. For details, see licenses/LICENSE-BSD3.
-This product bundles jsendnsca 2.1, which is available under a
+This product bundles jsendnsca 3.0.0, which is available under a
"Apache 2.0" license. For details, see LICENSE.
This product bundles json 20250517, which is available under a
diff --git
a/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/sendnagiospassivecheck.adoc
b/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/sendnagiospassivecheck.adoc
index b745701054..9a332ca6a1 100644
---
a/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/sendnagiospassivecheck.adoc
+++
b/docs/hop-user-manual/modules/ROOT/pages/workflow/actions/sendnagiospassivecheck.adoc
@@ -74,5 +74,3 @@ What this action passes on to the next action. See
xref:workflow/action-results.
|Result files|Passed on unchanged.
|Result rows|Passed on unchanged.
|===
-
-WARNING: Since Hop 2.18 the action can't send a check: the library it uses
(jsendnsca) needs `commons-lang` 2, which Hop no longer ships. The workflow
stops with `NoClassDefFoundError: org/apache/commons/lang/Validate`, and no hop
from the action is followed. Only an empty *Host name/IP address* or *Message*
still makes the action false. The table above describes the action with that
library available (tested with `commons-lang-2.6.jar` added to the lib folder
of the plugin).
diff --git a/plugins/actions/sendnagiospassivecheck/pom.xml
b/plugins/actions/sendnagiospassivecheck/pom.xml
index 7321e7e733..b6d02e46a8 100644
--- a/plugins/actions/sendnagiospassivecheck/pom.xml
+++ b/plugins/actions/sendnagiospassivecheck/pom.xml
@@ -31,12 +31,15 @@
<name>Hop Plugins Actions Send Nagios passive check</name>
<properties>
- <jsendnsca.version>2.1</jsendnsca.version>
+ <jsendnsca.version>3.0.0</jsendnsca.version>
</properties>
<dependencies>
+ <!-- 3.0.0 keeps the com.googlecode.jsendnsca packages and uses
commons-lang3.
+ Rijndael and Blowfish in its Encryption enum need BouncyCastle.
+ Both are already in lib/core, so transitives stay out of the
plugin lib. -->
<dependency>
- <groupId>com.googlecode.jsendnsca</groupId>
+ <groupId>com.github.jsendnsca</groupId>
<artifactId>jsendnsca</artifactId>
<version>${jsendnsca.version}</version>
<exclusions>
@@ -47,18 +50,4 @@
</exclusions>
</dependency>
</dependencies>
-
- <repositories>
- <repository>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <id>clojars</id>
- <name>Clojars</name>
- <url>https://clojars.org/repo/</url>
- </repository>
- </repositories>
</project>