Box293 - CRITICAL - Plugin timed out after 10 seconds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by jyoti22 »

Hi Team,
I am getting Plugin time out error for box293 plugin while testing it from XI server. On vMA its working fine

Code: Select all

vi-admin@AUSHOSVMAXX:~> ~/box293_check_vmware.pl --server 10.161.232.50 --check vCenter_Name_Version
OK: VMware vCenter Server 5.5.0 build-2183111
vi-admin@AUSHOSVMAXX:~>

[nagios@auscrpmxxx root]$ /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.161.232.46 -C "~/box293_check_vmware.pl --server 10.161.232.50 --check vCenter_Name_Version"
CRITICAL - Plugin timed out after 10 seconds
[nagios@auscrpmxx root]$
I have checked vMA resourses. It looks fine

Code: Select all

top - 00:35:38 up 7 days, 7 min,  1 user,  load average: 0.25, 0.34, 0.30
Tasks: 107 total,   1 running, 106 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:     16081M total,     1750M used,    14331M free,       58M buffers
Swap:      133M total,        0M used,      133M free,     1439M cached

  PID USER      PR  NI  VIRT  RES  SHR S   %CPU %MEM    TIME+  COMMAND
29233 vi-admin  20   0 17136 1288  944 R      0  0.0   0:00.02 top
    1 root      20   0 10548  828  688 S      0  0.0   0:07.07 init
    2 root      20   0     0    0    0 S      0  0.0   0:00.32 kthreadd
    3 root      20   0     0    0    0 S      0  0.0   0:01.16 ksoftirqd/0
    6 root      RT   0     0    0    0 S      0  0.0   0:00.32 migration/0
    7 root      RT   0     0    0    0 S      0  0.0   0:02.46 watchdog/0
    8 root      RT   0     0    0    0 S      0  0.0   0:00.56 migration/1
   10 root      20   0     0    0    0 S      0  0.0   0:00.77 ksoftirqd/1
   12 root      RT   0     0    0    0 S      0  0.0   0:02.42 watchdog/1
Could anyone please help why timeout error from XI server.

Thanks,
Jyoti
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by Box293 »

jyoti22 wrote:CRITICAL - Plugin timed out after 10 seconds
This error is coming from the check_by_ssh plugin. You could try increasing it's timeout with -t 30:

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H 10.161.232.46 -C "~/box293_check_vmware.pl --server 10.161.232.50 --check vCenter_Name_Version"
However it shouldn't take that long to run.

I can see that you are testing as the nagios user, this is good. Can you confirm that you can establish a ssh session without being prompted for a password:

Code: Select all

su nagios
ssh [email protected]
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by jyoti22 »

Thanks Box293, after changing timeout to -t 30, plugin is working fine.

[nagios@auscrpmxxx root]$ /usr/local/nagios/libexec/check_by_ssh -t 30 -E 1 -l vi-admin -H 10.161.232.46 -C "~/box293_check_vmware.pl --server 10.161.232.50 --check vCenter_Name_Version"
OK: VMware vCenter Server 5.5.0 build-2183111
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by Box293 »

Excellent, glad to hear it was a simple issue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by jyoti22 »

But now when I added vMA in vMA list on XI portal and tried SSH configuration vMA test , I get below message

The vMA host 10.161.232.46 is NOT in the known_hosts file.


Also let me know if on 1 XI server I am using more than 2 vMA servers, then do I need to generate different certificates? or is it ok if I can transfer same certificate on these 2 different vMA's?

Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by rkennedy »

The same key should work on both servers, you'll want to copy it onto the VMA of 10.161.232.46 in order to get the SSH side of things working.

This document might help you out - https://assets.nagios.com/downloads/nag ... ng_SSH.pdf
Former Nagios Employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Box293 - CRITICAL - Plugin timed out after 10 seconds

Post by Box293 »

It's very important to follow these steps to make sure the SSH files are correctly implemented for the "VMware vMA Settings Manager".

https://exchange.nagios.org/directory/A ... rd/details
VMware Virtualization Wizard - Installation Instructions.pdf

If you add multiple vMA hosts, you need to follow the "Configuration Steps REQUIRED" section each time you add another vMA host (basically you need to update the nagios SSH keys into the /var/www/.ssh/ folder).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked