Page 1 of 2
vcenter 6.7 monitoring using the box293_check plugin
Posted: Mon Nov 04, 2019 1:24 pm
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.
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Mon Nov 04, 2019 4:33 pm
by mbellerue
Can you take a screenshot of the Service Management page, and your Run Check Command page and post those?
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Tue Nov 05, 2019 2:46 am
by IT-OPS-SYS
test results
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Tue Nov 05, 2019 11:30 am
by mbellerue
Can you ssh into the VMA server, cxcmnagiosvma, and try running that ping command. Let's see what it does.
When it's done, it would also be helpful to get the exit code.
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Wed Nov 06, 2019 7:23 am
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 ~]#
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Wed Nov 06, 2019 10:25 am
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.
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Mon Nov 11, 2019 1:23 pm
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.
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Mon Nov 11, 2019 2:42 pm
by mbellerue
In the documentation, have you gone through the Create Certificates section yet?
https://exchange.nagios.org/components/ ... 0&cf_id=29
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Wed Nov 13, 2019 1:22 pm
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"
Re: vcenter 6.7 monitoring using the box293_check plugin
Posted: Wed Nov 13, 2019 3:48 pm
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.