Ad Widget

Collapse

zabbix windows agent : system.run "Not supported"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LePascal
    Member
    • Nov 2012
    • 33

    #1

    zabbix windows agent : system.run "Not supported"

    Hello,

    I m a new zabbix user. I use the Zabbix 2.0 Appliance.

    The zabbix agent is OK when I test disk space and service state.

    I have a proble with zabbix windows agent when I try to test active directory state with dcdiag.exe

    When i use the KEY system.run I have a problem :

    I try to run a batch file.
    If this batch contains this code all is OK :

    echo OK

    If this batch contains this code

    call dcdiag

    zabbix indicates "Not supported" status in the configuration of items.

    The ietm key is :
    system.run[C:\ca01\zabbix\test.bat,wait]

    can you help me with this problem ?

    Thank you
  • angelhc
    Senior Member
    Zabbix Certified Specialist
    • Nov 2009
    • 226

    #2
    try to get out the ",wait" and check if the agent configuration file have EnableRemoteCommands=1 option enabled.
    system.run[C:\ca01\zabbix\test.bat]


    Bye!
    Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

    http://zabbixes.wordpress.com/

    Comment

    • LePascal
      Member
      • Nov 2012
      • 33

      #3
      Thanks for your help !

      I already tried the wait/nowait option. In each case that is the same.....

      Really, I don't know how to make it.

      Comment

      • angelhc
        Senior Member
        Zabbix Certified Specialist
        • Nov 2009
        • 226

        #4
        Hi,

        Have you check the EnableRemoteCommands=1 option on the agentd.conf?
        Try to write the dcdiag inside a .bat with all the necessary parameters (like -s for example) and execute it local and from zabbix server with a zabbix_get.
        Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

        http://zabbixes.wordpress.com/

        Comment

        • LePascal
          Member
          • Nov 2012
          • 33

          #5
          EnableRemoteCommands is set to 1

          I don't know the zabbix_get item. What is it ?

          Comment

          • Colttt
            Senior Member
            Zabbix Certified Specialist
            • Mar 2009
            • 878

            #6
            enableremotecommas=1 after this you must restart the agent!

            and maybe you must set the timeout to 30!
            Debian-User

            Sorry for my bad english

            Comment

            • LePascal
              Member
              • Nov 2012
              • 33

              #7
              OK

              I set timeout = 30 and now the commands are executed. Pfff ! That is not explained in the documentation.

              Thank you.

              Comment

              Working...