Nagios XI query Elasticsearch to alert on specific criteria

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Nagios XI query Elasticsearch to alert on specific criteria

Post by bennyboy »

Do you know if a plugin already exist to query Elasticsearch to generate alert.

Thank you!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios XI query Elasticsearch to alert on specific crite

Post by mcapra »

The check_nagioslogserver plugin included with Nagios XI can run ElasticSearch queries, but it does so against the Nagios Log Server API rather than hitting ElasticSearch directly. Are you just looking to run a query and count the returned documents? If so, check_nagioslogserver could be modified to do that without too much trouble depending on the ElasticSearch version in play.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI query Elasticsearch to alert on specific crite

Post by scottwilkerson »

@mcapra is correct, there is actually a Nagios Log Server Wizard in Nagios XI too that you can use as well.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked