PDA

View Full Version : Cygwin


themons
15-06-2006, 12:51
i would like to creat a userparmeter with cygwin but i had an empty value
my user parameter is

UserParameter=file.count,find /cygdrive/c/ -name ='*.exe' | wc -l

on the zabbix server i have this message.
Got empty string from [Jmon] IP [@ip] Parameter [file.count]
Assuming that agent dropped connection because of access permissions
Host [Jmon] will be checked after 60 seconds

Is anybody have an idea

themons
15-06-2006, 16:35
ok i have the solution

i had to put cmd.exe /c behing the commande to specify the shell. like this.UserParameter=file.count,cmd.exe/c find c:\zabbix -name ='*.exe'|wc -l

Now i try to put argument in the command to create a standart item :cool: but it doesn't work anyway item not supported. can you help me