vcenter 6.7 monitoring using the box293_check plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

vcenter 6.7 monitoring using the box293_check plugin

Post by IT-OPS-SYS »

i am using the latest vcenter 6.7 which is to connect the vmware 6.7
since vma is deprecated, i have made a customised machine which does the same work as vma.
from vma , i am able to connect to the vcenter.
the connection is successful able to get the vcenter version using the below command:

/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H <vcenter> -C "~/box293_check_vmware.pl --server vcenter ip --check vCenter_Name_Version"

now when i am trying to test the vma using the component section in the admin page, i get an error
"Test Results:
UNKNOWN - check_by_ssh: Remote command 'ping -c 4 -w 4 10.0.63.5 2>&1' returned status 255"

do we need to install any agent/packages on the vcenter appliance 6.7 for this to work.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by mbellerue »

Can you take a screenshot of the Service Management page, and your Run Check Command page and post those?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by IT-OPS-SYS »

test results
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by mbellerue »

Can you ssh into the VMA server, cxcmnagiosvma, and try running that ping command. Let's see what it does.

Code: Select all

ping -c 4 -w 4 10.0.63.5 2>&1
When it's done, it would also be helpful to get the exit code.

Code: Select all

echo $?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by IT-OPS-SYS »

[root@cxcmnagiosvma ~]# ping -c 4 -w 4 10.0.63.5 2>&1
PING 10.0.63.5 (10.0.63.5) 56(84) bytes of data.
64 bytes from 10.0.63.5: icmp_seq=1 ttl=61 time=0.264 ms
64 bytes from 10.0.63.5: icmp_seq=2 ttl=61 time=0.364 ms
64 bytes from 10.0.63.5: icmp_seq=3 ttl=61 time=0.273 ms
64 bytes from 10.0.63.5: icmp_seq=4 ttl=61 time=0.270 ms

--- 10.0.63.5 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.264/0.292/0.364/0.046 ms
[root@cxcmnagiosvma ~]# echo $
$
[root@cxcmnagiosvma ~]# echo $?
0
[root@cxcmnagiosvma ~]#
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by mbellerue »

Ack. So the echo $? shows the exit status of the last command run. In your example it's showing the exit status of echo $. Can try the ping command and get the exit status once more? It looks like it worked as expected, but it's odd that we're getting an exit code of 255 from it. I'm wondering if something is wrong with the ping command, or if something is getting lost between the servers.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by IT-OPS-SYS »

do we need to install any kind of packages (nagios pluggin) on the vcenter appliance fo this to work

i have not even done anything on the vcenter appliance as of yet.

let me know if you want me to perform some task on the vcenter 6.7 appliance as such.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by mbellerue »

In the documentation, have you gone through the Create Certificates section yet?
https://exchange.nagios.org/components/ ... 0&cf_id=29
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by IT-OPS-SYS »

create certification section: do we need to perform on the vma appliance or on the vcenter appliance.

i m able to run the below command from vma appliance using the root credentials but when we use the vi-admin account we get an error "UNKNOWN: Server version unavailable at 'https://10.0.63.5:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 704."

./box293_check_vmware.pl --server <ip address> --check vCenter_Name_Version --username test123 --password "xxxx"
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by mbellerue »

Have you been following the installation and configuration document for this plugin? This is a fairly complicated plugin to configure, so it's very important to follow the guide.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked