MogiePete / zabbix-systemd-service-monitoring

Simple Zabbix Template to discover, monitor, and alert on systemd services.
GNU General Public License v2.0
91 stars 41 forks source link

"Value should be a JSON object." error. #24

Closed yikiksistemci closed 4 years ago

yikiksistemci commented 4 years ago

Hi, i using your template, but i have a problem. Zabbix was giving error "Value should be a JSON object." i fixed problem.

yikiksistemci commented 4 years ago

But, i don't commit project.

echo -n '{"data":[';for s in ${service_list}; do echo -n "{\"{#SERVICE}\":\"$s\"},";done | sed -e 's:\},$:\}:';echo -n ']}'

MogiePete commented 4 years ago

Thank you for the update.