Process status collector module for the Magnum RPC-JSON API interface which collects magnum process status, process cpu, process memory, pid and process cluster information. Module is used by the inSITE Poller program
The Process status collector module has the below distinct abilities and features:
- Collect the process state, along with CPU, Memory and PID information
- Generates Magnum Server Redundancy status and state information
- Ability to mark process state information into "Standby" mode for processes which do not run on a Magnum Server in Standby mode.
- Auto discovers process to monitor, or from a supplied list.
- Auto discovers all magnum servers in a system via Cluster IP
- inSITE Version 10.3 and service pack 6
- Python3.7 (already installed on inSITE machine)
Installation of the status monitoring module requires copying two scripts into the poller modules folder:
- Copy magnum_process.py script to the poller python modules folder:
cp scripts/magnum_process.py /opt/evertz/insite/parasite/applications/pll-1/data/python/modules/
- Restart the poller application
To configure a poller to use the module start a new python poller configuration outlined below
- Click the create a custom poller from the poller application settings page.
- Enter a Name, Summary and Description information.
- Enter the cluster ip address of the Magnum system in the Hosts tab.
- From the Input tab change the Type to Python
- From the Input tab change the Metric Set Name field to magnum
- From the Python tab select the Advanced tab and enable the CPython Bindings option
- Select the Script tab, then paste the contents of scripts/poller_config.py into the script panel.
- Save changes, then restart the poller program.
The magnum_process script can be ran manually from the shell using the following command:
python magnum_process.py
Below is the help output:
python magnum_process.py -h
usage: magnum_process.py [-h] {manual,auto} ...
Magnum RPC-JSON API Poller program for service health status
positional arguments:
{manual,auto}
manual generate command manually
auto generate command automatically from external file or from
inside the script
optional arguments:
-h, --help show this help message and exit