claudineimatos / zabbix_template-openvpn-autodiscovery

Simple Zabbix template to auto discovery OpenVPN connections
10 stars 8 forks source link

Value should be a JSON object. #2

Open tientmse62290 opened 4 years ago

tientmse62290 commented 4 years ago

I got the error when running discovery rule Value should be a JSON object. Any solution to fix that? Thanks & Regards

EwaldvanGeffen commented 4 years ago

Login as zabbix user, run zabbix_agentd -t openvpn.list.discovery or sudo /usr/local/bin/openvpn_discovery.sh. My trouble with the same error was that my sudoers file was very explicit about how I should run the script (SERVER/CLIENT argument).

huntastikus commented 3 years ago

I may be doing something wrong, but I am running openVPN on ubuntu 20.04, I followed the procedure and I am not getting any results. First of all, there are no .conf files in the openVPN directory, which for me is in /usr/local/openvpn_as. Also I searched for .sock files, which there are none on the system. Is this maybe for an older version of OpenVPN, or do I have something wrong?