{"id":20162907,"url":"https://github.com/actiontech/at-tools","last_synced_at":"2025-07-26T17:02:23.470Z","repository":{"id":97828139,"uuid":"99884638","full_name":"actiontech/At-tools","owner":"actiontech","description":"Actiontech-toolkit","archived":false,"fork":false,"pushed_at":"2017-09-08T06:02:45.000Z","size":1833,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T02:22:14.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actiontech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-10T05:26:38.000Z","updated_at":"2022-07-21T13:36:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"2972794a-4e72-4346-9055-7c164fc2b288","html_url":"https://github.com/actiontech/At-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2FAt-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2FAt-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2FAt-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2FAt-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actiontech","download_url":"https://codeload.github.com/actiontech/At-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137996,"owners_count":21053773,"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":[],"created_at":"2024-11-14T00:27:22.996Z","updated_at":"2025-04-10T00:36:30.004Z","avatar_url":"https://github.com/actiontech.png","language":"Go","readme":"# At-tools  \n\n## at-errlog-monitor\n跟踪MySQL的error log, 监控其中Warning信息, 并输出即时的show processlist结果值.   \n\n### 使用  \n1. 下载执行文件at-errlog-monitor  \n2. 创建与at-errlog-monitor同目录的配置文件config \n\n```\n[root@a8ce7ee2dacc test]# ls\nat-errlog-monitor  config \n```\n\n\n配置文件格式:  \n```\n[default]\nlog-error-path-scan = 60\n\n[mysql-3306]\nuser = root\npassword = 123\nhost =\nsocket = /opt/mysql/data/3306/mysqld.sock\nconnect-timeout = 10\nexec-sql-timeout = 10\n\n[mysql-3309]\nuser = root\npassword = 123\nhost =\nsocket = /opt/mysql/data/3309/mysqld.sock\nconnect-timeout = 10\nexec-sql-timeout = 10\n```\n\n3.运行执行文件 \n```\n[root@a8ce7ee2dacc test]# ./at-errlog-monitor 1\u003e info 2\u003e log \u0026\n[1] 81980\n```\n\n4.使用SIGUSR2加载配置  \n```\n[root@a8ce7ee2dacc test]# kill -SIGUSR2 81980\n```\n查看info可见warning及相关processlist  \n\n### TODO  \n* 忽略errlog中已存在的warning信息, 避免无用输出  \n* 定义日志信息及回收  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiontech%2Fat-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiontech%2Fat-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiontech%2Fat-tools/lists"}