Ad Widget

Collapse

Triiger NET TCP not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cedric.kerebel@ccpi.bzh
    Junior Member
    • Sep 2023
    • 3

    #1

    Triiger NET TCP not working

    Hi everyone, I'm having trouble creating a net.tcp trigger.

    I'd like to create a trigger warning me that port 50001 is no longer open on a Windows server.
    The element works correctly with the key: net.tcp.service[tcp,,50001]

    However, when I try to create the trigger associated with this element with the expression below :
    {hostname:net.tcp.service[tcp,,50001].last()}<>1

    I get the error :
    Details - Unable to add trigger
    Parameter “/1/expression” invalid: incorrect expression from “{hostname:net.tcp.service[tcp,,50001].last()}<>1”.

    I can't find the right expression, could you give me an idea?

    Thanks in advance,
    Cédric
  • cedric.kerebel@ccpi.bzh
    Junior Member
    • Sep 2023
    • 3

    #2
    Version ZABBIX 7

    Comment

    • Brambo
      Senior Member
      • Jul 2023
      • 245

      #3
      You have 2 easy options to create a trigger and still manage to do it the diffecult way
      easy option 1: Go to trigger and create trigger > Click image for larger version

Name:	image.png
Views:	48
Size:	28.3 KB
ID:	500826
      using the add button and select the item and set the condition.
      easy option 2: Click image for larger version

Name:	image.png
Views:	45
Size:	28.0 KB
ID:	500827
      In your template or host item, click the 3 ... before and choose create trigger. This option is a little bit harder as you have to change func to the correct function you want to do

      Comment

      • cedric.kerebel@ccpi.bzh
        Junior Member
        • Sep 2023
        • 3

        #4
        Hello,
        Thank you very much Brambo, I was able to solve the problem with the expression below:
        find(/hostname/net.tcp.service[tcp,,50001])=0
        If the port is closed, an alert is triggered.
        Thanks again for your help
        Have a nice day,

        Comment

        Working...