![]() |
![]() |
Subject: | Datasource output without "pretty" characters of a JSON |
Author: | [Not Specified] |
Posted: | 2015-06-07 16:50 |
Hi,
When i execute my bash script from any terminal the output is a formated JSON with newlines and spaces to make it human friendly, as this example:
{
"test": null
}
When i run it from the datasource menu using "Test Against a Device" buttom, Zenoss seems removing any "format" i try to give to it, like exmaple below
{ "test": null }
I guess Zenoss is doing it intentionally, i'm right if yes, is there any way to avoid it
Thanks in advance
Subject: | Output is always the same. |
Author: | Jan Garaj |
Posted: | 2015-06-09 04:15 |
Output is always the same. But you need special html tag "
" for new line in html output. Standard line break "\n" it's not enough for html, but it's enough for command line.
You can raise a feature request for this one.
Devops Monitoring Expert advice:
Dockerize/automate/monitor all the things.
DevOps stack:
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform /
Elasticsearch
Subject: | Good job! |
Author: | [Not Specified] |
Posted: | 2015-07-08 14:18 |
Hi Snebel, great work here. A quick question off the topic, I am using Twill and when I test against device it returns an HTML string. How are you making it return formatted JSON I need to parse the HTML string, but that is looking difficult. Thanks your help!
< |
Previous auto filesystem ignore in zenoss |
Next Zenoss 5.0.3 Upgrade Issue |
> |