Ad Widget

Collapse

Heartbeat Integration with ServiceNow - Auto close problems after 10 mins.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GaryBarber
    Junior Member
    • Jan 2020
    • 13

    #1

    Heartbeat Integration with ServiceNow - Auto close problems after 10 mins.

    We have integrated Zabbix with Servicenow so that when Zabbix creates in incident in ServiceNow it returns the incident reference as a tag which is displayed on the Problems page.

    What I want to do now is to create an item and trigger that can be used as a heartbeat that tests every ten minutes whether the integration is working.

    The flow would be:

    1. Zabbix creates a problem.
    2. Zabbix creates an incident in servicenow.
    3. After 8 mins an action is fired that checks if the servicenow tag contains an incident reference. If it does then an email is sent to a specific mailbox.
    4. After 9 mins the problem is closed.
    5. After 10 mins a new problem is created.

    I've been trying to figure out a way of doing this for a while and I can't work out how to make a trigger that will close the problem after 10 mins. The triggers I've experimented with still meet the trigger expressionc requirements, so the recovery expression is ignored.

    Has anyone done something like this that can help?

  • GaryBarber
    Junior Member
    • Jan 2020
    • 13

    #2
    I've tried creating an item for the system.uptime with an interval of 10 mins.

    Problem expression : {Template App Zabbix Server:system.uptime.count(10s)}=1

    Recovery expression : {Template App Zabbix Server:system.uptime.count(540s)}=1

    When the item value is updated every 10 mins, the trigger fires, so the problem is created.

    But for some reason, despite the count not changing for the next ten mins the recovery expression doesn't do its job.

    Comment

    Working...