- Plesk Onyx for Linux
Health monitor shows high CPU usage even if only one core is active from 32 cores. Why do Health Monitor shows usage only for one core and do not differ cores number?
Plesk Health Monitor is based on collectd and it uses standard plugin "processes" for collectd. The plugin doesn't have any setting to divide CPU usage on a number of CPUs. As a result currently Plesk implementation of such plugin does not detect number of CPUs automatically and the following settings should be updated manually in
# grep maxvalue /usr/local/psa/admin/conf/health-config.xml | grep Web
<service name="Web" dbname="processes-Web" monitor="true" maxvalue="1000000">
<service name="WebProxy" dbname="processes-WebProxy" monitor="true" maxvalue="1000000">
maxvalue parameter as follows number_of_CPU*1000000 to make HealthMonitor display CPU usage correctly, in case of 32 cores it will be 32000000 value.
Plugin description: https://collectd.org/wiki/index.php/Plugin:Processes
Plugin configuration: https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_processes