Skip to content

Commit

Permalink
Update nrpe.cfg.in
Browse files Browse the repository at this point in the history
The wload and cload for check_load should be specified in decimal notation. The current defaults in percent notation would never work correctly in the latest versions of this plugin, and they're - unfortunately - probably the basis for a lot of people's production configuration. See https://github.com/nagios-plugins/nagios-plugins/blob/master/plugins/check_load.c#L200 for why percent notation doesn't work.

I would also add "-r" to divide by the number of cores, as that provides the most user-friendly way to specify wload and cload without knowing the number of CPUs on a system and without adding explanatory notes to the nrpe.cfg file.
  • Loading branch information
minusdavid authored and John C. Frickson committed Sep 26, 2016
1 parent cb5300c commit 2c935fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample-config/nrpe.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ connection_timeout=300
# The following examples use hardcoded command arguments...

command[check_users]=@pluginsdir@/check_users -w 5 -c 10
command[check_load]=@pluginsdir@/check_load -w 15,10,5 -c 30,25,20
command[check_load]=@pluginsdir@/check_load -r -w .15,.10,.05 -c .30,.25,.20
command[check_hda1]=@pluginsdir@/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=@pluginsdir@/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=@pluginsdir@/check_procs -w 150 -c 200
Expand Down

0 comments on commit 2c935fb

Please sign in to comment.