Skip to content

Commit

Permalink
fix sttaus
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkboy-j committed Dec 3, 2024
1 parent fbe8e1c commit 7a66341
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ func starts(params *gosnmp.GoSNMP, config *Config) {
if strings.Contains(walkErr.Error(), "request timeout (after") {

toExport["upsESystemStatus"] = 10 //shutdown
toExport["upsESystemOutputVoltage"] = 0
toExport["upsESystemOutputFrequency"] = 0
toExport["upsESystemOutputLoad"] = 0
toExport["upsEBatteryEstimatedChargeRemaining"] = 0
toExport["upsEBatteryStatus"] = 4 //batteryDepleted

go PushData(toExport, tm)
Expand Down

0 comments on commit 7a66341

Please sign in to comment.