This script is intended to be an icinga, nagios or naemon plugin which measures the CPU usage in percent. By default you get the total usage of all cores but you can also measure all the cores.
The php script is needed by pnp4nagios and is made for only one CPU. If you need more, extend the script to yur needs.
The php script is needed by pnp4nagios and is made for only one CPU. If you need more, extend the script to your needs.
Usage
=====
First of all, dont run this script as root. It will create a temporary file called /tmp/check_cpu_usage.gap.tmp, whith the actual measures. The script comes with a help option.
First of all, don't run this script as root. It will create a temporary file called /tmp/check_cpu_usage.gap.tmp, with the actual measures. The script comes with a help option.