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

2021/11/02

Bigbluebutton not load default.pdf presentation

Posted in by HungNguyen | Edit

affect servers: Ubuntu 16.04 user Let's encrypt certificates (old root certificate expired)

sudo apt-get remove certbot

sudo apt-get install snapd

sudo snap install --classic certbot

sudo certbot renew --force-renewal --cert-name bbb.xxxxxxx.com --preferred-chain "ISRG Root X1"

bbb-conf --restart