2007/7/20, Aidan Anderson <[EMAIL PROTECTED]>:
Have you set up the command definition correctly in commands.cfg or
wherever you store your commands on your Nagios server. Also check that
Nagios has permission to execute the pluggin on the remote machine.
Test by re-trying your check_nrpe command logged on as nagios.
Yes, I setted up the command definition for check_nrpe on the Nagios server
as the following:
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a
$ARG2$
}
The command in the host configuration on the Nagios server is confgured as
the following:
define service{
use remote-service
host_name my.remote.server
service_description SMART
check_command check_nrpe!check_smart_attributes
}
If I test the command logged on as nagios on the Nagios server it works:
nagiosserver:/home/me# su nagios
nagiosserver:/home/me$ whoami
nagios
nagiosserver:/home/me$ /usr/local/nagios/libexec/check_nrpe -H
backuppc.foobar.local -c check_backuppc
BACKUPPC WARNING - (4/7) failures
nagiosserver:/home/me$
As you can see, it works, but it doesn't works from Nagios itself.
Bye!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null