Ad Widget

Collapse

zabbix LLD help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cerberus43
    Junior Member
    • Nov 2013
    • 4

    #1

    zabbix LLD help

    hello,i'm new in zabbix.
    I'm now configuration zabbix LLD(Low-level discovery) to autoadd port monitoring.
    and there is the JSON return

    it's looks like ok
    ------------------------------------------------------------------
    {
    "data":[
    {
    "{#CHECKPORT}":"10.66.1.208,1090"},
    ------------------------------------------------------------------
    but after i add a item it's something the matter
    i use net.tcp.port[ip,port]
    after LLD discovery
    it's add a item like this
    -----------------------------------------------------------------
    net.tcp.port["10.66.1.208,1090"]
    -----------------------------------------------------------------

    and the two " " how can i take out it?

    thanks
    Attached Files
  • v.goncharov
    Member
    • Mar 2013
    • 58

    #2
    Originally posted by cerberus43
    hello,i'm new in zabbix.
    I'm now configuration zabbix LLD(Low-level discovery) to autoadd port monitoring.
    and there is the JSON return

    it's looks like ok
    ------------------------------------------------------------------
    {
    "data":[
    {
    "{#CHECKPORT}":"10.66.1.208,1090"},
    ------------------------------------------------------------------
    but after i add a item it's something the matter
    i use net.tcp.port[ip,port]
    after LLD discovery
    it's add a item like this
    -----------------------------------------------------------------
    net.tcp.port["10.66.1.208,1090"]
    -----------------------------------------------------------------

    and the two " " how can i take out it?

    thanks
    You need to send TWO LLD macros, for example,

    {"data":[
    { "{#CHECKIP}":"10.66.1.208", "{#CHECKPORT}":"1090" },
    ]}

    and in item you need to use: net.tcp.port["{#CHECKIP},{#CHECKPORT}"]

    It's because there are quotes in your item example, and zabbix use all that string: "10.66.1.208,1090" as ONE parameter.

    Comment

    • cerberus43
      Junior Member
      • Nov 2013
      • 4

      #3
      Originally posted by v.goncharov
      You need to send TWO LLD macros, for example,

      {"data":[
      { "{#CHECKIP}":"10.66.1.208", "{#CHECKPORT}":"1090" },
      ]}

      and in item you need to use: net.tcp.port["{#CHECKIP},{#CHECKPORT}"]

      It's because there are quotes in your item example, and zabbix use all that string: "10.66.1.208,1090" as ONE parameter.
      OK i will try again
      thanks a lot

      Comment

      • cerberus43
        Junior Member
        • Nov 2013
        • 4

        #4
        Originally posted by v.goncharov
        You need to send TWO LLD macros, for example,

        {"data":[
        { "{#CHECKIP}":"10.66.1.208", "{#CHECKPORT}":"1090" },
        ]}

        and in item you need to use: net.tcp.port["{#CHECKIP},{#CHECKPORT}"]

        It's because there are quotes in your item example, and zabbix use all that string: "10.66.1.208,1090" as ONE parameter.
        and how can i post two {#CHECKPORT}{#CHECKPORT} in one macro???

        like macro {#CHECKPORT},{#CHECKPORT} ?
        thanks

        Comment

        Working...