chore: add pending debug scripts and finalize docs
This commit is contained in:
parent
5c8ffe2da4
commit
92ebc26cbc
|
|
@ -0,0 +1,17 @@
|
|||
import yaml
|
||||
|
||||
file_path = r'C:\Users\joao.goncalves\Desktop\zabbix-itguys\templates_gold\pfsense_hybrid_snmp_agent\template_pfsense_hybrid_gold.yaml'
|
||||
|
||||
try:
|
||||
with open(file_path, 'r', encoding='utf-8') as f:
|
||||
data = yaml.safe_load(f)
|
||||
|
||||
macros = data['zabbix_export']['templates'][0]['macros']
|
||||
|
||||
print(f"Total macros: {len(macros)}")
|
||||
for i, m in enumerate(macros):
|
||||
val = m.get('value')
|
||||
print(f"Macro {i+1} ({m['macro']}): Type={type(val)} Value='{val}'")
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
import yaml
|
||||
import sys
|
||||
|
||||
file_path = r'C:\Users\joao.goncalves\Desktop\zabbix-itguys\templates_gold\pfsense_hybrid_snmp_agent\template_pfsense_hybrid_gold.yaml'
|
||||
try:
|
||||
with open(file_path, 'r', encoding='utf-8') as f:
|
||||
lines = f.readlines()
|
||||
found = False
|
||||
for i, line in enumerate(lines):
|
||||
if 'REGEXP' in line:
|
||||
print(f"Line {i+1}: {line.strip()}")
|
||||
found = True
|
||||
if not found:
|
||||
print("String 'REGEXP' not found in file.")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
|
@ -2105,7 +2105,7 @@ zabbix_export:
|
|||
expression: change(/PFSense by SNMP/openvpn.user.real_address.new[{#VPN.USER}])<>0 and last(/PFSense by SNMP/openvpn.user.status[{#VPN.USER}])=1
|
||||
name: 'OpenVPN [{#VPN.USER}]: IP Alterado Durante Sessão (Possível Hijacking)'
|
||||
event_name: '🛡️ SEGURANÇA: IP de {#VPN.USER} alterou para {ITEM.LASTVALUE1} enquanto conectado'
|
||||
priority: HIGH
|
||||
priority: AVERAGE
|
||||
description: 'O IP real do usuário mudou enquanto a sessão VPN ainda está ativa.
|
||||
|
||||
Isso pode indicar:
|
||||
|
|
|
|||
Loading…
Reference in New Issue