Ad Widget

Collapse

How to parse and compare a list and then alert when it differs - Migrating from Sensu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doogie
    Junior Member
    • May 2020
    • 15

    #1

    How to parse and compare a list and then alert when it differs - Migrating from Sensu

    Hi all,

    We're just in the development phase of migrating our Sensu Core -> Zabbix. One of the main things we were trying to achieve was the use of more metric based reporting (which we're well on the way to achieving), but one of the things sensu does well is the ability to compare two strings / list of items and alert based on that.

    So what we're trying to achieve and I can't quite work out is to get a list of items / modules such as this:

    module1 module2 module3

    And then compare it to what should be running, and let us know which module is running that shouldn't be, or what item isn't running that should. So say module4 was running, we could alert and say module4 is running but shouldn't be. And if module2 died, we could alert and say module2 should be running but isn't.

    What I guess I'm trying to work out is how to get the data to Zabbix (i.e. should I use a method like JSON and a trap) or just put everyone in as individual items and do an advanced trigger. Looking for the best way, so trying to figure out:
    1. How to get the data to zabbix
    2. Best way to store the data (individual items or an 'array')
    3. Best way to trigger on this
    Thanks!

    Doogie
Working...