Ad Widget

Collapse

Extract data from string for trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TomPW
    Junior Member
    • May 2016
    • 6

    #1

    Extract data from string for trigger

    I'm monitoring a couple of Fortigate firewalls over SMTP with Zabbix 2.0.9 (I know it's very, VERY old, we'll be upgrading later this year), and want to create a trigger if the AV/IPS definitions are too old.
    The version is given in the following format: "7.00864(2016-05-27 01:33)"
    I want to generate a trigger if the version is older than 3 days (ideally 72 hours, but that would be nitpicking :P), but I'm stuck on how to implement that.
    My main problem is how to extract the date from this string. After that, I think the solution is as simple as {Fortigate:1.3.6.1.4.1.12356.101.4.2.1.0.date(0)}> 3
    Does anybody have a brilliant idea on how to implement this?
Working...