Ad Widget

Collapse

mismatch types of items "string is not type of numeric"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GIL
    Junior Member
    • Nov 2014
    • 10

    #1

    mismatch types of items "string is not type of numeric"

    I have template, that have some items generated by powershell scripts.

    Now I have an problem..

    Two servers with same OS (Windows Server 2012R2), same powershell version (4.0/4.0.30319.42000), same agent version (6.4.11.2400), same zabbix proxy version (6.4.12) and ofcouse same template and userdefined paramater in agent config. But on fist server zabbix returns script value as numeric, and on second as string!

    Script return code: if ($Alert) {1} else {0}

    If I run on problem machine (thats return string value) code:

    $a=.\Check-ADCriticalUsers.ps1

    $a | get-member

    Powershell returns Int32 type.

    zabbix_get on proxy return 1

    Where i shoud to digg to make zabbix to view item value as numeric?
Working...