Zookeeper Logs Test

The Apache Zookeeper logs are a vast source of information related to errors and warnings that an Apache Zookeeper server encounters. Administrators use these log files not only to spot problem conditions, but also to troubleshoot them. By periodically scanning the log file of the Apache Zookeeper service for errors/warnings, the Zookeeper Logs test promptly notifies administrators as soon as a new error, warning, or informational message is logged in the file. As and when messages are logged in the log files, these log files grow larger in size. If the log file growth is left unchecked, it can consume all available space in the Apache Zookeeper server. Using this test, administrators can effectively track the log file growth and initiate measures to control it.

This test reports the errors logged in the log files, the current size of the log files and their growth rate. Using this test, administrators can figure out abnormal growth of the log file and isolate frequent errors.

Target of the test : Apache Zookeeper server

Agent deploying the test : An internal agent

Outputs of the test : One set of results for the target Apache Zookeeper server being monitored.

Configurable parameters for the test
Parameter Description

Test period

How often should the test be executed

Host

The IP address of the host for which this test is to be configured.

Port

The port at which the target Apache Zookeeper server listens to.

File Path

Specify the full path to the log file that is to be read by the test to pull out the metrics. For example, the full path can be specified as: /opt/zookeeper/apache-zookeeper-3.6.3-bin/logs/zookeeper-testing-server-Zookeeper.out.

ISUTF 16

Set this flag to Yes, if the test needs to use the UTF-16 encoding format for reading the specified log files. By default, this flag is set to No.

DD Frequency

Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

Error messages

Indicates the number of error messages logged in the log files during the last measurement period.

Number

Ideally, the value of this measure should be 0.

Warning messages

Indicates the number of warning messages logged in the log files during the last measurement period.

Number

Ideally, the value of this measure should be 0.

Informational messages

Indicates the number of informational messages logged in the log files during the last measurement period.

Number

 

File size

Indicates the current size of the log file.

MB

 

Growth rate

Indicates the rate at which the log file is growing.

MB/sec

A high value for this measure or a consistent increase in its value indicates that the Cassandra log is rapidly growing and may end up occupying too much space on the disk.