PDA

View Full Version : UserParameter Variables on Windows


RobertS
25-10-2006, 11:04
Hi,

i want to monitor if the Windows Host on which the zabbix agent runs, can ping an other server in the LAN. So I created a batchfile (uPing.cmd) which returns 0 if OK and 1 if it fails. In the zabbix_agentd.conf i created two UserParameters:

UserParameter=uPing ,c:\zabbix\uPing.cmd $1
UserParameter=uPing21,c:\zabbix\uPing.cmd 10.20.1.21

On the Server i created two items:
NAME:uPing / TYPE:Zabbix Agent / KEY:uPing[10.20.1.21] / TYPE OF INFORMATION:float
NAME:uPing21 / TYPE:Zabbix Agent / KEY:uPing21 / TYPE OF INFORMATION:float

The second one works :) , the first not :mad: . Why???

zabbix_server.log:
009242:20061025:105003 Parameter [uPing[10.20.1.21]] is not supported by agent on host [work] Old status [0]

I have tried this with 1.1.1, 1.1.2 and 1.1.3 on Windows XP.

Thanks for help,
Robert

RobertS
17-01-2007, 11:00
OK, I found it on my own: Windows Agent does not support wildcards.

Solution:
http://www.zabbix.com/forum/showpost.php?p=16655&postcount=1