RESTORE: ndo2db is not running but subsystem locked

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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
You do not have the required permissions to view the files attached to this post.
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post by tgriep »

Glad it is working for you now and the log files looks OK so I'll close the post at this time.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked