{"id":18801566,"url":"https://github.com/addiks/mmfm","last_synced_at":"2025-10-08T10:58:20.669Z","repository":{"id":85551373,"uuid":"93184866","full_name":"addiks/mmfm","owner":"addiks","description":"Mattermost File Monitor / Bot","archived":false,"fork":false,"pushed_at":"2017-06-14T20:20:35.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T00:28:26.963Z","etag":null,"topics":["bot","file","mattermost","monitor","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/addiks.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-06-02T16:35:37.000Z","updated_at":"2022-12-11T00:39:26.000Z","dependencies_parsed_at":"2023-03-04T07:30:43.379Z","dependency_job_id":null,"html_url":"https://github.com/addiks/mmfm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/addiks/mmfm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addiks%2Fmmfm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addiks%2Fmmfm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addiks%2Fmmfm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addiks%2Fmmfm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/addiks","download_url":"https://codeload.github.com/addiks/mmfm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addiks%2Fmmfm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931654,"owners_count":26070789,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bot","file","mattermost","monitor","python3"],"created_at":"2024-11-07T22:24:24.800Z","updated_at":"2025-10-08T10:58:20.633Z","avatar_url":"https://github.com/addiks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mmfm - Mattermost File Monitor / Mattermost Bot\n===================================\n\nA simple deamon that monitor's one or multiple files and post's all new lines to a Mattermost-Server to configured\nchannels or users. Handy tool if you want to monitor your error-log's and be alerted directly if some error happens.\n\n## Set-Up\n\nAfter you have cloned (and checked out) this repository, make sure to initialize the git-submodule(s).\n\nCreate a file like the one provided in \"assets/configuration.sample.xml\" somewhere, modify it's content to fit your\nneeds. You need one \"monitor\" entry per file you want to monitor and channel you want to post into. If you need to post\naccross multiple mattermost-servers, create one \"server\" entry for every server you need to post onto. Make sure that\nfor every \"server\" attribute in the \"monitor\" entries there exists an \"server\" entry with the matching \"name\" attribute.\nRun the python-script \"mmfm.py\" using the absolute path to the configuration file as the first (and only) parameter.\nMake sure the user described in the configuration is already in all channels it is supposed to write into as it\ncurrently cannot join channel's on it's own.\n\n```\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cmmfm-config\u003e\n\n    \u003cmonitor\n        path=\"/var/log/syslog\"\n        server=\"MyCompany\"\n        channel=\"admins\"\n    /\u003e\n    \u003cmonitor\n        path=\"/var/www/shop/log/errors.log\"\n        server=\"MyCompany\"\n        channel=\"developers\"\n    /\u003e\n    \u003cserver\n        url=\"https://mattermost.mycompany.local\"\n        team=\"myTeam\"\n        username=\"mmfm_bot\"\n        password=\"12345678\"\n        name=\"MyCompany\"\n    /\u003e\n\n    \u003cmonitor\n        path=\"/home/john_doe/my-program.log\"\n        server=\"johnsDesktop\"\n        channel=\"my-program-log\"\n    /\u003e\n    \u003cserver\n        url=\"http://192.168.0.123:8065/\"\n        team=\"home\"\n        username=\"john_doe\"\n        ask-password-on-startup=\"true\"\n        name=\"johnsDesktop\"\n    /\u003e\n\n\u003c/mmfm-config\u003e\n```\n\n## Licence\n\nThis plugin is licenced under the GNU General Public Licence version 3.\nIf you do not know what that means, see the file 'LICENCE'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddiks%2Fmmfm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddiks%2Fmmfm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddiks%2Fmmfm/lists"}