Add session monitoring function MariaDB.