Grafana error when testing

Hi all,

I try to get the grafana dashboard working:

But when i test i get this error, for security reasons i removed my NodeID

root@STORJ:/etc/telegraf# telegraf --debug --config /etc/telegraf/telegraf.conf --input-filter exec --test
2020-12-30T09:44:39Z I! Starting Telegraf 1.17.0
2020-12-30T09:44:39Z D! [agent] Initializing plugins
2020-12-30T09:44:39Z D! [agent] Starting service inputs
> StorJHealth,host=STORJ,nodeID=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF bandwidth_available=0,bandwidth_used=113204950272,diskSpace_available=3600000000000,diskSpace_trash=281662976,diskSpace_used=99205323520,satellites_0_currentStorageUsed=51495861504,satellites_1_currentStorageUsed=11291220480,satellites_2_currentStorageUsed=13770156800,satellites_3_currentStorageUsed=12284442624,satellites_4_currentStorageUsed=10311107840 1609321479000000000
2020-12-30T09:44:39Z E! [inputs.exec] Error in plugin: metric parse error: expected field at 1:69: "StorJHealth,NodeId=1QRRiM FailedCrit=0,FailedWarn=0,Success=0,Ratio=nan,Deleted=0 1609321479782761510"
> StorJToken,WalletAddress="0x4cdD571088879A40715e98A3D60ccCa381Ef96B9",host=STORJ,stat=tokens BalanceEUR=0,BalanceSTORJ=0,BalanceUSD=0 1609321480000000000
> StorJToken,host=STORJ,stat=prices STORJPriceEUR=0.2366,STORJPriceUSD=0.2895 1609321480000000000
2020-12-30T09:44:40Z D! [agent] Stopping service inputs
2020-12-30T09:44:40Z D! [agent] Input channel closed
2020-12-30T09:44:40Z D! [agent] Stopped Successfully
2020-12-30T09:44:40Z E! [telegraf] Error running agent: input plugins recorded 1 errors

Can someone point me to the right direction? :slight_smile:

Found the error needed to remove bash command from the input.exec

Got another error, and i cannot find what is wrong here:
When i run the successrate.sh located in de repo i get the following error:

**./successrate.sh: line 28: >=d' /mnt/storj/node.log: No such file or directory**
StorJHealth,NodeId=1QRRiM FailedCrit=0,FailedWarn=0,Success=0,Ratio=100,Deleted=0 1609324432440029198
StorJHealth,NodeId=1QRRiM DLFailed=0,DLSuccess=0,DLRatio=100,PUTFailed=0,PUTSuccess=0,PUTRatio=100,PUTLimit=0,PUTAcceptRatio=100,DLStarted=0,PUTStarted=0 1609324432443652847
StorJHealth,NodeId=1QRRiM GETRepairFail=0,GETRepairSuccess=0,GETRepairRatio=100,PUTRepairFailed=0,PUTRepairSuccess=0,PUTRepairRatio=100 1609324432447216904
StorJHealth,NodeId=1QRRiM InfoDBcheck=0,VoucherCheck=0,Reboots=0,Version="" 1609324432450777386

The command the script runs is:

LOG="awk -v d="$(date -d'24 hours ago' +'%FT%T')" '$1" "$2>=d' /mnt/storj/node.log"

when i run awk -v d="$(date -d'24 hours ago' +'%FT%T')" '$1" "$2>=d' /mnt/storj/node.log it works in cli but not from the script??? you guys know this issue?

Perhaps it should be

LOG=`awk -v d="$(date -d'24 hours ago' +'%FT%T')" '$1 $2>=d' /mnt/storj/node.log`

This command will load the log for the last 24 hours into $LOG variable.