I am trying to use [system. run] method to monitor the output of the "net use | find/C "OK" "command, but the output of this direct run and the result of running [system. run] have been inconsistent. I feel that [system. run] does not provide the execution result, but the status result of the script running. Does anyone know there is a problem there? thank you.
c:\Program Files\Zabbix Agent>zabbix_get -s 127.0.0.1 -k system.run["net use | find /C "OK""]
0
c:\Program Files\Zabbix Agent>net use | find /C "OK"
1
c:\Program Files\Zabbix Agent>zabbix_get -s 127.0.0.1 -k system.run["net use | find /C "OK""]
0
c:\Program Files\Zabbix Agent>net use | find /C "OK"
1
Comment