Ad Widget

Collapse

Integer [0] not suitable for Integer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Justleen
    Junior Member
    • Jan 2009
    • 20

    #1

    Integer [0] not suitable for Integer?

    Hi All,

    I just wanted to create a quick external check, when i ran into the following error in Zabbix: Type of received value [0] is not suitable for value type [Numeric (integer 64bit)]

    This is quite weird i'd say, since its a perfectly valid value? Changing to float does the same thing. I can only save it as text, which is not what I want...
    How can I get an item to accept a numerical value as value??


    The script:
    zabbix@s2m-mon-002:~/externalscripts$ ./check_mis.sh prd-as-012 QueueSize
    30

    The item:
    Type: external check
    Key: check_mis.sh[QueueSize]
    Type of info: numerical
    Dont use multiplier, and store value as is..


    Edit: THe same happens for "real" values, like, 14 or 22 ..
    Last edited by Justleen; 20-08-2009, 11:30.
  • Justleen
    Junior Member
    • Jan 2009
    • 20

    #2
    Ok, It seems that if i choose "Character" as type, I can do numerical tests ... Not sure if this is supposed to work like this, but as a work around, it works for me. THough this way I cant create graphs...

    Comment

    • Justleen
      Junior Member
      • Jan 2009
      • 20

      #3
      It seems only the numerical are usefull in triggers, so I really would like to know how to get the values from an external script accepted as a numerical value...


      Any one??

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        Sounds weird !

        What if you try:
        ./externascript.sh params... | cat -e

        to see whether output is "clean".

        Comment

        Working...