Questions tagged [json]
128 questions
0
votes
0 answers
create item with regex preprocessing using the zabbix API
I am trying to create Zabbix items using Ansible and Zabbix API. The problem is that preprocessing params must have a newline between them, that cannot be in a valid JSON value.
The JSON I tried first is as follows:
{ …

P.Péter
- 569
- 2
- 6
- 24
0
votes
0 answers
Where do I find a script to check a Ceph iSCSI gateway configuration?
On a Ceph cluster with iSCSI gateway we have an issue with gateway configuration changes being applied partially. The result is a broken gateway.conf, which goes unnoticed until (possibly weeks later) a gateway is restarted, for whatever reason, at…

reinierpost
- 412
- 3
- 9
0
votes
1 answer
Error: The response is not a valid json response. WordPress Windows server
I personally rented a Windows virtual server and installed and set up mysql+phpadmin+IIS and after that I started my email server and tested it and everything was ok, then I installed WordPress and set DNS records and went to upload the website,…

Armin
- 1
- 2
0
votes
2 answers
Ansible module returns non json data
Ansible Azure module returns the data in a weird format Double single quoted characters.
''network_interface_names'': [''Ubuntu915'']
As a result I can't use this anywhere to filter other resources.
Any idea what can be done to fix this or make it…

user630702
- 495
- 10
- 32
0
votes
1 answer
Copy large-size JSON content and paste it into MySQL column
I have a column with the data type "JSON" in the MySQL table(I have MySQL 8).
I have a 20 MB JSON file created by my BE code and I would like to copy and paste the contents of the JSON file into the box. But my phpMyadmin keeps freezing when I copy…

ITnewbie
- 171
- 2
- 9
0
votes
1 answer
Power Automate: Duplicate chat members is specified in the request body
I'm creating a chat bot that handles basic IT Support tasks. I've created a flow within a Power Virtual Agent, that puts the user that made the support request into a teams chat with myself.
I've created the flow, called it, which it reaches and…

Thomton
- 13
- 4
0
votes
1 answer
kyverno precondition for possible empty values
I am learning how to use kyverno to build some policies, but I am facing a few problems to understand some behaviour:
My first scenario is I want block some resource that may or may not have the spec.tier set.
If it is set and it is different from…

Jose
- 21
- 1
- 2
0
votes
0 answers
content type is returned as text/html while the expected is application/json
some endpoints are returning the content type as text/html while the expected is application/json causing CORS error in the client side. when requesting from my localhost or from the server's IP address, the data is returned as expected. which means…

Diaa Saber
- 1
- 1
0
votes
1 answer
Dynamically passing a json as a parameter in a "command" task
I have this task in my playbook:
- name: Update instance tags
command: oci compute instance update -c {{ compartment }} --freeform-tags {{ tag_var_json }}
According to the oracle documentation for this command, the parameter --freeform-tags…

Ress
- 45
- 1
- 2
- 8
0
votes
1 answer
Ansible: Iteration fails while looping over output variable
Here is my debug output from an ansible playbook:
"msg": {
"changed": false,
"failed": false,
"instances": [
{
.........
"private_dns_name": "ip-10-XXX-XXX-XX.ec2.internal",
…

Alfred Hitchkock
- 101
- 1
0
votes
2 answers
ansible - template json for environmental variable in docker container
I'm trying to assign a one-liner json string to an environmental variable in a docker container.
This is what the json look like:
{"ip_access": {"IP_whitelist": {"192.168.99.19/32": "grafana/status (Provider)"}}, "vhosts": {"prometheus1":…

Lethargos
- 455
- 2
- 7
- 19
0
votes
0 answers
Query string printed in some responses
I have a very odd problem, I have a server running nginx as a reverse proxy for PHP.
On the front end, I send ajax requests which expect json as response, when the request is made all works as expected most of the time, however sometimes for no…

Tlacaelel Ramon Luis
- 111
- 4
0
votes
2 answers
Json file with bash
I need delete space and value kubernetes from json file with use bash script:
Content json file
Input
"spec": {
"finalizers": [
"kubernetes"
]
},
Ouput
"spec": {
"finalizers": []
},
0
votes
1 answer
Transform each item in a JSON array to a JSON object
I need to transform this simple JSON array:
["169","19","33"]
to a more complicated JSON object for each item, like:
{
"groups": [
{
"groupid": 169
},
{
"groupid": 19
},
{
"groupid": 33
}
…

user5525652
- 157
- 1
- 4
- 14
0
votes
1 answer
Telegraf Tail file that contains json data to Influx
How can I extract the json data into influx by tailing a file that has the JSON data?
EG:
My logs are like this:
2020-12-01T18:34:06+02:00 10.132.90.194 {"wfd_successful_hits_sec": "0", "sql_hits_sec_max": "0", "timestamp": "2020/12/01 18:34:01",…

sarvesh.lad
- 137
- 6