Skip to content

Commit

Permalink
Merge pull request #54 from bashclub/testing
Browse files Browse the repository at this point in the history
Update opnsense_checkmk_agent.py
  • Loading branch information
thorstenspille authored Aug 8, 2024
2 parents aea0a02 + 88a1b72 commit d09acd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opnsense_checkmk_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart
## * squid - install the mkp from https://exchange.checkmk.com/p/squid and forwarder -> listen on loopback active

__VERSION__ = "1.0.7"
__VERSION__ = "1.0.8"

import sys
import os
Expand Down Expand Up @@ -562,7 +562,8 @@ def check_net(self):
except ValueError:
pass

if _interface_dict["flags"] & 0x2 or _interface_dict["flags"] & 0x10 or _interface_dict["flags"] & 0x80: ## nur broadcast oder ptp .. und noarp
_flags = _interface_dict.get("flags")
if _flags and (_flags & 0x2 or _flags & 0x10 or _flags & 0x80): ## nur broadcast oder ptp .. und noarp
self._all_interfaces[_interface] = _interface_dict
else:
continue
Expand Down

0 comments on commit d09acd3

Please sign in to comment.