Page 1 of 1

check_vmware_api.pl not running with user nagios

Posted: Tue Sep 22, 2020 7:48 am
by FCC_Nagios_Support
Hi,
The plugin runs with user root
but
not
with nagios user
and
says
[nagios@a2nagio002p ~]$ /usr/local/nagios/libexec/check_vmware_api.pl -H "a2esxvc001p.fcc.intfcc.local" -f "/usr/local/nagiosxi/etc/components/vmware/a2vimgv100p_fcc_intfcc_local_auth.txt" -l "VMFS" -w 80% -c 99.50%

VMWARE_API UNKNOWN - Missing perl module VMware::VIRuntime. Download and install 'VMware vSphere SDK for Perl', available at https://my.vmware.com/group/vmware/downloads

Thanks

Re: check_vmware_api.pl not running with user nagios

Posted: Tue Sep 22, 2020 6:17 pm
by ssax
Run this as the root user AND the nagios user and send us the full output of each:

Code: Select all

perl -e "print qq(@INC)"
Send the full output of this command as the root user as well:

Code: Select all

find / -name VIRuntime.pm | xargs -r ls -lah