Good day, have Win Server with zabbix.agent 2.0.3, ZAbbix.server 2.0.3 in another network. I need to ping the device on the network agent. the script was written. The agent is not able to ping the device to resolve the issue has been written script FPingLost.bat
Contents:
@echo off
fping.exe %1 -n 10 gawk.exe "/Lost/ {printf $10}"
Fping send 10 packets, gawk, displays the value.
Results are number of packets lost, one character.
In the agent configuration parameter string looks like this:
UserParameter = FPingLost[*], C: \zabbix\etc\scripts\monping\fpingLost.bat $1
Custom parameters are permitted
UnsafeUserParameters = 1
The script was working on version 1.8.5, after upgrading to version 2.0.3 stopped working, displays an error: ZBX_NOTSUPPORTED
manual:
Command used should always return a value that is not empty (and not a newline). If non-valid value is returned, ZBX_NOTSUPPORTED will be sent back by the agent.
The script gives the output one character
link to the archive with the script, fping, gawk
https://docs.google.com/file/d/0B7cv...it?usp=sharing
Please help in finding errors or similar solutions.
Contents:
@echo off
fping.exe %1 -n 10 gawk.exe "/Lost/ {printf $10}"
Fping send 10 packets, gawk, displays the value.
Results are number of packets lost, one character.
In the agent configuration parameter string looks like this:
UserParameter = FPingLost[*], C: \zabbix\etc\scripts\monping\fpingLost.bat $1
Custom parameters are permitted
UnsafeUserParameters = 1
The script was working on version 1.8.5, after upgrading to version 2.0.3 stopped working, displays an error: ZBX_NOTSUPPORTED
manual:
Command used should always return a value that is not empty (and not a newline). If non-valid value is returned, ZBX_NOTSUPPORTED will be sent back by the agent.
The script gives the output one character
link to the archive with the script, fping, gawk
https://docs.google.com/file/d/0B7cv...it?usp=sharing
Please help in finding errors or similar solutions.