Coder Social home page Coder Social logo

tagging checks about flapjackfeeder HOT 9 CLOSED

pulecp avatar pulecp commented on July 18, 2024
tagging checks

from flapjackfeeder.

Comments (9)

jessereynolds avatar jessereynolds commented on July 18, 2024

At the moment you can’t add custom tags to be passed by flapjackfeeder, but note that every word in your check definition / name will be created as ephemeral tags on the event in flapjack, also the domain and host parts of the fqdn (eg foo-app-01.example.com creates tags “foo-app-01” and “example.com”)

eg if check name is “HTTP Regex for www.example.com” then you get that split into 4 tags also
‘HTTP’, ‘Regex’, etc

It may be possible to extend flapjackfeeder to create event tags to carry through the servicegroups etc, eg "servicegroup:group_1", "servicegrouop:group_2" etc

from flapjackfeeder.

pulecp avatar pulecp commented on July 18, 2024

Matching hostname is good way but it's not enough.

Are you sure that NEB provides information about servicegroups beacuse I didn't find it defined it here: https://github.com/Icinga/Icinga-core/blob/master/include/nebcallbacks.h

from flapjackfeeder.

jessereynolds avatar jessereynolds commented on July 18, 2024

@pulecp sorry no I'm not at all sure that it's possible. I was discussing this with @bs-github yesterday, perhaps he can shed some more light.

from flapjackfeeder.

jessereynolds avatar jessereynolds commented on July 18, 2024

@bs-github is now working on this. The plan is to pick up the following custom variables from the Nagios/Naemon/Icinga configuration:

  • _tags - containing tags delimited by !
  • _initial_failure_delay - in seconds
  • _repeat_failure_delay - in seconds

from flapjackfeeder.

bs-github avatar bs-github commented on July 18, 2024

The code is still not 100%, but a good part of it should be done.
2699b49

One thing is implemented differently:
For _tags - containing tags delimited by ! the code ignores the !s completely.
But you can use multiple _tags lines instead.

from flapjackfeeder.

jessereynolds avatar jessereynolds commented on July 18, 2024

Excellent work.

With _tags - do you mean that Nagios doesn't send through the full value including the !s? Or that you haven't done the split yet?

from flapjackfeeder.

bs-github avatar bs-github commented on July 18, 2024

I haven't done a split on ! and I do even think multiple _tags lines are more elegant.
Also that already works.
So, I tend to not implement the split thing.

from flapjackfeeder.

jessereynolds avatar jessereynolds commented on July 18, 2024

OK. Perhaps we should change it to _tag (singular) then.

from flapjackfeeder.

bs-github avatar bs-github commented on July 18, 2024

done.

from flapjackfeeder.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.