From f722765369b3900f57d845e5c9e2e170a560302c Mon Sep 17 00:00:00 2001 From: nadir Date: Mon, 4 Oct 2010 18:25:25 +0200 Subject: Basic NRPE Support amended (lelutin): removed trailing spaces and commented out code. --- files/nrpe/nrpe_commands.cfg | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 files/nrpe/nrpe_commands.cfg (limited to 'files/nrpe') diff --git a/files/nrpe/nrpe_commands.cfg b/files/nrpe/nrpe_commands.cfg new file mode 100644 index 0000000..1a26cc3 --- /dev/null +++ b/files/nrpe/nrpe_commands.cfg @@ -0,0 +1,6 @@ +# default plugins +command[check_users]=/usr/lib/nagios/plugins/check_users $ARG1$ +command[check_load]=/usr/lib/nagios/plugins/check_load $ARG1$ +command[check_disk]=/usr/lib/nagios/plugins/check_disk $ARG1$ -x "/dev" -x "/dev/shm" -x "/lib/init/rw" +command[check_apt]=sudo /usr/lib/nagios/plugins/check_apt -u $ARG1$ +command[check_swap]=/usr/lib/nagios/plugins/check_swap $ARG1$ -- cgit v1.2.3 From 7fb80fbecfa5a186846a2909bd1d6ada32ba21e1 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Wed, 27 Apr 2011 15:46:58 -0400 Subject: Define check_load as a function of the nb of cpus The "check_load" nagios check should not be hardcoded to some arbitrary value. The thresholds should rather be adjusted in function of how many CPUs are present in the server. The factors were chosen by prior experience but could be adjusted if needed. Factors for warning thresholds (where N is the nb of cpus): * 1min : 5 * N * 5mins : 4 * N * 15mins : 3 * N Factors for critical thresholds: * 1min : 10 * N * 5mins : 9 * N * 15mins : 8 * N --- files/nrpe/nrpe_commands.cfg | 1 - 1 file changed, 1 deletion(-) (limited to 'files/nrpe') diff --git a/files/nrpe/nrpe_commands.cfg b/files/nrpe/nrpe_commands.cfg index 1a26cc3..b725a36 100644 --- a/files/nrpe/nrpe_commands.cfg +++ b/files/nrpe/nrpe_commands.cfg @@ -1,6 +1,5 @@ # default plugins command[check_users]=/usr/lib/nagios/plugins/check_users $ARG1$ -command[check_load]=/usr/lib/nagios/plugins/check_load $ARG1$ command[check_disk]=/usr/lib/nagios/plugins/check_disk $ARG1$ -x "/dev" -x "/dev/shm" -x "/lib/init/rw" command[check_apt]=sudo /usr/lib/nagios/plugins/check_apt -u $ARG1$ command[check_swap]=/usr/lib/nagios/plugins/check_swap $ARG1$ -- cgit v1.2.3