i have created nagios user and installed nagios plugins in remote machines.
Return code of 255 is out of bounds : UNKNOWN - check_by_ssh: Remote command '/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /' returned status 255))
my commands.cfg is
define command{
command_name check_disk_by_ssh
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$" -E
}
i have tried with -l nagios -i ~nagios/.ssh option in command line but no luck
define service{
use local-service
#hostgroup_name servers ; Name of service template to use
host_name <remote host>
service_description Root Partition
check_command check_disk_by_ssh!20%!10%!/
check_interval 1
max_check_attempts 1
notification_interval 0
notifications_enabled 1
}
please help me ................