Icinga / icingaweb2-module-elasticsearch

This module will not be updated by Icinga anymore. Please don't attempt to use it.
GNU General Public License v2.0
29 stars 9 forks source link

Provide checks for Icinga based on event contents #41

Closed widhalmt closed 5 years ago

widhalmt commented 5 years ago

Hi,

I'd like to have Icinga checks for certain events.

I think the easiest way for the user would be to make them IcingaCLI checks.

While I can think of a lot of different ways this might be useful, a simple one might be sufficient. For example:

The check could then work like icingacli elasticsearch criticalicinga -h [hostname]. If there are more than 5 events matching the filters of the Eventtype and have the field [icinga][severity] set to "Critical" on that host it returns Critical.

Cheers,

dnsmichi commented 5 years ago

Isn't that already covered with https://github.com/Icinga/icingaweb2-module-elasticsearch/blob/master/application/clicommands/CheckCommand.php ?

widhalmt commented 5 years ago

Seems, we are lacking some documentation, then. ;-) I'm on it.