Article ID: 127135, created on Oct 12, 2015, last review on Nov 18, 2015

Symptoms

New command line utility ppa.health_check was added to Plesk Automation to check several basic sides of PA infrastructure, e.g. disk space, load average, free memory, open ports of services, services statuses on management node and on service nodes.

Such manual checks could consume a lot of time and some steps could be missed.

To help automate this process we created small tool to automatically check all above options on PA installation.

Utility ppa.health_check is shipped in scope of update 21.

Resolution

There are different execution options:

[root@mn ~]#  /usr/local/ppa/bin/ppa.health_check --help
Usage: ppa.health_check [options] [service_node_ip1 service_node_ip2 ...]

The utility checks all service nodes in the system on: whether they run all
the required services; whether all the required TCP ports on the nodes are
open. Empty options will run all checks.

Options:
  -h, --help       show this help message and exit
  -s, --services   Check the status of services on the nodes
  -p, --ports      Check open ports on the nodes
  -r, --resources  Check resources on nodes
  -q, --quite      Runs in silent mode, shows errors only and performance
                    chart

Output example:

------------------------------------------------------------------------------------------------------------------------------------
|                 SERVICE NODE                 |       OS        |           Disk          |LOAD AVERAGE| UPTIME |  MEMORY in MB   |
|       hostname           | id|    host IP    |                 |  total |      free      |    5 min   |  days  |  total | free   |
------------------------------------------------------------------------------------------------------------------------------------
|a10-52-63-121.qa.plesk.ru | 1 |10.52.63.121   |  RHEL 6 x86_64  |  14Gb  |  8Gb (55.0%)   |     0      |   0    |  4096  |  1792  |
------------------------------------------------------------------------------------------------------------------------------------
|a10-52-61-181.qa.plesk.ru | 3 |10.52.61.181   | CentOS 6 x86_64 |  14Gb  |  12Gb (87.0%)  |     0      |   0    |  2048  |  1896  |
------------------------------------------------------------------------------------------------------------------------------------
|a10-52-140-176.qa.plesk.ru| 4 |10.52.140.176  | CentOS 6 x86_64 |  14Gb  |  12Gb (88.5%)  |     0      |   0    |  2048  |  1613  |
------------------------------------------------------------------------------------------------------------------------------------
|a10-52-53-142.qa.plesk.ru | 5 |10.52.53.142   | CentOS 6 x86_64 |  14Gb  |  13Gb (90.3%)  |     0      |   0    |  2048  |  1926  |
------------------------------------------------------------------------------------------------------------------------------------
|a10-52-68-244.qa.plesk.ru | 6 |10.52.68.244   | CentOS 6 x86_64 |  14Gb  |  13Gb (90.0%)  |     0      |   0    |  2048  |  1935  |
------------------------------------------------------------------------------------------------------------------------------------
|A10-52-55-24              | 7 |10.52.55.24    |  Win 6.3 x86_64 | 499Gb  | 489Gb (97.9%)  |     0      |   0    |  2048  |  1446  |
------------------------------------------------------------------------------------------------

Check services on management node:

[Apache web server]: httpd is running        [  OK  ]
[Plesk web server]: sw-cp-server is running  [  OK  ]
[Plesk engine]: sw-engine is running         [  OK  ]
[POA agent]: pem is running                  [  OK  ]
[POA UI]: pemui is running                   [  OK  ]
[PPA Mail]: postfix is running               [  OK  ]
[Plesk database]: mysqld is running          [  OK  ]
[POA database]: postgresql-9.1 is running    [  OK  ]
[DNS]: named is running                      [  OK  ]

SUCCESS: All the required services are running.
...
...
...

Email subscription for changes to this article
Save as PDF