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.
Monitor NLS status in NXI
Re: Monitor NLS status in NXI
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
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:
The above would trigger a warning if the number of nodes found in a cluster is below 3 and a critical if below 2.
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:"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.
Re: Monitor NLS status in NXI
Perfect. The query I need is in the script. Sorry for not looking for it in the KB...
Re: Monitor NLS status in NXI
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.