2026/05/05

Tối ưu hiệu suất GLPI với MariaDB

Posted in by HungNguyen | Edit

Hệ thống GLPI bản 10.0.2 [với hơn 200k ticket] sau khi nâng cấp lên phiên bản mới nhất 11.07 bị tình trạng load chậm, nhất là khi link các ticket. Để cải thiện, update lại một số conf của MariaDB thay vì giữ nguyên default config.

sudo nano /etc/mysql/mariadb.conf.d/99-glpi-tuning.cnf

[mysqld]

# === Memory ===

innodb_buffer_pool_size = 4G


# === Temp tables ===

tmp_table_size = 512M

max_heap_table_size = 512M


# === Per-connection buffers ===

join_buffer_size = 8M

sort_buffer_size = 8M

Test lại syntax

sudo mariadbd --help --verbose > /dev/null

Khởi động lại MariaDB service

sudo systemctl restart mariadb

sudo systemctl status mariadb

2026/04/07

Add Veeam Proxy AHV

Posted in by HungNguyen | Edit

 Sau khi add Veeam Proxy AHV thông thường host này sẽ ko thấy Backup Server, đăng nhập vào console chỉnh lại

sudo nano /etc/hosts

xxx.xxx.xxx.xxx backup-server


Lưu lại

sudo service networking restart

Trên Backup Server mở file host add thêm IP & hostname của ahv proxy

xxx.xxx.xxx.xxx ahv-proxy

Làm xong đợi 1 lúc sau rescan lại.

2026/03/18

Xóa bớt item trong glpi_infocoms và glpi_logs

Posted in by HungNguyen | Edit

 Do vô tình bật tính năng

Enable the Financial & Administrative Information by Default

Dẫn tới tình trạng bảng glpi_infocoms ngày càng to (43GB)

Login vào server ->  mysql -u xxx -p

USE dbname;

DELETE FROM glpi_infocoms WHERE itemtype LIKE 'Item_Device%' AND value = AND suppliers_id = LIMIT 1000000;

xóa bớt những item ko cần add finance 

Xóa bớt logs chừa lại 180 ngày gần nhất

DELETE FROM glpi_logs WHERE date_mod < NOW() - INTERVAL 180 DAY LIMIT 5000000;

Vậy là xong, giảm được hơn 70GB dữ liệu rác từ 2 bảng. 

2026/03/07

451 5.7.3 STARTTLS is required to send mail

Posted in by HungNguyen | Edit

 Cert hết hạn làm mail từ 365 về On-prem lỗi

Reason: [{LED=450 4.4.317 Cannot establish session with remote server [Message=451 5.7.3 STARTTLS is required to send mail] 


Get-ExchangeCertificate | fl Subject,Issuer,Thumbprint

$cert = Get-ExchangeCertificate -Thumbprint THUMBPRINT_CERT

$tlscertificatename = "<I>$($cert.Issuer)<S>$($cert.Subject)"

Set-ReceiveConnector "Default Frontend XXX" -TlsCertificateName $tlscertificatename

Restart-Service MSExchangeFrontEndTransport
Restart-Service MSExchangeTransport

2022/06/24

GLPI notification CLI mode

Posted in by HungNguyen | Edit

chạy trên mỗi phút:

 # sudo crontab -e

*/1 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php

 


 

2022/06/07

Enable timezone after upgrade to GLPI 10

Posted in by HungNguyen | Edit

Enable timezone after upgrade from GLPI 0.83 to GLPI 10

 Login as root

sudo -s

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql

systemctl restart mariadb

cd /var/www/html/glpi

php bin/console glpi:database:enable_timezones

 

 

2022/04/12

Change default port 25 send connector

Posted in by HungNguyen | Edit

 Change default port smtp 25 send connector to another port for using Proxmox mail gateway

Set-SendConnector -Identity "connector name" -Port 26

Get-SendConnector "connector name"|fl Port