User Tools

Site Tools


zabbix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zabbix [2024/06/01 05:25] – created protocolzabbix [2025/04/18 10:19] (current) protocol
Line 1: Line 1:
 +===== Templates repo =====
 +
 +[[https://github.com/remontti/Zabbix-Templates]]
 +
 +===== HT authentication through zabbix users from DB =====
 +
 <code> <code>
  
Line 7: Line 13:
 systemctl restart apache2 systemctl restart apache2
 apt install libaprutil1-dbd-mysql -y apt install libaprutil1-dbd-mysql -y
 +
 +nano /etc/apache2/mods-enabled/authn_dbd.conf
  
 <IfModule mod_dbd.c> <IfModule mod_dbd.c>
Line 16: Line 24:
  DBDExptime 300  DBDExptime 300
 </IfModule> </IfModule>
 +
  
 <Directory "/zabbix/"> <Directory "/zabbix/">
Line 27: Line 36:
 </Directory> </Directory>
  
- +<Location "/.well-known"> 
-  <IfModule mod_dbd.c> +AuthType None 
-    DBDriver mysql +Require all granted 
-    DBDParams host=localhost,dbname=mkradius,user=root,pass=vertrigo +</Location>
-    DBDMin 1 +
-    DBDKeep 8 +
-    DBDMax 16 +
-    DBDExptime 300 +
-  </IfModule> +
- +
-  <Directory "/admin/"> +
-  AuthType Basic +
-  AuthName "Authentication" +
-  AuthBasicProvider socache dbd +
-  AuthnCacheProvideFor dbd +
-  AuthnCacheContext Authentication +
-  Require valid-user +
-  AuthDBDUserPWQuery "SELECT sha FROM sis_acesso WHERE login = %s AND ativo" +
-  </Directory> +
  
 </code> </code>
zabbix.1717230307.txt.gz · Last modified: 2024/06/01 05:25 by protocol