You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(service): handle Windows service names with spaces and improve filter diagnostics
The plugin used to apply the --starttype filter before the --service
regex, so a service whose name matched but whose start_type did not
was silently dropped, and the user saw a misleading "does not match
any service name" error for a service that actually existed. Regex
matching now runs first. When the regex finds candidates that are
all filtered out by --starttype, the plugin now reports exactly
which start_types it saw and which services matched so the user
can adjust the filter instead of chasing a phantom match error.
This fixes the reporter's "RAS Telegraf" case (technical name with
a space, start_type=manual) and the same class of bug for any other
non-automatic Windows service.
Closes#921
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ Monitoring Plugins:
101
101
* redis-status, valkey-status: modernize code and unify both plugins again after [PR #954](https://github.com/Linuxfabrik/monitoring-plugins/pull/954)
102
102
* rocketchat-stats: improve output
103
103
* scanrootkit: kernel symbol matching is now exact per symbol instead of a substring search, so a signature like `is_invisible` no longer accidentally matches an unrelated legitimate symbol named `is_invisible_helper`. False positives on clean systems that previously had such symbol-name collisions will disappear.
104
+
* service: Windows services whose technical name contains a space (e.g. `"RAS Telegraf"`) are now correctly matched by `--service`. The plugin also produces a much more helpful error when the regex matches a service but it is filtered out by `--starttype` (previously it reported "does not match any service name", which was misleading because the service existed but had a different start type) ([#921](https://github.com/Linuxfabrik/monitoring-plugins/issues/921))
104
105
* statuspal: replace `flatdict` dependency with a recursive approach ([#1044](https://github.com/Linuxfabrik/monitoring-plugins/issues/1044))
105
106
* systemd-units-failed: show failed unit names in the first output line for better dashboard and SMS alert readability ([#967](https://github.com/Linuxfabrik/monitoring-plugins/issues/967))
0 commit comments