Skip to content

Commit d09acd3

Browse files
Merge pull request #54 from bashclub/testing
Update opnsense_checkmk_agent.py
2 parents aea0a02 + 88a1b72 commit d09acd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opnsense_checkmk_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart
2828
## * squid - install the mkp from https://exchange.checkmk.com/p/squid and forwarder -> listen on loopback active
2929

30-
__VERSION__ = "1.0.7"
30+
__VERSION__ = "1.0.8"
3131

3232
import sys
3333
import os
@@ -562,7 +562,8 @@ def check_net(self):
562562
except ValueError:
563563
pass
564564

565-
if _interface_dict["flags"] & 0x2 or _interface_dict["flags"] & 0x10 or _interface_dict["flags"] & 0x80: ## nur broadcast oder ptp .. und noarp
565+
_flags = _interface_dict.get("flags")
566+
if _flags and (_flags & 0x2 or _flags & 0x10 or _flags & 0x80): ## nur broadcast oder ptp .. und noarp
566567
self._all_interfaces[_interface] = _interface_dict
567568
else:
568569
continue

0 commit comments

Comments
 (0)