Ad Widget

Collapse

Windows host not retreiving UserParameter values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xmfreak
    Junior Member
    • May 2017
    • 2

    #1

    Windows host not retreiving UserParameter values

    We've been using Zabbix for over a year with Linux hosts, but we are facing an issue monitoring a Windows Server 2012 machine. Everything is working except for the items defined as UserParameter or Zabbix trapper items. For some reason these values doesn't get to the server.

    I even tried to copy and paste the system.test line but it doesn't work either. Here are some of the items we defined and are not working:
    # Example: UserParameter=system.test,echo 1
    UserParameter=pingt[*],echo $1
    UserParameter=ping,echo "AS"
    UserParameter=system.test,echo 1
    UserParameter=EasyWmsQueue,echo 1
    UserParameter=EasyWmsCarriers,C:\ZabbixScripts\tes t2.bat

    If I try to use zabbix_get, I receive a blank value:
    C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k system.test

    But I know zabbix_get is working if I try to retreive another value, for example a non-valid value:
    C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k system.ping
    ZBX_NOTSUPPORTED: Unsupported item key.


    Or the agent version:
    C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k agent.version
    3.2.0


    When I set the debug level at maximum I can see it actually executes the command but cmd is returning an empty array: '[]'

    And when using a trapper item it just returns an error:
    C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_sender .exe -vv -z zproxy01.privaliap
    ro.aws -p 10051 -s Test-host -k TestItem -o 1
    zabbix_sender.exe [11320]: DEBUG: answer [{"response":"success","info":"processe
    d: 0; failed: 1; total: 1; seconds spent: 0.000019"}]
    info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000019"
    sent: 1; skipped: 0; total: 1

    Any idea? I've been using userparameters and trappers on other hosts with no problems at all. What can be causing the issue?
  • ovas
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2017
    • 138

    #2
    Hello xmfreak!

    UserParameter=test.windows.item,echo "yes" > C:\Users\User\Desktop\zabbix_agents_3.2.0.win\test .txt
    This one worked for me just fine, for example. Can you please try?

    Comment

    • xmfreak
      Junior Member
      • May 2017
      • 2

      #3
      Hi, sorry for the late answer, I've been on holidays. It doesn't work, I don't know what else to try, I think I'll give up on this, I will try some other workaround to monitor the value I need.

      Thank you!

      Comment

      Working...