[prev in list] [next in list] [prev in thread] [next in thread]
List: collectd
Subject: [collectd] problem with Plugin curl_json
From: 张鹏 <zphj1987 () gmail ! com>
Date: 2016-02-10 17:53:14
Message-ID: CALMEbCKSyd8MiGzhSLhvZvUNdVQF61zAYnM5S4a+iPrPbsYS9A () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
hello everyone!
i have some problem with using the Plugin curl_json
my json is:
http://192.168.244.128:5000/api/v0.1/status.json
i have a json file with the value like
{"status": "OK",
"output": {"election_epoch": 1}
}
so the key is status ,and my key value is a string, i known i can use
a type gauge to display a number above election_epoch ,
but i don't know how to save the value as a string, some one can help
me? i want to save the status string "ok"
[Attachment #5 (text/html)]
<div dir="ltr">hello everyone!<div>i have some problem with using the Plugin \
curl_json</div><div><br></div><div>my json is:</div><div><a \
href="http://192.168.244.128:5000/api/v0.1/status.json">http://192.168.244.128:5000/api/v0.1/status.json</a><br></div><div><br></div><div>i \
have a json file with the value like </div><div><br></div><div><pre \
style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><pre \
style="word-wrap:break-word;white-space:pre-wrap">{"status": \
"OK", </pre><pre \
style="word-wrap:break-word;white-space:pre-wrap">"output": \
{"election_epoch": 1}</pre><pre \
style="word-wrap:break-word;white-space:pre-wrap">}</pre></pre><pre \
style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre \
style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">so the key is \
status ,and my key value is a string, i known i can use a type gauge to display a \
number above <span style="font-family:arial,sans-serif">election_epoch</span><span \
style="font-family:arial,sans-serif"> ,</span></pre><pre \
style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">but i don't \
know how to save the value as a string, some one can help me? i want to save the \
status string "ok" </pre><pre \
style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre \
style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre></div></div>
_______________________________________________
collectd mailing list
collectd@verplant.org
https://mailman.verplant.org/listinfo/collectd
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic