Ad Widget

Collapse

Dummy item and trigger as heartbeat

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NicoE
    Junior Member
    • Mar 2025
    • 7

    #1

    Dummy item and trigger as heartbeat

    I want to create a dummy item and trigger as heartbeat that will cause an alert once a day. I will send all my alerts via media to a different medium and to still know that zabbix is running and is still able to send via this media configuration, I want to just send a dummy alert once a day.

    I already created an item of type "calculated" that will just return "1" and will update once a day together with a trigger that checks if the last value is "1". This does work for generating an alert once a day but I also want to close it directly. The problem is that a recovery expression only works when the alert expression is false but since I only check if the last value is "1" this will never be not true. I tryed to also check for nodata inside the expression in hope that it will be updated to false after the minute I gave the nodata function but that doesn't seem to work eighter.

    What else could I try to get this alert to auto close just after the alert was triggered? And yes, I need an trigger for that since I want the message appear on the same media channel as all the other regular alerts.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Can you show the current item and trigger (with nodata()) configurations? Maybe someone can point the problem.

    Also note:

    It is not possible to resolve a problem by recovery expression alone if the problem expression is still TRUE.


    Markku

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      "last(/host/item)=1 and nodata(/host/item,1m)=0" should do the trick... "last value is 1 and there is data within last minute"

      Comment

      Working...