Skip to content

Commit

Permalink
ignores temporary errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Mar 6, 2024
1 parent fb7ee0f commit 9d2995b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netifaces/lib/check_mk/base/plugins/agent_based/netifaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def check_netifaces_rbl(item, params, section) -> CheckResult:
if er.args[0] == socket.EAI_NONAME:
yield Result(state=State.OK,
notice='not found in %s' % rbl)
if er.args[0] in [ socket.EAI_AGAIN, socket.EAI_NONAME ] :
yield Result(state=State.OK,
notice='%s yields %s' % (rbl, er))
else:
yield Result(state=State.WARN,
notice='%s yields %s' % (rbl, er))
Expand Down
Binary file removed netifaces/netifaces-7.1.1.mkp
Binary file not shown.
Binary file added netifaces/netifaces-7.2.0.mkp
Binary file not shown.

0 comments on commit 9d2995b

Please sign in to comment.