Closed arjandv closed 8 years ago
For the error on step 4), it's a stupid bug I introduced in v2.5. I'll fix this. But it should work with a vmbix.conf file.
Could you please post the entire vmbix.conf file on pastebin for example (without the credentials) ? Can you post the result of the following queries ?
zabbix_get -s 127.0.0.1 -p 12050 -k "vm.discovery[*]"
zabbix_get -s 127.0.0.1 -p 12050 -k "about"
zabbix_get -s 127.0.0.1 -p 12050 -k "vm.powerstate[Vcenterserver.domain.local]"
Hi,
Here is the result, It seems that there is some kind of conflict with the listing port ip /port of my zabbix_agent.conf. How should i configure zabbix_agent.conf? I changed the listing port to 12050 and the ip to the ip of my zabbix server it doestnt want to work yet.
/etc/zabbix# zabbixget -s 127.0.0.1 -p 12050 -k "vm.discovery[]" zabbix_get [5683]: Check access restrictions in Zabbix agent configuration /etc/zabbix# zabbix_get -s 127.0.0.1 -p 12050 -k "about" zabbix_get [5725]: Check access restrictions in Zabbix agent configuration /etc/zabbix# zabbix_get -s 127.0.0.1 -p 12050 -k "vm.powerstate[vcenter.mydomain.com]" zabbix_get [5792]: Check access restrictions in Zabbix agent configuration /etc/zabbix# zabbixget -s x.x.x.x -p 12050 -k "vm.discovery[]" ZBX_NOTSUPPORTED: Unsupported item key. /etc/zabbix# zabbix_get -s x.x.x.x -p 12050 -k "about" ZBX_NOTSUPPORTED: Unsupported item key. /etc/zabbix# zabbix_get -s x.x.x.x -p 12050 -k "vm.powerstate[vcenter.mydomain.com]" ZBX_NOTSUPPORTED: Unsupported item key. /etc/zabbix#
vmbix.conf: http://pastebin.com/BTgA46AG
zabbix_agent.conf http://pastebin.com/CF9aAwz8
Thanks for your support!
It is working now I installed version 2.4
Hi,
I have issues getting VmBix to work on my ubuntu zabbix 3.0.1 appliance. I’m running zabbix version: zabbix_server (Zabbix) 3.0.1
Here is what I did so far:
1) Installed:
• vmbix_2.5.0.151-1_amd64.deb • vmbix-zabbix-module_1.0.16-zabbix-3.0-1_amd64.deb
2) Changed the zabbix config file to load the module:
/etc/zabbix/zabbix_server.conf Zabbix log says the module is loading correctly: Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf loaded modules: vmbix.so
3) Tested the binary: /usr/local/sbin/vmbix Usage: vmbix {-P|--port} listenPort {-s|--serviceurl} http[s]://serveraddr/sdk {-u|--username} username {-p|--password} password [-f|--pid pidfile] or vmbix [-c|--config] config_file [-f|--pid pidfile]
Works
4) Here it is starting to get all unclear and fussy for me: When I run: vmbix -P 12050 -u "admin@vsphere.local" -p "adminpassword" -s https://myvcenter.mydomain.local/sdk" I get:
Exception in thread "main" java.lang.NullPointerException at net.dav3860.VmBix.main(VmBix.java:224) 15:53:47.835 [Thread-0] INFO net.dav3860.VmBix - Shutting down 15:53:47.838 [Thread-0] ERROR net.dav3860.VmBix - Error disconnecting: null 15:53:47.838 [Thread-0] INFO net.dav3860.VmBix - Shutted down
I don’t understand this message and don’t know what to do.
5) I continued the configuration and edited the /etc/vmbix/vmbix.conf
The VMware api URL
serviceurl = https://vcenterappliance/sdk
The username to use to connect to the VMWare API
Set username = DOMAIN\user for Windows authentication
username = admin@vsphere.local
The password to use to connect to the VMWare API
password = adminpassword**
6) I configured the deamon:
Configured zabbix: This part is not completely clear to me: 7) Import template into zabbix 8) Created host with my vcenter server as hostname. Also tried it with a dummy name vmbix which leads to nothing in my network. (like the manual said : The IP address and port are not used, but it is necessary to make it monitored by the server/proxy running the loadable module.)
9) Attached Only the templates: Template VmBix Datastore Loadable Module
Template VmBix ESX Loadable Module
Template VmBix vCenter Loadable Module
Template VmBix VM Loadable Module
tail -f /var/log/vmbix.log 2016-09-20 16:14:06,513 DEBUG [Thread-76] [VmBix.java:4142] Thread created, collecting data in 1 threads 2016-09-20 16:14:06,514 DEBUG [Thread-76] [VmBix.java:554] Parsing this request : ZBXD+vm.powerstate[Vcenterserver.domain.local] 2016-09-20 16:14:06,514 ERROR [Thread-76] [VmBix.java:2603] An error occurred : null 2016-09-20 16:14:06,514 DEBUG [Thread-76] [VmBix.java:4168] Request took 0 ms 2016-09-20 16:14:07,530 DEBUG [Thread-77] [VmBix.java:4142] Thread created, collecting data in 2 threads 2016-09-20 16:14:07,530 DEBUG [Thread-77] [VmBix.java:554] Parsing this request : ZBXD'vm.status[Vcenterserver.domain.local] 2016-09-20 16:14:07,530 ERROR [Thread-77] [VmBix.java:1739] An error occurred : null 2016-09-20 16:14:07,531 DEBUG [Thread-77] [VmBix.java:4168] Request took 1 ms 2016-09-20 16:14:08,538 DEBUG [Thread-76] [VmBix.java:4190] Thread closed, collecting data in 1 threads 2016-09-20 16:14:09,553 DEBUG [Thread-77] [VmBix.java:4190] Thread closed, collecting data in 0 threads 2016-09-20 16:14:26,822 DEBUG [Thread-78] [VmBix.java:4142] Thread created, collecting data in 1 threads 2016-09-20 16:14:26,822 DEBUG [Thread-78] [VmBix.java:554] Parsing this request : ZBXDevent.latest[*] 2016-09-20 16:14:26,823 ERROR [Thread-78] [VmBix.java:3042] An error occurred : null 2016-09-20 16:14:26,823 DEBUG [Thread-78] [VmBix.java:4168] Request took 1 ms 2016-09-20 16:14:27,844 DEBUG [Thread-79] [VmBix.java:4142] Thread created, collecting data in 2 threads 2016-09-20 16:14:27,844 DEBUG [Thread-79] [VmBix.java:554] Parsing this request : ZBXDping 2016-09-20 16:14:27,845 DEBUG [Thread-79] [VmBix.java:4168] Request took 1 ms PuTTY2016-09-20 16:14:28,846 DEBUG [Thread-78] [VmBix.java:4190] Thread closed, collecting data in 1 threads 2016-09-20 16:14:29,873 DEBUG [Thread-79] [VmBix.java:4190] Thread closed, collecting data in 0 threads 2016-09-20 16:15:08,406 DEBUG [Thread-80] [VmBix.java:4142] Thread created, collecting data in 1 threads 2016-09-20 16:15:08,407 DEBUG [Thread-80] [VmBix.java:554] Parsing this request : ZBXD,esx.connection[Vcenterserver.domain.local] 2016-09-20 16:15:08,407 ERROR [Thread-80] [VmBix.java:1511] An error occurred : null 2016-09-20 16:15:08,407 DEBUG [Thread-80] [VmBix.java:4168] Request took 0 ms 2016-09-20 16:15:10,444 DEBUG [Thread-80] [VmBix.java:4190] Thread closed, collecting data in 0 threads 2016-09-20 16:15:12,473 DEBUG [Thread-81] [VmBix.java:4142] Thread created, collecting data in 1 threads 2016-09-20 16:15:12,473 DEBUG [Thread-81] [VmBix.java:554] Parsing this request : ZBXD-esx.maintenance[Vcenterserver.domain.local] 2016-09-20 16:15:12,474 ERROR [Thread-81] [VmBix.java:1764] An error occurred : null 2016-09-20 16:15:12,474 DEBUG [Thread-81] [VmBix.java:4168] Request took 1 ms
Do I query the wrong object? what should I query and how?
When I try to query vmbix from the agent I get:
zabbix_get -s 127.0.0.1 -p 12050 -k vmbix.version 2.5.0.151 zabbixget -s 127.0.0.1 -p 12050 -k "vm.discovery[]" zabbix_get [7288]: Check access restrictions in Zabbix agent configuration zabbixget -s 127.0.0.1 -p 12050 -k about[] zabbix_get [7986]: Check access restrictions in Zabbix agent configuration
Thanks a lot in advance!