Page 5 of 5

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Mon Jul 01, 2019 10:46 am
by tgriep
It looks like it is a permission issue for one of the perl modules or the auth file itself and that is causing the error.

Run this on the server as root to set the permissions and to see if that fixes the issue.

Code: Select all

chmod -R 777 /usr/local/nagiosxi/etc/components/vmware/
chmod -R 777 /usr/lib64/perl5

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Tue Jul 02, 2019 2:48 am
by FrancisNagios
Hi,

I made the perl module permissions change with the user of "root" but still giving the same error.

Also change the permissions of the file check_esx3.pl but without success

Code: Select all

-rwxrwxrwx. 1 apache nagios 169439 jun 26 13:50 check_esx3.pl

Code: Select all

[nagios@nagiosxi-rh ~]$ /usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagi
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line
CHECK_ESX3.PL CRITICAL - SOAP request error - possibly a protocol issue: 500 read timeo
 
Thanks and regards

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Tue Jul 02, 2019 8:33 am
by tgriep
There is probably another module on the system, path, environment variable that is causing the error.

Login as the nagios user and run the plugin with trace. The output will be very large.

Code: Select all

perl -d:Trace /usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
You can search the internet for that error and try some of the fixes and there are a lot of things that could cause that issue.
Another thing to try is to install the VMWare Perl SDK version 6.5.xx on the system to see if it helps.

Do not install the 6.7.xx version as there could be issues with that.

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Tue Jul 02, 2019 9:49 am
by FrancisNagios
Hi,
I show the outputs of the command

Code: Select all

nagios@nagiosxi-rh ~]$ perl -d:Trace /usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU 5
Can't locate Devel/Trace.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
[nagios@nagiosxi-rh ~]$
Thanks and regards

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Tue Jul 02, 2019 12:35 pm
by tgriep
Install the Trace perl module by running this as root

Code: Select all

yum install perl-Devel-Trace -y
Then run the command from the earlier post with the Trace option.

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Wed Jul 03, 2019 10:15 am
by FrancisNagios
Hi,

The module could not be installed

Code: Select all

[root@nagiosxi-rh ~]# yum install perl-Devel-Trace -y
Complementos cargados:product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>
Can you please comment on how can we install the module?

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Wed Jul 03, 2019 12:21 pm
by tgriep
I searched the internet with that error and found a few links you can try to do to fix the yum repository issue.

https://access.redhat.com/solutions/1213413
https://access.redhat.com/discussions/3066851
https://access.redhat.com/solutions/253273

It looks like your server may not be fully registered with Redhat.

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Thu Jul 04, 2019 7:26 am
by FrancisNagios
Hi,

We've already been able to install the perl module.
I show the evidence:
captura.png
But it still gives the same mistake.

Code: Select all

[nagios@nagiosxi-rh ~]$ perl -d:Trace /usr/local/nagios/libexec/check_esx3.pl -H  esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
Can't locate Devel/Trace.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted

Thanks and regards

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Fri Jul 05, 2019 6:21 am
by FrancisNagios
Hi,

We have installed the VMWare Perl SDK version 6.5. and it has worked correctly.
I attach the result in case it is all correct.
VMWARE.txt
We have verified that all the services are in OK
Thank you very much for your help at all times. :D :D :D :D :D

If you see everything right you can close the Thread

Thanks and regards

Re: RESTORE: ndo2db is not running but subsystem locked

Posted: Mon Jul 08, 2019 9:21 am
by tgriep
Glad it is working for you now and the log files looks OK so I'll close the post at this time.