mirror of
				https://github.com/bashclub/check-opnsense.git
				synced 2025-11-04 05:02:28 +01:00 
			
		
		
		
	Merge pull request #54 from bashclub/testing
Update opnsense_checkmk_agent.py
This commit is contained in:
		@@ -27,7 +27,7 @@
 | 
				
			|||||||
##      * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart
 | 
					##      * 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
 | 
					##      * 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 sys
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
@@ -562,7 +562,8 @@ class checkmk_checker(object):
 | 
				
			|||||||
                    except ValueError:
 | 
					                    except ValueError:
 | 
				
			||||||
                        pass
 | 
					                        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
 | 
					                self._all_interfaces[_interface] = _interface_dict
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                continue
 | 
					                continue
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user