{"id":17861202,"url":"https://github.com/jonathanstowe/monitor-monit","last_synced_at":"2025-04-02T20:47:23.672Z","repository":{"id":66980430,"uuid":"58370651","full_name":"jonathanstowe/Monitor-Monit","owner":"jonathanstowe","description":"Provide an interface to the monit monitoring daemon","archived":false,"fork":false,"pushed_at":"2022-08-07T08:42:45.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-22T17:06:59.777Z","etag":null,"topics":["monit","monitoring","raku","service"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanstowe.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2016-05-09T11:11:47.000Z","updated_at":"2022-08-07T08:42:48.000Z","dependencies_parsed_at":"2023-05-16T10:00:37.297Z","dependency_job_id":null,"html_url":"https://github.com/jonathanstowe/Monitor-Monit","commit_stats":null,"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FMonitor-Monit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FMonitor-Monit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FMonitor-Monit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanstowe%2FMonitor-Monit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanstowe","download_url":"https://codeload.github.com/jonathanstowe/Monitor-Monit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892796,"owners_count":20850846,"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":["monit","monitoring","raku","service"],"created_at":"2024-10-28T08:43:20.350Z","updated_at":"2025-04-02T20:47:23.530Z","avatar_url":"https://github.com/jonathanstowe.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monitor::Monit\n\nProvide an interface to the monit monitoring daemon\n\n![Build Status](https://github.com/jonathanstowe/Monitor-Monit/workflows/CI/badge.svg)\n\n\n## Synopsis\n\n```raku\n\nuse Monitor::Monit;\n\n# use default settings\nmy $mon = Monitor::Monit.new;\n\nfor $mon.service -\u003e $service {\n\tsay $service.name, \" is \", $service.status-name;\n}\n\n```\n\n## Description\n\nMonit is a lightweight, relatively simple and widely used system\nand application monitoring service.\n\nThis provides a mechanism to interact with its http api.\n\n## Installation\n\nIn order for this to be useful you will need to have 'monit' installed,\nmost Linux distributions provide it as a package.\n\nIf you set the enviromment variable ```MONIT_TEST_LIVE``` the tests will\nattempt to connect to a monit daemon on the local host with the default\nport and credentials, if there is no connection then the online tests\nwill be skipped.\n\nBy default the monit daemon will be configured to only listen for local\nconnections on the loopback interface, if you wish to work with a remote\nmonit daemon you may need to alter the monit configuration accordingly.\n\nYou can provide the details for the running monit daemon you want to test\nwith by setting some environment variables before running the tests:\n\n   * ```MONIT_TEST_HOST```  - the hostname on which the daemon is running\n   * ```MONIT_TEST_PORT```  - the port the daemon is using (default 2812)\n   * ```MONIT_TEST_USER```  - the username to authenticate (default ```admin```)\n   * ```MONIT_TEST_PASS```  - the password to authenticate (default ```monit```)\n\nAdditionally, if the environment variable ```MONIT_TEST_CONTROL``` is set to\na true value, the tests will attempt to control the services, you probably don't\nwant to do this on a production system.\n\nAssuming you have a working Rakudo installation then you should be able to install with `zef` :\n\n   zef install Monitor::Monit\n\n## Support\n\nI've only tested this against my particular configuration of monit so it is\nentirely possible that I have missed something that is important to you,\nplease feel to make suggestions at https://github.com/jonathanstowe/Monitor-Monit/issues\n\nIt is possible that it may not work properly with certain older versions of\nmonit though I can't pinpoint which versions and it's difficult to test so\nany help with that would be appreciated.\n\n## Copyright and Licence\n\nThis is free software.\n\nPlease see the [LICENCE](LICENCE) file in this directory.\n\n© Jonathan Stowe 2016 - 2021\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fmonitor-monit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstowe%2Fmonitor-monit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstowe%2Fmonitor-monit/lists"}