Ad Widget

Collapse

Cygwin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • themons
    Senior Member
    • Feb 2005
    • 110

    #1

    Cygwin

    i would like to creat a userparmeter with cygwin but i had an empty value
    my user parameter is

    Code:
    UserParameter=file.count,find /cygdrive/c/ -name ='*.exe' | wc -l
    on the zabbix server i have this message.
    Code:
    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
    Last edited by themons; 15-06-2006, 12:42.
    Zabbix 1.8.3
    SLES 11 x64

    French Zabbix user
  • themons
    Senior Member
    • Feb 2005
    • 110

    #2
    soluce

    ok i have the solution

    i had to put cmd.exe /c behing the commande to specify the shell. like this.
    Code:
    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 but it doesn't work anyway item not supported. can you help me
    Zabbix 1.8.3
    SLES 11 x64

    French Zabbix user

    Comment

    Working...