Page 1 of 1
Monitor NLS status in NXI
Posted: Tue Apr 21, 2020 4:35 pm
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.
Re: Monitor NLS status in NXI
Posted: Tue Apr 21, 2020 5:18 pm
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...
Re: Monitor NLS status in NXI
Posted: Wed Apr 22, 2020 1:05 pm
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.
Re: Monitor NLS status in NXI
Posted: Thu Apr 23, 2020 3:54 pm
by gormank
Perfect. The query I need is in the script. Sorry for not looking for it in the KB...
Re: Monitor NLS status in NXI
Posted: Thu Apr 23, 2020 4:52 pm
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.