Not able to get the exact output in grafana dashboard

Hi ,
i have sh file as below

#!/bin/bash
urls=(
ve.com premium domain name for sale - digitalcandy.uk
https://google.com

Add more URLs here

)
for url in “${urls[@]}”; do
response=$(curl -s -I -k -o /dev/null -w “%{http_code}” “$url”)
if [ “$response” = “200” ]; then
status=“success”
else
status=“connection_failed”
fi
echo “url=$url status=$status”
done

i want to get the status output in grafana dashboard through telegraf and influxdb.

the below measurement i have added in telegraf.conf file
[[inputs.exec]]
commands = [“/path/to/your/script.sh”]
data_format = “influx”

and in grafana dashboard i used below query

SELECT last(“value”) FROM “exec” WHERE $timeFilter GROUP BY time($__interval), “host” fill(null)

I’m not able to get the output in grafana dashboard. its showing me as no data in grafana dashboard .

please help me on this .

Did you try writing output variables directly to a database?

What do you get if you simply ran
SELECT * FROM "exec"

Please post back screen shot