Questions tagged [json]

128 questions
1
vote
0 answers

invalid JSON to monitor SMART on Zabbix

I've followed these steps on github: https://github.com/v-zhuravlev/zbx-smartctl to monitor the SMART disks in my Winsows servers on Zabbix. BUt when I add the template to the host I'd configured, on the frontend, it shows me this error as "not…
Camila
  • 11
  • 1
1
vote
1 answer

Working with array of object in Zabbix

My HTTP agent on Zabbix recieve data representing count of client's orders: { "orders": [ { "client_id": 1, "count": 2 }, { "client_id": 2, "count": 3 }, { "client_id": 3, "count": 1 } …
Yury
  • 11
  • 2
0
votes
0 answers

Export content of JSON file in Terraform

I have the GCP service account key file in JSON format, which I need to export as GOOGLE_APPLICATION_CREDENTIALS. Is there a way in Terraform to provide the "contents" of this JSON file directly (instead of specifying the path to the file) in a…
0
votes
1 answer

Zabbix : Invalid JSON

I have a Powershell script returning a file like : { "data":[ { "{#SHARENAME}":"Informatique", "{#SHARENAME}":"Marketing" } ] } I've set a discovery rule (zabbix agent) + an Item prototype (zabbix trapper) with the Key : sharename[{#SHARENAME}] But…
HeadQuaker
  • 1
  • 1
  • 1
0
votes
2 answers

Ansible json output return hello world

newbie on ansible i try to check if a json dict output exist from the proxmox API, but seems like i don't register the output correctly: here is the yaml : https://pastebin.com/XdA5PMNg and here is the debug : https://pastebin.com/qxbsJ8rE Thanks…
0
votes
1 answer

passing labels parameter to daemon.json in Docker

I am trying to setup docker daemon on Centos 7. The goal is to pass parameters to the overriding script in systemd and keep everything in daemon.json that is much more readable and cleaner Default script…
fromthestone
  • 347
  • 4
  • 17
0
votes
1 answer

nodejs server only works when started from cli

I'm trying to run a node app on my personal blog, which does display the static content, but cannot send POST calls back to the server when I start the server via systemctl. However when I run node index the server starts up and can send POST…
Jake t
  • 127
  • 2
  • 8
0
votes
0 answers

forward original syslog message

I would like to forward from a log collector many syslog message to another log collector and maintain the original syslog message. When I forward maybe the first log collector add a data and source ip address before the original message. I want to…
ELK2
  • 3
  • 1
  • 2
  • 5
0
votes
1 answer

Cloudformation Trouble with Parsing

I am having some issues w/ using CloudFormation and CloudFront. I have been using the AWS resources to form my template, found here "OpenVPNCloudFront" : { "Type" : "AWS::CloudFront::Distribution", "Properties": { …
ryekayo
  • 472
  • 5
  • 14
0
votes
1 answer

Slow apache response time for json api (solved)

I've got an Apache server hosting several json APIs. This server is running Ubuntu 16.04.4 LTS with Apache and Mysql. Response times for all API are very good except for one! It takes about 5s to get a json response from the particular API whereas…
0
votes
1 answer

bash: how to put variable into loop-command not found

jq '.issues[].fields.subtasks[].fields | .issuetype.subtask' 1.json works as expected (getting "true" as output) when trying to put command above as variable for custom_field in `cat 1.json | jq .issues[].fields.subtasks[].fields |…
scripter
  • 1
  • 1
0
votes
1 answer

creating new SSH user in ubuntu ec2 instance using cloudformation template userdata

I want to create new ssh user that can access instance using cloudformation template userdata. i am using this json script "sudo adduser jenkins-user --disabled-password\n", "sudo su - jenkins-user\n", "\n", "mkdir .ssh\n", "chmod 700…
Nani
  • 165
  • 1
  • 2
  • 7
0
votes
1 answer

How to expand security groups mapping in order to add another level per region in a CloudFormation template?

I've wrote a CloudFormation template which creates an AutoScaling Group which in turn starts up servers per environment. Up until today the company has been working in region us-west-2 and the SecurityGroups mapping looked like…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
2 answers

Haproxy httpchk with json

I need to check backend with POST JSON but cannot find a way to do this. Below is the curl POST that works. How do I do with in HAPROXY httpchk curl -H "Content-Type: application/json" -X POST -d…
isa
  • 1
  • 1
  • 2
0
votes
2 answers

jq Cannot index errors

I am trying to use jq to get certain information from this endpoint curl -s https://bittrex.com/api/v1.1/public/getmarketsummaries/ | jq '[.]' and the output below [ { "success": true, "message": "", "result": [ { …
uberrebu
  • 503
  • 6
  • 17
  • 36
1 2 3
8 9