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.
FrancisNagios
Posts: 58
Joined: Tue Apr 09, 2019 6:54 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post by FrancisNagios »

Hi,

- About JMX (check_jmx4perl):

I attache evidences of the Java:
JAVA.txt
But shows now this error:

Code: Select all

[root@nagiosxi-rh libexec]# /usr/local/nagios/libexec/check_jmx --timeout=10 --url=http://10.16.70.129:8080/jolokia --config=/usr/local/nagios/etc/jmx4perl/memory.cfg --check=memory_heap 90 80
JMX UNKNOWN Required options not specified Usage: check_jmx -help


- About VMWARE

Ok:
cp /usr/local/nagios/libexec/check_esx3.pl /usr/local/nagios/libexec/check_esx3.pl.old
I attache evidences of the Perl Module for the new plugin:
VMWARE.txt
The check_esx3.pl file is overwritten by this new:
check_esx3.PNG
Then download this updated plugin to your PC.
https://github.com/shinken-monitoring/p ... ck_esx3.pl
But shows the same error:

Code: Select all

[root@nagiosxi-rh libexec]# ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l RUNTIME
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198, <AUTH_FILE> line 2.
CHECK_ESX3.PL OK - 12/12 VMs up, overall status=green, connection state=connected, maintenance=no, All 219 health checks are Green, no config issues | vmcount=12units;; health_issues=0;; config_issues=0;;
In NagiosX shows this errorI:
CHECK_ESX3.PL CRITICAL - SOAP request error - possibly a protocol issue: 500 read timeout


Thank you very much for the attention received
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post by tgriep »

The options for the check_jmx are different for this plugin than the one you were using on the old server.
Here are the options that this plugin supports. You will have to adjust the command.
Usage: check_jmx [-option...] -U url -O object -A attribute
(to query an attribute)
or check_jmx [-option...] -U url -O object -M method
(to invoke a zero-argument method)
or check_jmx -help
(to display this help page)

Mandatory parameters are:
-U JMX URL, for example: "service:jmx:rmi:///jndi/rmi://localhost:1616/jmxrmi"
-O Object name to be checked, for example, "java.lang:type=Memory"
-A Attribute of the object to be checked, for example, "NonHeapMemoryUsage" (not compatible with -M switch)
-M Zero-argument method to be invoked (not compatible with -A switch)

Options are:
-K <key>
Key for compound data, for example, "used"
-I <info attribute>
Attribute of the object containing information for text output
-J <info attribute key>
Attribute key for -I attribute compound data, for example, "used"
-v[v[v[v]]]
Verbatim level controlled as a number of v
-w <limit>
Warning long value
-c <limit>
Critical long value
-s "string"
Throws a CRIT if return value equals "string"
-ns "string"
Throws a CRIT if return value DOESN'T equal "string"
-default <value>
Use default value if requested object/attribute/method does not exist
-username <user name> -password <password>
Credentials for JMX

Note that if warning level > critical, system checks object attribute value to be LESS THAN OR EQUAL warning, critical
If warning level < critical, system checks object attribute value to be MORE THAN OR EQUAL warning, critical
The check_esx3 plugin, you may have an old or conflicting perl module on the system.
Run this as root to download and install the latest module.

Code: Select all

cpan -i IO::Compress::Zlib::Extra
The SOAP error in the XI GUI, provide a screen capture of the error and also show how the command is defined in XI for the service.
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,

- About VMWARE
Now it's OK from the NagiosXI server

Code: Select all

[root@nagiosxi-rh libexec]#  ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=5773.00 MHz (10.33%) | cpu_usagemhz=5773.00MHz;; cpu_usage=10.33%;;

[root@nagiosxi-rh libexec]#  ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=6156.00 MHz (11.01%) | cpu_usagemhz=6156.00MHz;; cpu_usage=11.01%;;
But in the XI GUI shows the same error although we've done a force an immediate check.
Clic in Run Check Command and it doesn't show anything
Captura.PNG

We've restarted the server and now it's NOT OK from the NagiosXI server

Code: Select all

[administrador@nagiosxi-rh libexec]$ ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198, <AUTH_FILE> line 2.

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 »

[quote="FrancisNagios"]Hi,

- About VMWARE
Now it's OK from the NagiosXI server

Code: Select all

[root@nagiosxi-rh libexec]#  ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=5773.00 MHz (10.33%) | cpu_usagemhz=5773.00MHz;; cpu_usage=10.33%;;

[root@nagiosxi-rh libexec]#  ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=6156.00 MHz (11.01%) | cpu_usagemhz=6156.00MHz;; cpu_usage=11.01%;;
But in the XI GUI shows the same error although we've done a force an immediate check.
Clic in Run Check Command and it doesn't show anything
Captura.PNG

We've restarted the server and now it's NOT OK from the NagiosXI server

Code: Select all

[administrador@nagiosxi-rh libexec]$ ./check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198, <AUTH_FILE> line 2.

- About the JMX plugin
Can you add a plugin to work as before?

Thanks and regards
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post by tgriep »

When the plugin is failing for you, it is caused be the user account you are logged in as.
The administrador account dies not have enough permissions to run the plugin.

Try this, login to the nagios server as root and run the plugin.

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
Change to the nagios user by running this

Code: Select all

su - nagios
Run the plugin again.

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
Post all of the output.

You would have to go to the old server and look at the check_jmx plugin to see what it is doing and to possibly find out where you got it from.
But it looks like the plugin came from here.
https://metacpan.org/pod/distribution/j ... k_jmx4perl
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,

- About VMWARE
When I rebooted the machine I did not make the command as roott
The output is correct as root:

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=5361.00 MHz (9.59%) | cpu_usagemhz=5361.00MHz;; cpu_usage=9.59%;;
But in the XI GUI shows this error:

Code: Select all

CHECK_ESX3.PL CRITICAL - SOAP request error - possibly a protocol issue: 500 read timeout
- About the JMX plugin
Could it be possible to help us in the steps we must do in our nagiosxi server to install the plugin check_jmx4perl?

Thanks and regards
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post by tgriep »

Could you post your Nagios XI System Profile so we can review it?
To get your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to the forum post.

The website for the JMX plugin has some instructions on how to install and configure it.
See the Install Instructions link on the site.
Any issues with that plugin, you will have to contact the author of the plugin.
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 attache the profile.zip

Thanks and regards
Last edited by tgriep on Fri Jun 28, 2019 9:13 am, edited 1 time in total.
Reason: Profile removed and shared with the other Techs
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: RESTORE: ndo2db is not running but subsystem locked

Post by tgriep »

I just want to clarify that the SOAP error in the GUI is for this host esxbigdata.trabajo.dom.
Correct?

Please run the following commands on the Nagios server and post all of the output.

Code: Select all

su - nagios
whoami
/usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
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 commands:

Code: Select all

root@nagiosxi-rh administrador]# su - nagios
[nagios@nagiosxi-rh ~]$ whoami
nagios
[nagios@nagiosxi-rh ~]$ /usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
length() used on @array (did you mean "scalar(@array)"?) at /usr/lib64/perl5/IO/Compress/Zlib/Extra.pm line 198, <AUTH_FILE> line 2.
CHECK_ESX3.PL CRITICAL - SOAP request error - possibly a protocol issue: 500 read timeout
As root if it Works:

Code: Select all

[root@nagiosxi-rh libexec]# /usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=7022.00 MHz (12.56%) | cpu_usagemhz=7022.00MHz;; cpu_usage=12.56%;;
On the Centos server if it works with the nagios user:

Code: Select all

[nagios@nagiosxipro ~]$ /usr/local/nagios/libexec/check_esx3.pl -H esxbigdata.trabajo.dom -f /usr/local/nagiosxi/etc/components/vmware/monitorizacion.txt -l CPU
CHECK_ESX3.PL OK - cpu usage=5676.00 MHz (10.16%) | cpu_usagemhz=5676.00Mhz;; cpu_usage=10.16%;
On the server NagiosRH:

Code: Select all

[nagios@nagiosxi-rh libexec]$ ls -lrt check_esx3.pl
-rwxr-xr-x. 1 apache nagios 169439 jun 26 13:50 check_esx3.pl

apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
nagios:x:1001:100::/home/nagios:/bin/bash

[nagios@nagiosxi-rh libexec]$  rpm -q perl-IO-Compress
perl-IO-Compress-2.061-2.el7.noarch
On the server NagiosCentos:

Code: Select all

[nagios@nagiosxipro libexec]$ ls -lrt check_esx3.pl
-rwxrwxr-x 1 apache nagios 132285 Mar  3  2017 check_esx3.pl
apache:x:48:48:Apache:/var/www:/sbin/nologin
nagios:x:500:100::/home/nagios:/bin/bash

Thanks and regards
Locked