check_by_ssh
Posted: Wed May 07, 2014 12:03 pm
Hello All,
Please note that I am a Nagios newb so please be gentle!
I have establish an key connection to the remote server and abble to SSH in with out pws.
I am also able to execute commands in CLI:
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H x.x.x.x -C "~/box293_check_vmware.pl --server y.y.y.y --check vCenter_Name_Version"
this command return a valid response.
When I run this from Nagios:
/usr/local/nagios/libexec/check_by_ssh -l vi-admin -H x.x.x.x $ARG1$
$ARG1$ = -C "~/box29vmware.pl --server y.y.y.y --check vCenter_Name_Version"
I get
TEST: OUTPUT: Remote command execution failed: Could not create directory '/var/www/.ssh'.
and Remote command execution failed.
Any tips would be appreciated.
Please note that I am a Nagios newb so please be gentle!
I have establish an key connection to the remote server and abble to SSH in with out pws.
I am also able to execute commands in CLI:
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H x.x.x.x -C "~/box293_check_vmware.pl --server y.y.y.y --check vCenter_Name_Version"
this command return a valid response.
When I run this from Nagios:
/usr/local/nagios/libexec/check_by_ssh -l vi-admin -H x.x.x.x $ARG1$
$ARG1$ = -C "~/box29vmware.pl --server y.y.y.y --check vCenter_Name_Version"
I get
TEST: OUTPUT: Remote command execution failed: Could not create directory '/var/www/.ssh'.
and Remote command execution failed.
Any tips would be appreciated.