Comments (9)
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.
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.
@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.
@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.
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.
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.
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.
OK. Perhaps we should change it to _tag
(singular) then.
from flapjackfeeder.
done.
from flapjackfeeder.
Related Issues (12)
- Compiling on Mac OS X fails HOT 2
- Two flapjackfeeders doesn't work HOT 4
- Module connects to Redis but doesn't send events HOT 3
- Merge Nagios Host Tags with Service Tags
- Config option needed for Flapjack major version, and change Redis write behaviour based on that HOT 1
- flapjackfeeder no longer works against naemon 1.0.4 HOT 4
- event format needs some massaging for host check results
- Quotes are not being escaped in check name (nagios service) HOT 4
- Make redis db used configurable via module options in nagios config
- support Naemon and Nagios 4 HOT 5
- Employ make or other appropriate build tool HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flapjackfeeder.