it-novum / openITCOCKPIT

openITCOCKPIT is an Open Source system monitoring tool built for different monitoring engines like Nagios, Naemon and Prometheus.
https://openitcockpit.io/
GNU General Public License v3.0
263 stars 50 forks source link

Add Minimum and Maximum variables to the Agent CPU Load check #1683

Open kbilev opened 3 months ago

kbilev commented 3 months ago

Is your feature request related to a problem? Please describe. Performance Data only provides the warning, critical and min=0 values, no maximum value. When using for example Tachographs in a Dashboard with CPU Load provided by the agent, the minimum is set to 0 and the maximum to 100.

Describe the solution you'd like Add arguments for Minimum and Maximum to the CPU load check (and if they are empty, continue to use the default values)

Describe alternatives you've considered As workaround I have added in the SystemLoad.php a $critical + 10 as maximum value which is already better than the default empty value or 100 in the Tachograph as it is empty.

Additional context Before: image After: image