Thanks to
I remembered you can always pull the merged commit from the freenas source repo on github and overwrite your freenas_health.sh with it without editing any code
Here is the merged commit
https://github.com/freenas/freenas/pull/723/files
Direct link to the fixed file
https://github.com/freenas/freenas/...usr/local/etc/consul-checks/freenas_health.sh
I edited the few lines that were changed inside freenas_health.sh in the merged commit that fixed the issue and the spam instantly stopped
so I tried downloading just that 1 file individually into /usr/local/etc/consul-checks/ and made it overwrite the existing freenas_health.sh file. The spam messages never returned and remained fixed.
This is the code I used after connecting through SSH as root, it will work if you open the shell from the freenas gui as well if you paste this command in there
Code:
wget https://github.com/freenas/freenas/blob/8175ddd35c189c43c47a51e42a1353e96d9ac2cb/src/freenas/usr/local/etc/consul-checks/freenas_health.sh > /usr/local/etc/consul-checks/freenas_health.sh