Ad Widget

Collapse

Windows agentd.conf UserParameter Problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dhudson
    Junior Member
    • Mar 2017
    • 1

    #1

    Windows agentd.conf UserParameter Problems

    Hello

    Trying to load a new template, ZBX-WINDOWS-ENVMON, from https://github.com/jjmartres/Zabbix/...windows-envmon.

    I can't start the windows agent with any UserParameter - I get a Windows Error 1053, Service did not respond in a timely fashion, with no log output *at all* (set to 5).

    Your input is appreciated!
    DH
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by dhudson
    Hello

    Trying to load a new template, ZBX-WINDOWS-ENVMON, from https://github.com/jjmartres/Zabbix/...windows-envmon.

    I can't start the windows agent with any UserParameter - I get a Windows Error 1053, Service did not respond in a timely fashion, with no log output *at all* (set to 5).

    Your input is appreciated!
    DH
    post your conf file
    did it ever works ?
    is it stop working after uploading the Template ?

    Comment

    • Cius
      Junior Member
      • Aug 2017
      • 1

      #3
      Hello everyone

      I've the same problem.

      I can install the agent with the modified conf file, when I've imported the XLM file no problem.

      Is just the agent can't start. But if I add # before "UserParameter =" I can start my agent.

      This is my conf file :

      ####### USER-DEFINED MONITORED PARAMETERS #######

      ### Option: UnsafeUserParameters
      # Allow all characters to be passed in arguments to user-defined parameters.
      # The following characters are not allowed:
      # \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
      # Additionally, newline characters are not allowed.
      # 0 - do not allow
      # 1 - allow
      #
      # Mandatory: no
      # Range: 0-1
      # Default:
      UnsafeUserParameters=1

      ### Option: UserParameter
      # User-defined parameter to monitor. There can be several user-defined parameters.
      # Format: UserParameter=<key>,<shell command>
      #
      # Mandatory: no
      # Default:
      UserParameter = system.discovery[],%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_win_system_discovery.vbs $1
      UserParameter = quota[],%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_win_quota.vbs $1 $2
      UserParameter = wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_wus_update_all.vbs
      UserParameter = wu.crit,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_wus_update_crit.vbs
      UserParameter = server.domain,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_user_domain.vbs
      UserParameter = server.roles,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_server_role.vbs
      UserParameter = server.serial,%systemroot%\system32\cscript.exe /nologo /T:30 C:\zabbix\zabbix_server_serialnumber.vbs

      like is explain in https://github.com/jjmartres/Zabbix/...windows-envmon

      Is someone have a solution, I'll be very very happy.....

      And sorry for my english

      Seb a.k.a Cius

      Comment

      Working...