fedorpatlin / sapccmsget

Utility to get performance data from SAP CCMS monitoring tree element by full name. Used by zabbix-agent.
GNU General Public License v3.0
10 stars 10 forks source link

how to for windows #4

Open posuch opened 4 years ago

posuch commented 4 years ago

Hi guys

I compiled the binary for windows ( seems to be working - see screen - at least --h is showing help options ). When I try to query some metric I get "Element not found by name...."

Any ideas ? Maybe SAP is not configured properly ( suggestion from one of our SAP guys )

Perhaps some service needs to be running, user permissions ? Unfortunatelly I dont have possibility to test it on linux.

sap_3

sap_2

sap_1

posuch commented 4 years ago

I did cross compile from lin to win - what I see that the linux binary makes request to port 50013 by default ( verified woth wireshark too )

Linux

[user@host sapccmsget]$ ./sapccmsget 
2020/05/29 15:42:56 Post "http://host:50013/SAPCCMS.cgi": dial tcp 127.0.0.1:50013: connect: connection refused

Windows fails with element not found message - so I guess it will not work on windows eg. Illtry to recompile the binary on windows ( not cross compile from lin to win )


PS C:\Users\luser\Desktop> .\sapccmsget.exe
2020/05/29 16:01:00 Element not found by name