{"id":19415922,"url":"https://github.com/ondras/smon","last_synced_at":"2025-10-25T10:38:50.163Z","repository":{"id":146533262,"uuid":"78012929","full_name":"ondras/smon","owner":"ondras","description":"simple service monitoring","archived":false,"fork":false,"pushed_at":"2017-09-21T12:41:08.000Z","size":22,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T03:15:12.658Z","etag":null,"topics":["old"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ondras.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-01-04T12:17:46.000Z","updated_at":"2021-02-15T11:22:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"b32f1bb4-49c7-4611-86ba-0c34ed14529a","html_url":"https://github.com/ondras/smon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ondras/smon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Fsmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Fsmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Fsmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Fsmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ondras","download_url":"https://codeload.github.com/ondras/smon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondras%2Fsmon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274902303,"owners_count":25371074,"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-09-12T02:00:09.324Z","response_time":60,"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":["old"],"created_at":"2024-11-10T12:44:54.211Z","updated_at":"2025-10-25T10:38:45.123Z","avatar_url":"https://github.com/ondras.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smon\n\nSimple MONitoring tool\n\n## Features\n\n`smon` includes these probes:\n   - **TCP** for testing TCP connections;\n   - **HTTP** for testing HTTP responses, status codes and response lengths;\n   - **PING** for testing ICMP replies;\n   - **CERT** for validating X.509 certificates and days until their expiration.\n\nThe following reporting methods are available:\n   - setting an **exit code**;\n   - logging to a **standard output**;\n   - mailing via **sendmail**;\n   - writing to a **syslog**;\n   - making an **HTTP request** (chat bots and other external tools).\n\n## Installation\n\n```\ngit clone https://github.com/ondras/smon.git\n```\n\n## Configuration\n\n  1. Create the `conf/` subdirectory\n  1. Put all your configuration inside:\n    1. Configuration files are CommonJS modules (i.e. JavaScript files)\n    1. All files in `conf/` are used; you can either create one-file-per-configuration-element or use one file for all configuration\n    1. The `conf-example/` directory shows several examples for probes and reporters\n\nThe configuration API has these methods:\n\n```js\nrequire(\"..\").addProbe({ /* probe configuration */ });\nrequire(\"..\").addReporter({ /* reporter configuration */ });\nrequire(\"..\").configure({ /* global options */ });\n```\n\nA very simple configuration might look like this:\n```js\nvar app = require(\"..\");\n\n// make sure this web is reachable\napp.addProbe({\n   type: \"http\",\n   url: \"http://www.example.com/\",\n   status: 200\n});\n\n// if not, send me an e-mail\napp.addReporter({\n   type: \"sendmail\",\n   to: \"user@example.com\",\n   subject: \"smon probe failure\"\n});\n```\n\n## Running\n\n```\nnode .\n```\n\nIf you have a recent node (6.2+) and your symlinked conffiles are broken, try:\n\n```\nnode --preserve-symlinks .\n```\n\n## Why?\n\nI needed something trivial, easy-to-configure, easy-to-hack. `smon` is written in less than 9kB of JS. Also, I needed a new pet project for my *start learning vim again* chore.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondras%2Fsmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fondras%2Fsmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondras%2Fsmon/lists"}