I successfully set up a Nagios 3.4.0 on squeeze and including remote monitoring of 2 servers.
They are communicate properly:
./check_nrpe -H remoteserverip -c check_users"
result is ok.
./check_nrpe -H remoteserverip -c check_load
OK - load average: 0.20, 0.17, 0.16|load1=0.200;15.000;30.000;0; load5=0.170;10.000;25.000;0; load15=0.160;5.000;20.000;0;
So far so good now i need to create the host configuration file so the command are performed automatically.
in remoteserverip.cfg i have the following:
Code: Select all
define host{
use linux-server
host_name remoteservername
alias remoteserverdescription
address remoteserverip
}
define service{
use generic-service
host_name remoteservername
service_description CPU Load
check_command check_nrpe!check_load
}
I tried a lot of things while i read here and there but may be someone can post me a sample so i can create my server conf files in a way they work !remoteservername
CPU Load
UNKNOWN 05-14-2012 16:15:42 0d 0h 16m 27s 3/3 /usr/lib/nagios/plugins/check_nrpe: option requires an argument -- 'a'
Bernard
PS : On my 3.2.1 the following Work but copying this into my 3.4.0 config file doesn't work and give me the following error :
Error: Service check command 'check_nrpe_1arg' specified in service 'CPU Load' for host 'remoteservername' not defined anywhere!
Code: Select all
define service{
use generic-service
host_name remoteservername
service_description Current Load
check_command check_nrpe_1arg!check_load
}