I have a synology NAS that I am trying to post HDD temperatures to an influxDB container. The container is working fine and is getting data from two TrueNAS Servers via scripts I didn’t wite - so I am trying to emulate that on the Synology.
Data I have is:
Nas Name: (BackupNAS)
Disk Designation: (sda, sdb etc) - there are 10 disks
Disk Temperature: (34, 35, 36)
I also have a timestamp - but consider to be irrelavent and am happy with the influxdb timestamp - I believe its optional
I am trying to write individually NAS Name, Disk, DiskTemp so I can chart using influxdb or grafana
The command I am using is:
curl -i -XPOST 'http://192.168.38.189:8086/api/v2/write?org=home&bucket=synology-test' \
--header 'Authorization: Token YaddaYaddaYadda==' \
--data-binary 'server=BackupNAS,disk=$var value=$disk_temp'
But I am getting as a result:
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
X-Influxdb-Build: OSS
X-Influxdb-Version: v2.6.1
X-Platform-Error-Code: invalid
Date: Fri, 10 Mar 2023 00:18:28 GMT
Content-Length: 109
{"code":"invalid","message":"unable to parse 'server=BackupNAS,disk=$var value=$disk_temp': invalid boolean"}
Its clear that I don’t understand how the data should be formatted and written. Can anyone correct me?