Ad Widget

Collapse

Trigger on net.tcp.service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dotson83
    Junior Member
    • Jul 2023
    • 2

    #1

    Trigger on net.tcp.service

    I'm trying to make a trigger that will alert if the status of net.tcp.service[https] isn't 200 OK. No matter what I try it doesn't seem to work though. So then I thought maybe net.tcp.service[https] simply returns a 1 or 0 and I could alert on that, but that didn't work either.

    How can I have the trigger check for 200 OK in the value of net.tcp.service[https] and alert if it's not there? I would also like to alert if it gets "connection refused".

    Thanks!​
  • SanMonitor
    Member
    • Aug 2022
    • 48

    #2
    Hello dotson,

    you're correct in that net.tcp.service return a 0 when the service is down and 1 when it' running. If I remember correctly this check uses libcurl so make sure that's available on your Zabbix server.
    If you want to catch specific return codes you can use a web scenario: 9. Web monitoring (zabbix.com) (see: required status codes)​

    Comment

    • dotson83
      Junior Member
      • Jul 2023
      • 2

      #3
      Thank you.

      Comment

      Working...