Questions tagged [json]

128 questions
0
votes
1 answer

How to reconfigure Ambari services values with blueprint.json file

we have many Ambari LAB clusters - Apache Ambari Version 2.5.0.3 , while ambari agent installed on Linux redhat machines my target is to find a way to update the values of services , on all the Ambari clusters , by automate the process what we do…
shalom
  • 461
  • 13
  • 29
0
votes
1 answer

Value should be a JSON object error in Zabbix

I have the following script:- #!/bin/bash echo "{" echo "\"data\":[" grep -hoR server_name.* /etc/nginx/sites-enabled/|sed 's/[^ ]* //'|sed 's/.$//'|awk -F"/" '{ print "{\"{#URL}\":\""$1"\"}," }'| head -c -2 echo "]" echo "}" This is set up as a…
user2099762
  • 153
  • 2
  • 5
  • 18
0
votes
2 answers

How can I make salt-api return more useful data?

salt-master: 2016.11.5 (Carbon) salt-api: 2016.11.5 (Carbon) salt-minion 2016.11.5 (Carbon) cherrypy: 10.2.2 After setting up salt-api using this tutorial I've been able to successfully use the API via curl. For example, I can move files. …
trueCamelType
  • 1,086
  • 5
  • 20
  • 42
0
votes
1 answer

Zabbix Discovery JSON Formatting

I trying to create a discovery rule to monitor a enterprise application, and my script return the follow JSON. { "data": [{ "{#NODENAME}": "node1", "{#NODEINTERFACE}": ["eth0", "eth1"] }, { …
CorTheZ
  • 63
  • 1
  • 5
0
votes
1 answer

How to choose collation for SQL Azure IAAS

We are trying to define a parametric IAAS SQL Server setup. But we require a different collation than the default sql_latin01_general_cp1_ci_as. I can't seem to find it in the json template / parameter or as a parameter in the Powershell. Is there a…
Reaces
  • 5,597
  • 4
  • 38
  • 46
0
votes
1 answer

Configuring rlm_rest module in FreeRadius for accounting

I'm upgrading from FreeRadius 2 to FreeRadius 3 and changing some integration point from sql to rest module. Actually, I have two accounting points: accounting_start_query and accounting_start_query, which are calls to procedures. Now, I need to…
0
votes
1 answer

error “The json extension is missing. Please check your PHP configuration.” displayed after installng phpmyadmin

Installed phpmyadmin and tried to access http://www.example.com/phpmyadmin, but error displayed in my browser error : " The json extension is missing. Please check your PHP configuration." My configuration: PHP 7.0.7 (cli) Apache/2.4.6 Red Hat…
0
votes
1 answer

Why HTTP 501 error of type JSON presented to UI as text/html instead of application/json?

I have front-end Angular running on Apache with back-end Spring REST API on Tomcat. I wanted to throw 501 error in some error case and want that response to be presented as JSON to UI (Content-Type as "application/json"). This works fine in my…
Anil Konduru
  • 101
  • 3
0
votes
1 answer

JSON Parse Error in Windows Sensu Client Powershell Setup Script - unexpected character at line 1, column 1

I am creating a install script for Sensu on Windows and am getting this error upon starting the service: { "timestamp": "2016-04-14T23:05:45.043371+0100", "level": "warn", "message": "config file must be valid json", "file":…
ZZ9
  • 888
  • 3
  • 16
  • 47
0
votes
1 answer

accounting in rlm_rest Module freeradius

I work on a Hotspot Project with Coova Chilli and Freeradius. I Use FreeRADIUS in the latest stable Version 3.0.11. I created my rest and sites-enabled config file according to this post: Configuring rlm_rest module in FreeRadius Sadly, there is no…
Lukas S
  • 1
  • 1
  • 1
0
votes
1 answer

Error 404 or 500 when downloading large static JSON file in IIS 7

What I wanted to do was fairly simple you would think. Create static json file so browsers can cache output and you don't have to poll the database for large chunks of data. So I created a JSON file test.json with the content [{"frut":1}] (My actual…
Tschallacka
  • 143
  • 1
  • 11
0
votes
1 answer

rsyslog convert json to text on the fly

I have application logging events in JSON format for later structured queries, etc. Now I have a task to log the same messages in plain text (CSV probably) and I really don't want to log each event twice in both formats. Is it possible to convert…
stimur
  • 894
  • 6
  • 11
0
votes
0 answers

Squid GET request returns incorrect content type when using transparent mode

I'm trying to establish the cause of a strange issue with mobile device that goes through a Squid 3.3 proxy on CentOS 7 using transparent mode which is not able to access news content within the Bing News app on Windows Phone 8. When content loads I…
James White
  • 674
  • 3
  • 18
  • 32
0
votes
1 answer

FreeRADIUS Rest Module on Centos 6.x

I am attempting to add JSON support for the REST module on Centos 6.5 I have installed the json-c-devel package however when compiling FreeRADIUS it complains it can't find it: [root@dhcp01]# ./configure --with-dhcp…
mixja
  • 197
  • 2
  • 7
0
votes
0 answers

Internaly hosted alternative to cloudbased nobackend solution like Firebase

In an environment where I can't use a cloud based service like Firebase, I'm looking for recommendation for an internally hosted nobackend solution. I could use node or meteor but really am just wanting to get functionality to Firebase, without…
Nikos
  • 103
  • 1
  • 5
1 2 3
8 9