vMA Settings manager is a little different as it runs at the apache user not nagios (but the nagios user is used for the checks).
In the steps below,
10.XXX.XXX.XXX = vMA host
10.ZZZ.ZZZ.ZZZ = vCenter server
Try these commands and post back the results please:
The following commands will be done as the nagios user
Does this command prompt you for credentials?
If you do login or are not prompted for credentials, type exit so end the SSH session and return to the nagios host.
Does this command prompt you for credentials, what is the output?
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.XXX.XXX.XXX -C '~/box293_check_vmware.pl --server 10.ZZZ.ZZZ.ZZZ --version'
We'll stop being the nagios user now, type exit
The following commands will be done as the apache user:
Does this command prompt you for credentials?
If you do login or are not prompted for credentials, type exit so end the SSH session and return to the nagios host.
Does this command prompt you for credentials, what is the output?
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.XXX.XXX.XXX -C '~/box293_check_vmware.pl --server 10.ZZZ.ZZZ.ZZZ --version'
Also, provide the output from these commands:
Code: Select all
ls -al /var/www/
ls -al /var/www/.ssh/
Do these commands produce output? Don't post the output here.
Code: Select all
cat /var/www/.ssh/id_dsa
cat /var/www/.ssh/known_hosts
We'll stop being the apache user now, type exit
Also, what version of check_by_ssh do you have?
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -V