Page 1 of 2
ESXi standalone host monitoring issue
Posted: Thu Sep 24, 2015 6:59 pm
by jyoti22
Hi,
As per manual of "box293_check_vmware", I have performed below steps
1. deployed vMA appliance.
2. copied plugin on it
3. created directory for ssh and configured plugin permissions
4. created certificates to use with vMA
5. Transferred certificates to vMA
6. configured vMA credentials for connecting to ESXi standalone Host
Now when I am performing a test with the plugin to ensure all is working OK, iget below error
Code: Select all
vi-admin@localhost:~> ~/box293_check_vmware.pl --server <ESXi_IP> --check Host_OS_Name_Version
Total number of concurrent checks exceeds 15, aborting!
Please suggest the solution for this.
Re: ESXi standalone host monitoring issue
Posted: Fri Sep 25, 2015 11:58 am
by Box293
That is unusual if you don't have nagios performing any checks against it yet.
Generally you need to use the --concurrent_checks argument with a number higher than the default of 15 only when you start performing heavy monitoring.
Just as a test, do you get the same problem if you restart the vMA?
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 1:56 pm
by jyoti22
Please find attached steps I performed and advice the steps for monitoring standalone ESXi host. I cannot restart vMA as its in Production environment.
I am configuring hosts which are part of vCenter from same vMA and its working fine.
Code: Select all
login as: root
root@Nagios_XI's password:
Last login: Mon Sep 28 04:53:29 2015 from irv-rdsh04-01.epicor.net
[root@Nagios_XI ~]# su nagios
[nagios@Nagios_XI root]$ cd ~
[nagios@Nagios_XI ~]$ pwd
/home/nagios
[nagios@Nagios_XI ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/nagios/.ssh/id_dsa):
/home/nagios/.ssh/id_dsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/nagios/.ssh/id_dsa.
Your public key has been saved in /home/nagios/.ssh/id_dsa.pub.
The key fingerprint is:
93:b3:4c:1b:07:8e:cd:5b:c4:cf:38:af:ec:04:5d:af nagios@Nagios_XI
The key's randomart image is:
+--[ DSA 1024]----+
| |
| . |
| . o . |
| = = = . |
| . S * o . |
| o @ o . |
| = . E |
| o . |
| .+ |
+-----------------+
[nagios@Nagios_XI ~]$ cat ~/.ssh/id_dsa.pub | ssh vi-admin@vMA 'umask 077; cat>>~/.ssh/authorized_keys'
Welcome to vSphere Management Assistant
vi-admin@vMA's password:
[nagios@Nagios_XI ~]$ ssh vi-admin@1vMA
Welcome to vSphere Management Assistant
Last login: Mon Sep 28 18:35:50 UTC 2015 from Nagios_XI on ssh
Last login: Mon Sep 28 18:35:50 2015 from Nagios_XI
vi-admin@localhost:~> /usr/lib/vmware-vcli/apps/general/credstore_admin.pl add --server ESXi_host --username "domain\svc_esx_monitor" --password "xxx"
Existing entry modified successfully.
vi-admin@localhost:~> ~/box293_check_vmware.pl --server ESXi_host --check Host_OS_Name_Version
Total number of concurrent checks exceeds 15, aborting!
vi-admin@localhost:~>
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 2:11 pm
by Box293
So what happens if you increase the concurrent checks?
Code: Select all
~/box293_check_vmware.pl --server ESXi_host --check Host_OS_Name_Version --concurrent_checks 30
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 3:03 pm
by jyoti22
Code: Select all
vi-admin@localhost:~> /usr/lib/vmware-vcli/apps/general/credstore_admin.pl add --server Esxi_host --username "domain\user" --password "xxx"
Existing entry modified successfully.
vi-admin@localhost:~> ~/box293_check_vmware.pl --server Esxi_host --check Host_OS_Name_Version --concurrent_checks 30
Total number of concurrent checks exceeds 30, aborting!
vi-admin@localhost:~>
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 3:10 pm
by Box293
jyoti22 wrote:Hi,
As per manual of "box293_check_vmware", I have performed below steps
1. deployed vMA appliance.
2. copied plugin on it
3. created directory for ssh and configured plugin permissions
4. created certificates to use with vMA
5. Transferred certificates to vMA
6. configured vMA credentials for connecting to ESXi standalone Host
Now when I am performing a test with the plugin to ensure all is working OK, iget below error
jyoti22 wrote:I cannot restart vMA as its in Production environment.
If you have just deployed it then I don't understand why you can't restart it.
What is the output of
top -n 1
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 3:51 pm
by jyoti22
Code: Select all
vi-admin@localhost:~> top -n 1
top - 20:48:24 up 11 days, 21:40, 1 user, load average: 96.59, 91.97, 78.15
Tasks: 273 total, 92 running, 181 sleeping, 0 stopped, 0 zombie
Cpu(s): 89.8%us, 1.2%sy, 0.0%ni, 9.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8193800k total, 3151084k used, 5042716k free, 120080k buffers
Swap: 137212k total, 36092k used, 101120k free, 394816k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28303 vi-admin 20 0 78688 40m 2648 R 8 0.5 0:05.11 box293_check_vm
27769 vi-admin 20 0 80000 41m 2648 R 6 0.5 0:05.52 box293_check_vm
27813 vi-admin 20 0 80000 41m 2648 R 6 0.5 0:05.48 box293_check_vm
27981 vi-admin 20 0 78696 40m 2648 R 6 0.5 0:05.42 box293_check_vm
28062 vi-admin 20 0 78688 40m 2648 R 6 0.5 0:05.14 box293_check_vm
28067 vi-admin 20 0 78696 40m 2648 R 6 0.5 0:05.26 box293_check_vm
28180 vi-admin 20 0 78696 40m 2648 R 6 0.5 0:05.17 box293_check_vm
28297 vi-admin 20 0 78696 40m 2648 R 6 0.5 0:05.20 box293_check_vm
28298 vi-admin 20 0 78688 40m 2648 R 6 0.5 0:05.11 box293_check_vm
28304 vi-admin 20 0 78688 40m 2648 R 6 0.5 0:05.19 box293_check_vm
28756 vi-admin 20 0 77460 39m 2648 R 6 0.5 0:04.90 box293_check_vm
28836 vi-admin 20 0 77472 39m 2648 R 6 0.5 0:04.96 box293_check_vm
29102 vi-admin 20 0 75132 36m 2644 R 6 0.5 0:04.58 box293_check_vm
29138 vi-admin 20 0 75124 36m 2644 R 6 0.5 0:04.63 box293_check_vm
29252 vi-admin 20 0 75124 36m 2644 R 6 0.5 0:04.45 box293_check_vm
29352 vi-admin 20 0 73064 35m 2644 R 6 0.4 0:04.38 box293_check_vm
29718 vi-admin 20 0 68484 30m 2644 R 6 0.4 0:03.61 box293_check_vm
vi-admin@localhost:~>
I have not deployed vMA just copied plugin on it. step 1 was typo
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 4:26 pm
by Box293
So what happens if you increase the concurrent checks to 60?
Code: Select all
~/box293_check_vmware.pl --server ESXi_host --check Host_OS_Name_Version --concurrent_checks 60
It's as if you are already using the box293_check_vmware plugin in your environment.
Re: ESXi standalone host monitoring issue
Posted: Mon Sep 28, 2015 4:59 pm
by jyoti22
Now when get the vMA restarted and then when trying to run the command again, I get blank output
Code: Select all
vi-admin@localhost:~> /usr/lib/vmware-vcli/apps/general/credstore_admin.pl add --server esxi_host--username "domain\user" --password "xxx"
New entry added successfully
vi-admin@localhost:~> ~/box293_check_vmware.pl --server esxi_host--check Host_OS_Name_Version
vi-admin@localhost:~>
Re: ESXi standalone host monitoring issue
Posted: Tue Sep 29, 2015 10:12 am
by hsmith
Hi jyoti22,
Box293 is currently in the middle of giving a talk at the Nagios World Conference. He's aware that this still not working correctly. For now can you please attempt to reinstall the vMA and let us know if this resolves anything?