Yes, su to apache as root is required.coopstudent wrote:In my previous reply, I tried the command as nagios user. Now I tried as root
# below command did NOT prompt for credentials
[root@nagiosxi ~]# su -s /bin/sh apache
sh-4.2$
So now you are the apache user, execute these commands:
Does this command prompt you for credentials?
Code: Select all
ssh [email protected]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'