Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEriks Sneiders <eriks.sneiders@zabbix.com>2021-05-06 17:35:39 +0300
committerEriks Sneiders <eriks.sneiders@zabbix.com>2021-05-06 17:49:36 +0300
commitd673813e04168789d2988326af47f573a2c60f57 (patch)
tree018f023cabccc28ae214d2adb8f77ba0cb043d54 /src
parent761774601a6a56de0736e92a18e0dc6f8e3b92be (diff)
...G...... [ZBX-19099] fixed Zabbix agent 2 windows services plugin second parameter
* commit 'e43bdddb05693dc0e56d096f1b7e1c19d91ce750': ...G...... [ZBX-19099] fixed Zabbix agent 2 windows services plugin second parameter (cherry picked from commit 7e79e026fe12fd628fa47c982edc1d2ff3449df1)
Diffstat (limited to 'src')
-rw-r--r--src/go/plugins/windows/services/services_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/plugins/windows/services/services_windows.go b/src/go/plugins/windows/services/services_windows.go
index 0e14aa9fb20..e179ff08180 100644
--- a/src/go/plugins/windows/services/services_windows.go
+++ b/src/go/plugins/windows/services/services_windows.go
@@ -420,7 +420,7 @@ func (p *Plugin) exportServices(params []string) (result interface{}, err error)
}
stateFilter := stateFlagAll
- if len(params) > 1 && params[1] != "" {
+ if len(params) > 1 && params[1] != "all" && params[1] != "" {
switch params[1] {
case "stopped":
stateFilter = stateFlagStopped