Skip to content

Commit

Permalink
Merge pull request #31 from wbollock/fix/alive_connection_failures
Browse files Browse the repository at this point in the history
fix: don't die on connection failures
  • Loading branch information
wbollock authored Dec 21, 2022
2 parents bbb5bb2 + 46ae27f commit b796746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nagios_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (e *Exporter) TestNagiosConnectivity(sslVerify bool, nagiosAPITimeout time.

jsonErr := json.Unmarshal(body, &systemStatusObject)
if jsonErr != nil {
log.Fatal(jsonErr)
return 0
}

return systemStatusObject.Running
Expand Down

0 comments on commit b796746

Please sign in to comment.