Ad Widget

Collapse

triggers & net.tcp.service & port

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jbeuken
    Junior Member
    • Aug 2013
    • 1

    #1

    triggers & net.tcp.service & port

    Hi,

    when I test on "client" if ssh is running, I use

    zabbix_agent -t net.tcp.service[ssh,,7522]
    net.tcp.service[ssh,,7522] [u|1]


    it works

    but, when I try to create a trigger on server, I can't find the right syntax

    {bbshow:net.tcp.service[ssh].last(0)}=0 OK for default port 22

    but for another port, where to put the port number ? neither work :

    {bbshow:net.tcp.service[ssh,,7522].last(0)}=0
    {bbshow:net.tcp.service[ssh,7522].last(0)}=0


    thanks in advance
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    The referenced keys in trigger expression have to match exactly.
    Instead of writing everything manually it's often easier to:
    • select the corresponding key via the "Add" button (beside the expression)
    • not paying attention to the Function or other options below
    • after adding replacing the function (if necessary) properly

    By selecting an item via the frontend one can be sure that the key is right.

    Comment

    Working...