------------------------------------------------------------------------------------------------
# ls -l /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
-rwxrwxr-x 1 nagios nagcmd 5187 Oct 17 08:13 /usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl
# cat /etc/group|grep nag
nagios
nagcmd
------------------------------------------------------------------------------------------------
Also...I did a bit more looking at the logs....specifically the /var/log/httpd/* logs. When I access the "VMware Monitoring Wizard - Step 3" page the following error is generated in /var/log/httpd/error_log:
------------------------------------------------------------------------------------------------
Server version unavailable at 'https://servername.uwplatt.edu:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 545.
------------------------------------------------------------------------------------------------
I ran the following command from the command line:
------------------------------------------------------------------------------------------------
#/usr/local/nagios/libexec/check_esx3.pl -H servername.uwplatt.edu -u username -p password -V
check_esx3.pl 0.2.0
# runuser -l nagios -c '/usr/local/nagios/libexec/check_esx3.pl -H servername.uwplatt.edu -u username -p password -V'
check_esx3.pl 0.2.0
# runuser -l nagios -c '/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl -H servername.uwplatt.edu -u username -p password'
servername137.104.???.???poweredOn
...
...
...
...
servername137.104.???.???poweredOff
------------------------------------------------------------------------------------------------
To rule this out as a permissions issue I temporarily changed /etc/passwd, such that the shell for apache is /bin/bash, so I could run the following commands:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# runuser -l apache -c '/usr/local/nagios/libexec/check_esx3.pl -H ferb.ad.uwplatt.edu -u username -p password -V'
check_esx3.pl 0.2.0
# runuser -l apache -c '/usr/local/nagiosxi/html/includes/configwizards/vmware/scripts/getguests.pl -H servername.uwplatt.edu -u username -p password'
servername137.104.???.???poweredOn
...
...
...
...
servername137.104.???.???poweredOff
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Again in the above I got the expected output. I don't think this is an issues of permissions as I can run the command interactively via command line as root, nagios and apache and don't get any errors.
Do you have any ideas why I get that error in the apache error log, but not when I run the command from the command line?