[ZBX-16831] The return value of script execution is not displayed correctly Created: 2019 Oct 28  Updated: 2020 Jul 24

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.4.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Longming Fu Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: pending
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix Server 4.4.0, OS: CentOS 6.7, Db: MySQL 5.7
Zabbix Agent 4.4.0, OS: Windows 2008


Attachments: PNG File cmd.png     PNG File map.png     PNG File script.png    

 Description   

I Create a script in "Administration -> Scripts", execute command "net start VisualSVNServer" to start svn service.

See screenshot script.png.

Execute command on the windows cmd, get the info:

 

请求的服务已经启动。

请键入 NET HELPMSG 2182 以获得更多的帮助。

See screenshot cmd.png.

But execute command in "Monitoring -> Maps", get the info:

 

net start VisualSVNServer;
 
????????Ч?? 
????? NET HELPMSG 2185 ?Ի?ø??İ???

 

See screenshot map.png.

 



 Comments   
Comment by Andrei Gushchin (Inactive) [ 2019 Nov 01 ]

What encoding on the target windows server?

Comment by Longming Fu [ 2019 Nov 05 ]

PS C:\Users\Administrator> [System.Text.Encoding]::Default

BodyName : gb2312
EncodingName : 简体中文(GB2312)
HeaderName : gb2312
WebName : gb2312
WindowsCodePage : 936
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
IsSingleByte : False
EncoderFallback : System.Text.InternalEncoderBestFitFallback
DecoderFallback : System.Text.InternalDecoderBestFitFallback
IsReadOnly : True
CodePage : 936

Generated at Sun Apr 06 12:43:48 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.