Skip to content

Commit 615c1f5

Browse files
committed
feat(by-winrm): add --winrm-configuration-name parameter
1 parent fdb1614 commit 615c1f5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Build, CI/CD:
1717
Monitoring Plugins:
1818

1919
* by-ssh: add alerting on single numeric values
20-
* by-winrm: executes commands on remote Windows hosts by WinRM, supporting JEA
20+
* by-winrm: executes commands on remote Windows hosts by WinRM, supporting JEA (including the JEA endpoint via `--winrm-configuration-name`)
2121
* nextcloud-enterprise: provides information about an installed Nextcloud Enterprise subscription
2222
* statuspal: also detect 'emergency-maintenance' state
2323
* valkey-status: support user and password credentials, fix tls connection [PR #954](https://github.com/Linuxfabrik/monitoring-plugins/pull/954), thanks to [Claudio Kuenzler](https://github.com/Napsty)

check-plugins/by-winrm/by-winrm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ from lib.globals import (STATE_CRIT, STATE_OK, STATE_UNKNOWN, STATE_WARN)
2424

2525

2626
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
27-
__version__ = '2025111401'
27+
__version__ = '2025111402'
2828

2929
DESCRIPTION = """This plugin executes commands on remote Windows hosts by WinRM, supporting JEA.
3030
It returns standard output (STDOUT) and, in case of failure, standard error (STDERR) along with
@@ -189,6 +189,13 @@ def parse_args():
189189
default=[],
190190
)
191191

192+
parser.add_argument(
193+
'--winrm-configuration-name',
194+
help='PowerShell session configuration name (JEA endpoint). '
195+
'Only supported with pypsrp.',
196+
dest='WINRM_CONFIGURATION_NAME',
197+
)
198+
192199
parser.add_argument(
193200
'--winrm-domain',
194201
help='WinRM Domain Name. '

0 commit comments

Comments
 (0)