Need help with SNMP

Good day Librenms team, Hope everyone is healthy in today situation.
Please advise how can I solve this issue .
Using a script like
#!/bin/bash

destination="$1"
oid1="$2"
oid2="$3"
oid3="$4"
oid4="$5"
i=0
for i in {0…100}
do
eval “/usr/lib64/nagios/plugins/check_snmp -H ‘$destination’ -m -o ‘$oid1’.$i -l Template: -o ‘$oid2’.$i -l Status_OK/KO: -o ‘$oid3’.$i -l Type_HSS/HLS/DASH: -o ‘$oid4’.$i”
done

It works from cli…
However, when I use this script as a service it get’s an error :

External command error: Configuration directives understood:
In snmp.conf and snmp.local.conf:
extraX509SubDir string
x509CRLFile string
tlsAlgorithms string
localCert string
peerCert string
alias NAME TRANSPORT_DEFINITION
doDebugging (1

Please advise how to solve this.