Running the guardian command
The guardian command can be used to reference all the property files that are in a single directory. The command uses your default Java™ logging to log the messages each time an alarm condition is triggered.
About this task
You must run the pmiManager script to start the guardian utility.
The guardian utility writes a message to the Java logger when the defined thresholds of the property files in the specified directory are reached, and in some cases nearly reached.
The information that is written to these logs can be used to monitor the health of the server topology, and to find messages specific to your solutions and events. You can aggregate these logs to monitor your solutions and give you insight into what your system is doing, and what happened.
To aggregate the logs you can choose from many open source and commercial products that excel in this area. Logstash for example, is an open source tool that helps you to collect, parse, index, and forward logs. Logstash is commonly used as part of the ELK stack, which also includes Elasticsearch (a clustered search and storage system) and Kibana (a web front end for Elasticsearch). Elasticsearch is a full-text search and analytics engine that helps you to store, search, and analyze large volumes of data in near real time.
Procedure
Example
WARNING: {"alarm" : {
"message": "Predict DelayTimerTotal.MapUsedBytes will be 463.9 MB at 2016-03-25T15:49:58.218Z. Value is increasing at 1.38 MB/hour.",
"timestamp": "2016-03-11T15:49:58.218Z",
"level": "WARNING",
"hostname": "<host_name>",
"attribute": "DelayTimerTotal.MapUsedBytes",
"currentValue": "186078",
"currentValueDisplay": "186.1 kB",
"rateOfIncrease": "1.38",
"predictedValue": "463939657",
"predictedValueDisplay": "463.9 MB",
"predictedTimestamp": "2016-03-25T15:49:58.218Z",
"threshold": "300000000",
"thresholdDisplay": "300.0 MB"}
}