|Anonymous | Login | Signup for a new account||2013-06-19 14:59 EDT|
|Main | My View | View Issues | Change Log | Roadmap|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0000159||[NRPE] Installation||minor||always||2010-07-27 09:41||2010-10-08 12:40|
|Summary||0000159: includefile option doesn't work|
We like to monitor several cluster resources.
A resource can be active on one of the clusternodes and the resource itself has it's own ip-address and a san-disk.
Our goal is to have an nrpe.cfg file on a clusternode only containing the checks needed for the server itself. Within the file we would like to refer to include files. When the nrpe daemon is starting it has to load the local checks and (if the resource disk is available) the extra checks for the resource.
/etc/nagios/nrpe.cfg contains the lines:
# System checks
command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 5% -c 10%
# Application checks
/apps/ict/nrpe.cfg contains the line:
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10% -c 5% /apps/ict
Unfortunately this concept doesn't work as expected. Only the local checks work, the checks in the include file result in "NRPE: Command 'check_disk not defined ".
|Tags||No tags attached.|
I tested it and it works. What I did, copy the sample command
#command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
in nrpe.conf to a separate file, renamed it to check_users2 to be really sure, included that new file via include=
check_nrpe -H IP -c check_users2
gave the expected result
USERS OK - 1 users currently logged in |users=1;5;10;0
I think this might be a file access issue, maybe it is not readable for the user running nrpe. If an include cannot be read it is logged via syslog.
|2010-07-27 09:41||paulverhoeven||New Issue|
|2010-07-27 09:41||paulverhoeven||OS||=> SLES|
|2010-07-27 09:41||paulverhoeven||OS Version||=> 11|
|2010-10-08 12:40||Meier||Note Added: 0000248|
|Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group|