print_sysmon_info.py

The print_sysmon_info.py script retrieves information for monitored objects.

Syntax

print_sysmon_info.py [-h] [--address ADDRESS] [--port PORT]

Options

The print_sysmon_info.py script has the following command line options:

-h, --help
Show this help message and exit.
--address ADDRESS, -a ADDRESS
The IP address for System Monitor. If not defined, obtain from sysmon_config.xml.
--port PORT, -p PORT
The port for System Monitor. If not defined, obtain from sysmon_config.xml.

The script example below is as follows:

  • Test-queue-{letter} – These queues are defined in sysmon_config.xml.
  • enabled – Whether the monitored object is enabled.
  • use for node level – The node level is an integral values to describe its health status. Node is a server/processing pod. This parameter means the value of this monitored object will be used to compute the integral node level.
  • update timeout (ms) – Time between getting value from monitored object in milliseconds.
  • ready – Whether the monitored object is ready.
  • usage level – Usage level percentage of current monitored object.
  • Node usage level – Integral node usage level.
The example script output.
Example of script output:

 Using System Monitor configuration file 'sysmon_config.xml'
 Using management interface '127.0.0.100:7090'
 Monitored objects:
     Test-queue-A:
         enabled: yes
         use for node level: no
         update timeout (ms): 1000
         ready: yes
         usage level: 50

     Test-queue-B:
         enabled: yes
         use for node level: no
         update timeout (ms): 350
         ready: yes
         usage level: 25

 Node usage level: 0%