Hi - I'm looking at Zabbix as a tool for monitoring servers used in remote health clinics in Africa. Each health clinic has an electronic medical record server running OpenMRS which is a J2EE application. I would envisage that this server could then run a Zabbix agent to report back system data to a Zabbix server at a nearby hospital. The clinic server would also have a local Zabbix proxy so that data is not lost when connectivity is down... which is most of the time. What I'm not sure about is the best way to get data from OpenMRS into Zabbix... some here are some ideas and perhaps someone can advise on the best approach...
1. Create a web service in OpenMRS which exposes the relevant data, and then configure the zabbix agent to request this as a user parameter using wget or curl. Downside to this is that the web service is a security liability
2. Create scripts which query the OpenMRS database and run those as User parameters from the zabbix agent. This would mean tho that the scripts need the database credentials... another security liability
3. Create a scheduled service in OpenMRS which will send the data itself to the Zabbix proxy. However I haven't been able to successfully send data to a server or a proxy yet using the JSON protocol. I this even possible? I keep trying to send item data using telnet - the server will respond with OK, but the data never appears anywhere, and nothing happens in the logs.
Any ideas would be much appreciated
1. Create a web service in OpenMRS which exposes the relevant data, and then configure the zabbix agent to request this as a user parameter using wget or curl. Downside to this is that the web service is a security liability
2. Create scripts which query the OpenMRS database and run those as User parameters from the zabbix agent. This would mean tho that the scripts need the database credentials... another security liability
3. Create a scheduled service in OpenMRS which will send the data itself to the Zabbix proxy. However I haven't been able to successfully send data to a server or a proxy yet using the JSON protocol. I this even possible? I keep trying to send item data using telnet - the server will respond with OK, but the data never appears anywhere, and nothing happens in the logs.
Any ideas would be much appreciated
Comment