Ad Widget

Collapse

[UserParameters] - don't graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eljibe
    Member
    • Apr 2014
    • 31

    #1

    [UserParameters] - don't graph

    Hi all,

    So I set up a zabiix 2.2 on a CentOS 6.5 VM. Everything works fine.
    I added a windows machine, installed the zabbix client, and everything works fine.
    So I want to test UserParameters. I have nothing specific, do I build a randomizer:
    Code:
    Option Explicit
    
    Dim intRandomSequence
    Dim intMinimun, intMaximum
    
    intMaximum = 100
    intMinimun = 1
    
    Randomize
    
    intRandomSequence = Int((intMaximum-intMinimun+1)*Rnd+intMinimun)
    
    Wscript.Echo intRandomSequence
    And then, create a user parameter:
    Code:
    UserParameter=rnd.randomizer,%systemroot%\system32\cscript.exe /nologo c:\zabbix\rnd\randomizer.vbs
    in my windows agent configuration file.
    Then, from the Centos Server, I run
    Code:
    zabbix_get -s <host_address> -k rnd.randomizer
    I'm getting the expected random result, but in the WebUI, all I'm getting is this nagging "Not supported" status, regarding the item. I'd welcome any input.
  • eljibe
    Member
    • Apr 2014
    • 31

    #2
    Solved

    So, what I did is delete the brackets in the call of the Item. When creating the item I first typed rnd.randomizer[] in the key field. Now, I removed said brackets. And It word perfectly.
    Thanks a lot!

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Anytime!
      RTFM helps...
      Sincerely yours,
      Aleksey

      Comment

      • eljibe
        Member
        • Apr 2014
        • 31

        #4
        Us french guys don't do that kind of things. Reading the manual is for other people
        Though I must say that it seems to take forever to update in the WebUI. Even though I know (I read this particular part of the manual) I have to wait for something like 2 periods... (So, around one minute, and it seemed like forever).

        Comment

        Working...