Search found 20 matches

by benjohns
Fri Mar 09, 2018 5:08 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

$ time /usr/local/nagios/libexec/check_esx3.pl -H [IP] -f "/usr/local/nagiosxi/etc/components/vmware/[HOST]_auth.txt" -l "CPU" -v CHECK_ESX3.PL CRITICAL - SOAP request error - possibly a protocol issue: 500 read timeout real 4m38.355s user 0m0.582s sys 0m0.073s *I've tried this a...
by benjohns
Fri Mar 09, 2018 2:10 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

This looks more useful: $ tail -f /usr/local/nagios/var/nagios.debug [1520622376.986228] [001.0] [pid=23633] add_event() [1520622376.986232] [008.1] [pid=23633] ** Event Check Loop [1520622376.986241] [008.1] [pid=23633] Next Event Time: Fri Mar 9 13:06:27 2018 [1520622376.986245] [008.1] [pid=23633...
by benjohns
Wed Mar 07, 2018 2:13 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

Ok, I set the debug level to 1 and restarted Nagios. Then I disabled all monitored hosts & services other than the one CPU check that uses this plugin to isolate the relevant data to the debug file. I started a tail of the debug file, then clicked on 'Force an immediate check' for the "CPU ...
by benjohns
Tue Mar 06, 2018 5:46 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

1 - $ sestatus
SELinux status: disabled

2 - Credentials are correct

3 - -rw-r--r--. 1 apache nagios 37 Feb 27 15:00 [HOST]_auth.txt

I disabled SELinux, then verified the other two. Service checks are still timing out:

(Service check timed out after 180.01 seconds)
by benjohns
Mon Mar 05, 2018 2:05 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

After installing perl-Nagios-Plugin, the checks are again timing out from within XI: (Service check timed out after 180.01 seconds) Running the check command from within CCM yields the following output: [nagios@HOST ~]$ /usr/local/nagios/libexec/check_esx3.pl -H "ESXi IP" -f "/usr/loc...
by benjohns
Fri Mar 02, 2018 5:01 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

Installed the new plugin: -rwxr-xr-x. 1 apache nagios 169439 Mar 2 15:54 check_esx3.pl Then ran chmod: -rwxrwxrwx. 1 apache nagios 169439 Mar 2 15:54 check_esx3.pl Now XI is throwing this error when trying to run the check: (No output on stdout) stderr: Can't locate Nagios/Plugin/Functions.pm in @IN...
by benjohns
Fri Mar 02, 2018 3:23 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

Running the check command as the nagios user still errors out: ESX3 CRITICAL - HOST CPU Unknown error
by benjohns
Fri Mar 02, 2018 3:14 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

# ls -al /usr/share/perl5/VMware/ total 3448 drwxr-xr-x. 3 root root 4096 Feb 23 13:14 . drwxr-xr-x. 54 root root 4096 Feb 23 13:14 .. -r--r--r--. 1 root root 6605 Feb 23 13:14 LookupService.pm drwxr-xr-x. 2 root root 4096 Feb 23 13:14 pyexe -r-xr-xr-x. 1 root root 3356 Feb 23 13:14 SSOConnection.pm...
by benjohns
Thu Mar 01, 2018 4:13 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

Those permissions were already in place:

ls -al /usr/lib/vmware-vcli/VMware/share/VMware/

-r--r--r--. 1 root root 90818 Feb 23 13:14 VICommon.pm
by benjohns
Wed Feb 28, 2018 5:52 pm
Forum: Nagios XI
Topic: VMware Plugin Issue
Replies: 35
Views: 5395

Re: VMware Plugin Issue

Yes, I am using the ESXi IP & hostname in the command. Here's what I get adding '--verbose' to the command (I tried adding it to the front & back): bash-4.2$ ./check_esx3.pl -H "IP" -f "/usr/local/nagiosxi/etc/components/vmware/HOST_auth.txt" -l "CPU" --verbose ...