Search code examples
monitoringzabbixalerts

how to stop False alert in zabbix while monitoring any port or service in zabbix


My zabbix server sends alerts immediately when a service gets failed

my item for monitoring a port:

net.tcp.listen[80]

my trigger for monitoring a port:

{Testserver:net.tcp.listen[80].last()}=0

Solution

  • It does not seem to be a false alert - you have configured your trigger to be too sensitive for your needs. While you didn't specify it, it seems that you want to make the trigger less sensitive. One way to do so:

    {Testserver:net.tcp.listen[80].max(300)}=0
    

    This will alert when the maximum value over last 300 seconds - 5 minutes - will be 0. Thus it will alert when the service will be down continuously for 5 minutes. For convenience, you can also write it like this:

    {Testserver:net.tcp.listen[80].max(5m)}=0