Ad Widget

Collapse

How to formulate a trigger if HTTP agent succeeds or not?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yurtesen
    Senior Member
    • Aug 2008
    • 130

    #1

    How to formulate a trigger if HTTP agent succeeds or not?

    I have a raw item which fetches data using HTTP agent. This data is NOT stored in database, but used by discovery rules and in turn dependent items which are discovered.

    Since the data fetch does not store any data, how can one check if the data fetch worked eg. for last 1h? Any suggestions?

    It would be hard to make triggers on the discovery rules as it is not possible to know beforehand if anything will be discovered or not.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Add another dependent item, which has JS preprocessing, make that JS to ignore anything from master and just return timestamp for "now". Each time your master item fetches new data, this item will be updated. Make trigger based on that.

    Comment

    • yurtesen
      Senior Member
      • Aug 2008
      • 130

      #3
      Thank you cyber
      That was what I expected the solution to be but hoped there would be a better way.

      Comment

      Working...