Ad Widget

Collapse

perf function definition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dabenavidesd
    Junior Member
    • Sep 2016
    • 15

    #1

    perf function definition

    Hello people:
    has the zabbix manual an entry for .perf function? (i can't see it), i.e:

    host:net.tcp.service.perf[ssh,,{$SSH_PORT}].sum(#2)}=0

    What does it mean?

    Thanks in advance
  • brico
    Junior Member
    Zabbix Certified Specialist
    • Feb 2012
    • 10

    #2
    net.tcp.service.perf[service,<ip>,<port>] - "Checks performance of TCP service."

    Documentation: https://www.zabbix.com/documentation...s/zabbix_agent

    Comment

    • dabenavidesd
      Junior Member
      • Sep 2016
      • 15

      #3
      =0 is port down?

      hello Brico:
      OK, I read in that page you cite, from ( https://www.zabbix.com/documentation...ger_expression and your link) I see:
      net.tcp.service.perf[service,<ip>,<port>] is a <key>

      but anything at its right as ( https://www.zabbix.com/documentation...ger_expression )
      net.tcp.service.perf[].sum is a <key>.<function>

      So the complete expression:

      {Template Zabbix agent Windows:net.tcp.service.perf[tcp,,3389].sum(#2)}=0

      =0 means in last two attempts port was down (as is now), correct? Any other possibility?

      Thanks in advance

      Comment

      • brico
        Junior Member
        Zabbix Certified Specialist
        • Feb 2012
        • 10

        #4
        Thank you for clarifying the question.

        Yes, you are correct. The provided trigger expression calculates the sum of the last two values. In this case, the item net.tcp.service.perf[tcp,,3389] is providing the response time in seconds so zero would mean the port is down.

        Keep in mind this particular item should be set as a float value since sub-second responses are expected.

        Comment

        Working...