Ad Widget

Collapse

Template "Nginx by Zabbix agent" - time-delayed trigger for "Service is down"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vonlo
    Junior Member
    • Jun 2020
    • 5

    #1

    Template "Nginx by Zabbix agent" - time-delayed trigger for "Service is down"

    Hi,
    I am having problems configuring the trigger for "service is down" in the nginx template. It should alert me only after a 3 minutes.

    The default trigger is:
    Code:
    last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0
    I tried
    Code:
    max(/Nginx by Zabbix agent - customized/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"],#3)=0
    which never triggers and
    Code:
    max(/Nginx by Zabbix agent - customized/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"],3m)=0
    which triggers immediately.

    Does anyone have a solution for this?

    Best regards
  • vonlo
    Junior Member
    • Jun 2020
    • 5

    #2
    Problem is that the item Nginx: Service status has this preprocessing step Discard unchanged with heartbeat
    From the documentation:
    If a value is discarded, it is not saved in the database and Zabbix server has no knowledge that this value was received.

    Comment

    Working...