System Monitoring
To verify that your TIBCO Messaging Monitoring - System Monitoring plugin installation is ready to monitor system performance, perform the following general tasks and confirmations.
Before you begin
- Ensure that you have Python 3 installed before you begin.
- Run the following script to install any Python dependencies required by TIBCO System Monitoring:
pip3 install -r /opt/tibco/msgmon/sys/requirements.txt
Start System Monitoring
Note: Note: The configured maximum number of file handlers must be high enough for InfluxDB to monitor multiple host. You can see the file handlers limit by executing "ulimit -n". You can set the file handlers limit by executing "ulimit -n <int>".
Start monitoring using the following procedure:
- Change to the monitoring directory:
cd /opt/tibco/msgmon/sys/bin
- Run the start script.
python3 msgmon-sys-start.py -sc /opt/tibco/msgmon/sys/config/sys_config.yaml
You see an output similar to the following:
************************************* TIBCO Messaging Monitoring - System Monitoring Plugin: 1.0.x Vx ************************************* INFO [argument_parser.py:115] MSGMON-System logging level set to INFO INFO [measurements.py:46] Successfully loaded all templates. INFO [validate.py:40] Validation successful. System-config @/opt/tibco/msgmon/sys/config/sys_config.yaml INFO [starter.py:36] Status File @ : /var/tmp/root/tibco-msgmon/status/msgmon-sys.yaml INFO [starter.py:54] Starting tibsys. INFO [starter.py:102] Successfully wrote/updated TIBSYS config file @ : /var/tmp/root/tibco-msgmon/TIBSYS_CONFIG/tibsys-config.yaml INFO [starter.py:116] tibsys homepath : /opt/tibco/msgmon/sys/tibsys INFO [starter.py:162] TibSys started @pid : 289 INFO [influx.py:263] InfluxDB server at http://localhost:8086 reports version 1.8.2 INFO [influx.py:356] Retention policy _persistent created with INF duration INFO [influx.py:356] Retention policy _tibco_system_rp created with INF duration
Note: Note: To see all available options, use the
-h
option.
Check Monitoring Status
To check that the monitoring for all of the cluster elements has started, enter:
python3 bin/msgmon-sys-status.py
You see an output similar to the following:
************************************* TIBCO Messaging Monitoring - System Monitoring Plugin: 1.0.x Vx ************************************* INFO [msgmon-sys-status.py:139] MSGMON-Sys logging level set to INFO INFO [msgmon-sys-status.py:94] Status File loaded from: /var/tmp/root/tibco-msgmon/status/msgmon-sys.yaml ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TibSys Status : Running ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stop Monitoring
To stop monitoring of a system host, run the stop script:
python3 bin/msgmon-sys-stop.py
You see an output similar to the following:
************************************* TIBCO Messaging Monitoring - System Monitoring Plugin: 1.0.x Vx ************************************* INFO [msgmon-sys-stop.py:169] MSGMON-System logging level set to INFO INFO [msgmon-sys-stop.py:112] Status File loaded from: /var/tmp/root/tibco-msgmon/status/msgmon-sys.yaml INFO [msgmon-sys-stop.py:120] Stopped process TibSys running with pid: 289 INFO [msgmon-sys-stop.py:138] Status File written to : /var/tmp/root/tibco-msgmon/status/msgmon-sys.yaml