avg load configuration should support 'auto' as procs option does

Bug #1578815 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nrpe (Juju Charms Collection)
Fix Released
Medium
Felipe Reyes

Bug Description

avg load uses a hardcoded value "-w 8,8,8 -c 15,15,15" that is not suitable for a lot of the modern servers with >=16 CPUs (as reported by lscpu), nor by small virtual machines (e.g. 4 cores).

It would be good if nrpe could be able to calculate a good value to use in the check, it's already done in the 'procs' configuration option.

@niedbalski suggested to use a "proc_count() * 0.7" for the warnings and "proc_count()" for the critical option, and I personally think it's a good formula.

Related branches

Felipe Reyes (freyes)
Changed in nrpe (Juju Charms Collection):
assignee: nobody → Felipe Reyes (freyes)
Felipe Reyes (freyes)
Changed in nrpe (Juju Charms Collection):
status: New → In Progress
Changed in nrpe (Juju Charms Collection):
importance: Undecided → Medium
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.