Ad Widget

Collapse

PowerCLI Powershell ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixx
    Member
    • Jul 2012
    • 71

    #1

    PowerCLI Powershell ZBX_NOTSUPPORTED

    Hello am trieng to run a powershell script an a zabbix agent!
    but i get allways the "ZBX_NOTSUPPORTED"

    Code:
    zabbix@lmv64-snp-01:~$ zabbix_get -s 192.168.1.10 -k system.run["powershell.exe  -File D:\source_dev\scripts\zabbix\get-CPU-by-pool.ps1",wait]
    ZBX_NOTSUPPORTED
    but if i do :
    Code:
    zabbix@lmv64-snp-01:~$ zabbix_get -s 141.73.60.85 -k system.run["echo test",wait]                                                
    test
    i get answer!

    waths wrong?


    my execution timeout

    Code:
    zabbix@lmv64-snp-01:~$ cat /etc/zabbix/zabbix_server.conf | grep "Timeout*"
    ### Option: Timeout
    Timeout=30
    ### Option: TrapperTimeout
    TrapperTimeout=300

    pleas help to get this script working .





    reg. zabbixx
  • zabbixx
    Member
    • Jul 2012
    • 71

    #2
    if you have the same problem, you can try to adjust the zabbix CLIENT timeout time in the zabbix_client.conf!!

    in my sution it was not helpfuly, so i createt a windows task that runs every 5 minutes and write the values in to the text file.

    so you can just request the content of this file from the zabbixServer! is much faster then run and wate the script it self!

    the item refresh time value must be greater then the sheduled task interval in windows.

    if you have problems let me know!

    regard zabbix

    Comment

    Working...