{"id":17871063,"url":"https://github.com/helmo/roundcube-behat-checker","last_synced_at":"2025-10-17T19:25:15.148Z","repository":{"id":37583407,"uuid":"87282538","full_name":"helmo/roundcube-behat-checker","owner":"helmo","description":"Fakes a browser session to login to Roundcube webmail, sent a test mail, and check settings.","archived":false,"fork":false,"pushed_at":"2023-05-30T21:12:22.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T13:29:38.837Z","etag":null,"topics":["behat","nagios","roundcube"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/helmo.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-04-05T07:57:52.000Z","updated_at":"2021-11-14T22:20:51.000Z","dependencies_parsed_at":"2024-10-28T11:30:03.612Z","dependency_job_id":null,"html_url":"https://github.com/helmo/roundcube-behat-checker","commit_stats":{"total_commits":33,"total_committers":4,"mean_commits":8.25,"dds":0.4242424242424242,"last_synced_commit":"a5b91168b92a947fe2ffd6f4135e8ed520b67773"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmo%2Froundcube-behat-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmo%2Froundcube-behat-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmo%2Froundcube-behat-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmo%2Froundcube-behat-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helmo","download_url":"https://codeload.github.com/helmo/roundcube-behat-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246905869,"owners_count":20852820,"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":["behat","nagios","roundcube"],"created_at":"2024-10-28T10:22:48.386Z","updated_at":"2025-10-17T19:25:10.083Z","avatar_url":"https://github.com/helmo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roundcube checker\n\nFakes a browser session to login to Roundcube webmail, sent a test mail, and check settings.\n\n## Install\n\n```bash\n# git checkout somewhere\n$ composer install\n$ cp variables.sh.example variables.sh\n```\n\n* Edit the login information in the variables.sh file\n* Ensure that the webmail user gets the Interface skin 'Larry'.\n* The last two steps in features/roundcube.feature depend on roundcube plugings, disable or extend to match your setup.\n\n## Usage\n\nUse the `check_behat.sh` script to run the tests.\n\nFor more output you can call behat directly.\n\n```\n$ vendor/bin/behat\n```\n\nAlternatively you cal also run it in docker.\n\nTo build teh container:\n```\n$ make\n```\n\nThen to run:\n```\n$ make run\n```\n\n\n## Icinga config\n\nHere's an example Nagios configuration.\nTo use the passive check you need some script that either receives the mail or reads mailserver logs, and sends a passive result to Icinga.\n\n```\nobject CheckCommand \"check_behat_roundcube\" {\n        command = [ \"/var/lib/nagios/src/roundcube-behat-checker/check_behat.sh\" ]\n        arguments = {   }\n}\n```\n\n```\napply Service \"behat-roundcube-active\"  {\n  import \"generic-service\"\n\n  display_name = \"Behat Roundcube active\"\n\n  check_interval = 1h\n  retry_interval = 10m\n\n  check_command = \"check_behat_roundcube\"\n\n  assign where host.name == \"mail.example.com\"\n}\napply Service \"behat-roundcube-passive\"  {\n  import \"generic-passive-service\"\n\n  check_interval = 7d\n  vars.notification_interval = 1d\n  display_name = \"Behat Roundcube - passive result\"\n  vars.dummy_text = generate_passive_dummy_text(\"$host.name$\", \"$service.name$\")\n\n  assign where host.name == \"mail.example.com\"\n}\n\n```\n\n## Nagios config\n\nHere's an example Nagios configuration.\nTo use the passive check you need some script that either receives the mail or reads mailserver logs, and sends a passive result to Nagios.\n\n```\ndefine command{\n    command_name  check_behat_roundcube\n    command_line  /home/nagios/src/roundcube-checker/check_behat.sh\n}\n\ndefine service{\n    use                 generic-service\n\n    normal_check_interval       60\n    retry_check_interval        10\n    notification_interval       120\n\n    host_name           mail.example.com\n\n    service_description     Behat Roundcube\n    check_command           check_behat_roundcube\n}\n\n# Passibe check to receive the mail from the Behat Roundcube test above\ndefine service{\n    use             passive-generic     ; Name of service template to use\n    name                roundcube-behat\n\n    active_checks_enabled       0   ; Active service checks are disabled\n    passive_checks_enabled      1   ; Passive service checks are enabled\n\n    check_freshness         1\n    freshness_threshold     7200                   ; 2 hour threshold, since backups may not always finish at the same time\n    check_command           return-misc!2!\"No info in 2h\"         ; this command is run only if the service results are \"stale\"\n\n    host_name               mail.example.com\n    service_description     roundcube mail via behat\n}\n\n\n```\n\n## About\n\nThis project was developed by [Initfour websolutions](https://www.initfour.nl/) and [BrixIT](https://brixit.nl/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmo%2Froundcube-behat-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelmo%2Froundcube-behat-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmo%2Froundcube-behat-checker/lists"}