One needs to be familiar with options in Nagios Log Server to manage the Clusters in it effectively.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Nagios queries.
In this context, we shall look into how to manage and identify key information on Nagios Log Server Cluster.
To manage Nagios Log Server cluster, navigate to Admin > System > Cluster Status.
The cluster status page allows us to see the current statistics and behavior of the cluster. In the top right corner of the page is the Cluster ID. When adding new instances to this cluster we will need to use this ID.
This table will describe the statistics associated with Nagios Log Server Cluster. Moreover, this view is very good for managing or engineering a new Nagios Log Server Cluster or a cluster that needs more instances added to it.
The following information is displayed:
This table allows us to view the current health of the cluster. The status is based on the current allocation status of the shards that make up our cluster. Furthermore, the different health levels are:
This is also a good way to get the status of our cluster's shards and if they are being relocated, initialized or assigned based on the status of our instances.
If an instance goes down in our cluster, it may show a number of unassigned shards in this table.
When the instance comes back online, we will be able to observe the number of unassigned shards reduce, eventually the number will return to 0 and the cluster will return to a green status.
You will see the size and statistics of each index in the cluster of the Indices table.
We can Open, Close or Delete an Index in the Action column. We can perform these actions on multiple indices by using the check boxes in the left column and then selecting an action from the 'With selected indices' drop down list.
If we require more detailed information about our cluster, we will need to execute commands in a terminal session using a curl command.
Establish a terminal session to one of our Nagios Log Server instances and execute the following commands:
# curl -XGET 'http://localhost:9200/_cat/health?v'
# curl -XGET 'http://localhost:9200/_cat/nodes?v'
# curl -XGET 'http://localhost:9200/_cat/master?v'
This article covers how to manage and identify key information on your Nagios Log. Nagios Log Server is a clustered application, it consists of one or more instances of Nagios Log Server. An instance is an installation of Nagios Log Server, it participates in the cluster and acts as a location for the received log data to reside. The log data is spread across the instances using the Elasticsearch database, a special database used by Nagios Log Server.