Monitor NLS status in NXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Monitor NLS status in NXI

Post by gormank »

I noticed an NLS system showed a missing instance. Restarting elasticsearch on the missing host brought it back.
I'd like to monitor in NXI for less than n instances but all I see in the wizards is a query check.
So my question is how do I query/check the number of instances? I tried the query wizard but got: server returned invalid output.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Monitor NLS status in NXI

Post by gormank »

I got past the error in the wizard by adding /nagioslogserver/ to the URL as the text stated. Still, I need a query...
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor NLS status in NXI

Post by cdienger »

I would recommend using NCPA to run a plugin to check the number of instances in a cluster.

https://support.nagios.com/kb/article/n ... i-857.html covers the basic setup. In addition to this you'll need to copy the attached scripts to the /usr/local/ncpa/plugins directory of the NLS servers. The attached script takes three arguments; the expected number of instances, a warning threshold, and a critical threshold. For example:

Code: Select all

./check_es_node_count.sh 3 "3:" "2:"
The above would trigger a warning if the number of nodes found in a cluster is below 3 and a critical if below 2.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Monitor NLS status in NXI

Post by gormank »

Perfect. The query I need is in the script. Sorry for not looking for it in the KB...
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor NLS status in NXI

Post by cdienger »

Glad to hear it was some help. I'll file a feature request to see if we can include this check going forward.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked