Ad Widget

Collapse

Triggering an alarm if no update after a week

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • typer100
    Junior Member
    • Jul 2024
    • 3

    #1

    Triggering an alarm if no update after a week

    Hi. We are migrating from Nagios to Zabbix and I'm trying to keep a couple of old method from Nagios. There's a weekly script that runs for hours on some hosts.
    I've created a Zabbix item (trapper) that receive the output and process the output with a trigger.
    But there's no interval on a trapper. I would to get an alarm if the item didn't get updated after a week.
    There's probably a better way to do this. i've used system.run items for other stuff that needs constent update.

    Thanks.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Originally posted by typer100
    I would to get an alarm if the item didn't get updated after a week.
    Use the nodata() function in the trigger expression. For example, nodata(/host/item,7d) = 1 will trigger if there hasn't been any item data in 7 days.

    Markku

    Comment

    • typer100
      Junior Member
      • Jul 2024
      • 3

      #3
      Originally posted by Markku

      Use the nodata() function in the trigger expression. For example, nodata(/host/item,7d) = 1 will trigger if there hasn't been any item data in 7 days.

      Markku
      Yes. Thanks.

      Comment

      Working...