diff --git a/main.go b/main.go index e633df2..2e9ba0c 100644 --- a/main.go +++ b/main.go @@ -179,6 +179,10 @@ func starts(params *gosnmp.GoSNMP, config *Config) { } + if toExport["upsESystemInputVoltage"].(int64) <= 0 { + delete(toExport, "upsESystemInputVoltage") + } + go PushData(toExport, tm) time.Sleep(time.Second * time.Duration(config.SNMP.Repeat))