{"id":14969109,"url":"https://github.com/sujunmin/mariadbdailycheckscripts","last_synced_at":"2026-02-18T07:02:33.034Z","repository":{"id":197977561,"uuid":"76633381","full_name":"sujunmin/MariaDBDailyCheckScripts","owner":"sujunmin","description":"MariaDB Daily Check Scripts in PowerShell and SQL","archived":false,"fork":false,"pushed_at":"2019-10-09T03:21:34.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T09:17:06.244Z","etag":null,"topics":["daily-tasks","database-status","mariadb-server","powershell","sql","windows"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sujunmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-12-16T07:49:51.000Z","updated_at":"2019-10-09T03:21:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2930bec-435f-45c7-b1ce-7dc59e1139db","html_url":"https://github.com/sujunmin/MariaDBDailyCheckScripts","commit_stats":null,"previous_names":["sujunmin/mariadbdailycheckscripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujunmin%2FMariaDBDailyCheckScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujunmin%2FMariaDBDailyCheckScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujunmin%2FMariaDBDailyCheckScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujunmin%2FMariaDBDailyCheckScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujunmin","download_url":"https://codeload.github.com/sujunmin/MariaDBDailyCheckScripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239808533,"owners_count":19700454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["daily-tasks","database-status","mariadb-server","powershell","sql","windows"],"created_at":"2024-09-24T13:41:08.369Z","updated_at":"2025-10-16T22:05:49.917Z","avatar_url":"https://github.com/sujunmin.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MariaDBDailyCheckScripts\nMariaDB Daily Check Scripts in PowerShell and SQL for Windows\n\nThis scripts are inspired from [WiseSoft](http://www.wisesoft.co.uk/) [DBA Daily Checks Email Report](http://www.wisesoft.co.uk/articles/dba_daily_checks_email_report.aspx).\n\n# Preparations\n- `CREATE DATABASE master`\n- execute [`event_history.sql`](https://raw.githubusercontent.com/sujunmin/MariaDBDailyCheckScripts/master/prep/event_history.sql) to make event history table.\n- execute [`proc_for_event_history`](https://raw.githubusercontent.com/sujunmin/MariaDBDailyCheckScripts/master/prep/proc_for_event_history.sql) and make sure all event will be called in this procedure.\n- Settings\n    \n  In createreport.ps1\n  - `Set-Location \"\u003cpath\u003e\"` The scripts root path.\n  - `$ServerName = \"\u003cservername\u003e\"` MariaDB server name\n  - `$ServerIP = \"\u003cserverip\u003e\"` MariaDB server IP\n  - `$mysqlexe = \"\u003cmysqlexepath\u003e\"` Path to mysql.exe\n  - `$FullBackupPath = \"\u003cfullbackuppath\u003e\"` Full backup path (If any)\n  - `$rptuser = \"\u003crptuser\u003e\"` Scripts runner username\n  - `$rptpass = \"\u003crptpass\u003e\"` Scripts runner password\n  - `$NumDays = 3` Get 3 days checks\n  - `$FreeDiskSpacePercentWarningThreshold = 15` Free disk space below 15% for warning\n  - `$FreeDiskSpacePercentCriticalThreshold = 10` Free disk space below 10% for critical\n  - `$MailFrom = \"\u003cmailfrom\u003e\"` Report sender\n  - `$MailTo = \"\u003crcptto\u003e\"` Report rcpts\n  - `$MailServer = \"\u003cmailserverip\u003e\"` Mail server IP\n\n  In DatabaseFiles.sql\n  - `SET @CriticalThresholdPCT := 95;` More than 95% of Table size for data will be critical \n  - `SET @WarningThresholdPCT := 90;` More than 90% of Table size for data will be warning\n\n  In EventStatus.sql\n  - `SET @NumDays := 3;` Get 3 days checks\n\n  In FailEventStat.sql\n  - `SET @NumDays := 3;` Get 3 days checks\n\n  In Uptime.sql \n  - `SET @UptimeCritical := 1440;` Less then 1440 min for uptime will be critical\n  - `SET @UptimeWarning := 2880;` Less then 2880 min for uptime will be warning\n  \n# Usage\n\n`powershell createreport.ps1`\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujunmin%2Fmariadbdailycheckscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujunmin%2Fmariadbdailycheckscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujunmin%2Fmariadbdailycheckscripts/lists"}