Skip to content

Commit b796746

Browse files
authored
Merge pull request #31 from wbollock/fix/alive_connection_failures
fix: don't die on connection failures
2 parents bbb5bb2 + 46ae27f commit b796746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nagios_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func (e *Exporter) TestNagiosConnectivity(sslVerify bool, nagiosAPITimeout time.
256256

257257
jsonErr := json.Unmarshal(body, &systemStatusObject)
258258
if jsonErr != nil {
259-
log.Fatal(jsonErr)
259+
return 0
260260
}
261261

262262
return systemStatusObject.Running

0 commit comments

Comments
 (0)