check_vmware_api.pl not running with user nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

check_vmware_api.pl not running with user nagios

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_vmware_api.pl not running with user nagios

Post 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
Locked