Skip to content

ricniew/check-itm-agent-responsiveness

Repository files navigation

Check ITM Agent responsiveness

Check if agent is up and running and responds to requests

Author: Richard Niewolik

Contact: niewolik@de.ibm.com

Revision: 0.1

1 General

2 How it works

3 Supported Operating System

4 Prerequisites

2 Installation and Usage

1 General

Sometime in IBM Tivoli Monitoring (ITM), agents that are reported to be online are not doing its job. Hence situations are not running and you will not get alerts for the thresholds you are monitoring. You fail to meet SLAs and this can be pricey. It is almost not possible to find those agents by using the ITM provided mechanism. Such agents occasionally time out when real-time data is requested and the status will be set to offline, but not always. They will be called as "not-responsive" agents further in this document.

Mostly you are alerted by your application administrators or customers that they did not get any event for their business application, even an ITM situation was set up to monitor a specific condition. Usually, you check the agent's health by a Tivoli Enterprise Portal real-time data request, for example a disk usage report. If the agent goes offline after such a request, you start it again. If it remains online, but no data is returned, your next action would be to check the logs and restart agent for quick problem resolution. After the agent restart, you will probably execute several tests to verify the agent's behavior. All of the tests will mostly be successful and the issue appears to be solved. However, it remains an insecure feeling because you do not know when and where the problem reoccurs.

This solution (download) will help you to monitor not-responsive agents and avoid manual work to find those agents before hand. It can be used in two different ways Standalone script or Agent Builder Custom Agent.

2 How it works

This solution can be used in two ways.

  1. Script only mode: A script is executed manualy. Results are written to STDOUT and files. Details can be found here Wiki

  2. IBM Agent Builder custom agent

    The heart of this tool is a simple Perl script. Mainly doing the following:

    • Using SOAP to connect to the IBM HUB Server
    • Creating an agent status list before real time data request
    • Retrieve real-time data from the agents
    • Creating an agent status list again
    • Check for which agents no data have been returned and reporting those agents to STDOUT and into a file.

    Details can be found here Wiki

3 Supported Operating System

Procedure was tested on Windows and Linux Redhat + Suse but should run on other UNIX and Linux Operating systems.

4 Prerequisites

PERL needs to be installed on the computer where this tool is going to be used.

Following PERL packages are used and needs to be available:

   >use LWP::UserAgent
   >use XML::Simple;
   >use Getopt::Long;
   >use Data::Dumper;
   >use File::Basename;
   >use Time::Local;
   >use Sys::Hostname;

2 Installation and Usage

Please refer to the Wiki

About

Check if agent is up and running and responds to requests

Resources

Stars

Watchers

Forks

Packages

No packages published