{"id":20598461,"url":"https://github.com/kkirsche/cronmon","last_synced_at":"2026-04-17T18:32:05.348Z","repository":{"id":142820443,"uuid":"84259698","full_name":"kkirsche/cronmon","owner":"kkirsche","description":"Cron monitoring software","archived":false,"fork":false,"pushed_at":"2018-05-04T17:28:25.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T15:28:11.109Z","etag":null,"topics":["cron","monitoring"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkirsche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-08T00:20:21.000Z","updated_at":"2018-05-04T17:28:27.000Z","dependencies_parsed_at":"2023-08-23T19:30:51.293Z","dependency_job_id":null,"html_url":"https://github.com/kkirsche/cronmon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kkirsche/cronmon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fcronmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fcronmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fcronmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fcronmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkirsche","download_url":"https://codeload.github.com/kkirsche/cronmon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fcronmon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31940786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cron","monitoring"],"created_at":"2024-11-16T08:26:54.548Z","updated_at":"2026-04-17T18:32:05.325Z","avatar_url":"https://github.com/kkirsche.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cron Monitor\n\n## Setup\n\nGolang Dependencies:\n```shell\ngo get -u -v github.com/gorhill/cronexpr\ngo get -u -v github.com/prometheus/client_golang/prometheus\ngo get -u -v github.com/jmoiron/sqlx\ngo get -u -v github.com/lib/pq\ngo get -u -v github.com/sirupsen/logrus\ngo get -u -v github.com/labstack/echo\ngo get -u -v github.com/labstack/echo/middleware\ngo get -u -v github.com/prometheus/client_golang/prometheus/promhttp\ngo get -u -v github.com/spf13/cobra\n```\n\nTerminal A:\n```shell\ncockroach start --insecure --store=cronmon --host=localhost\n```\n\nTerminal B:\n```shell\ncockroach user set evilroach --insecure\ncockroach sql --insecure -e 'CREATE DATABASE cronmon'\ncockroach sql --insecure -e 'GRANT ALL ON DATABASE cronmon TO evilroach'\ncronmon server\n```\n\n## Usage\n\n### Create Task to Monitor\n\n#### cURL\n\nRequest:\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '{ \"name\": \"Example Task\", \"description\": \"This is an example task for the cronmon README file\", \"cron_expression\": \"* * * * *\"}' http://localhost:8080/api/v1/tasks\n```\n\nResponse (formatted for readability via jq):\n```json\n{\n  \"id\": 345302135986061313,\n  \"name\": \"Example Task\",\n  \"description\": \"This is an example task for the cronmon README file\",\n  \"cron_expression\": \"* * * * *\",\n  \"created_at\": {\n    \"Time\": \"2018-05-04T15:35:36.949293868Z\",\n    \"Valid\": false\n  },\n  \"created_by\": \"system\",\n  \"updated_at\": {\n    \"Time\": \"2018-05-04T15:35:36.949309482Z\",\n    \"Valid\": false\n  },\n  \"updated_by\": \"system\",\n  \"last_started\": {\n    \"Time\": \"0001-01-01T00:00:00Z\",\n    \"Valid\": false\n  },\n  \"last_completed\": {\n    \"Time\": \"0001-01-01T00:00:00Z\",\n    \"Valid\": false\n  }\n}\n```\n\n### Get a task\n\n#### cURL\n\nRequest:\n```shell\ncurl -XGET -H 'Content-Type: application/json' http://localhost:8080/api/v1/tasks/345302135986061313\n```\n\nResponse (formatted for readability via jq):\n```json\n{\n  \"id\": 345302135986061300,\n  \"name\": \"Example Task\",\n  \"description\": \"This is an example task for the cronmon README file\",\n  \"cron_expression\": \"* * * * *\",\n  \"created_at\": {\n    \"Time\": \"2018-05-04T15:37:29.109985Z\",\n    \"Valid\": true\n  },\n  \"created_by\": \"system\",\n  \"updated_at\": {\n    \"Time\": \"2018-05-04T15:37:29.109985Z\",\n    \"Valid\": true\n  },\n  \"updated_by\": \"system\",\n  \"last_started\": {\n    \"Time\": \"0001-01-01T00:00:00Z\",\n    \"Valid\": false\n  },\n  \"last_completed\": {\n    \"Time\": \"0001-01-01T00:00:00Z\",\n    \"Valid\": false\n  }\n}\n```\n\n### Get all tasks\n\n#### cURL\n\nRequest:\n```\ncurl -XGET -H 'Content-Type: application/json' http://localhost:8080/api/v1/tasks\n```\n\n\nResponse (formatted for readability via jq):\n```\n[\n  {\n    \"id\": 345308099987341300,\n    \"name\": \"Example Task\",\n    \"description\": \"This is an example task for the cronmon README file\",\n    \"cron_expression\": \"* * * * *\",\n    \"created_at\": {\n      \"Time\": \"2018-05-04T16:07:49.177496Z\",\n      \"Valid\": true\n    },\n    \"created_by\": \"system\",\n    \"updated_at\": {\n      \"Time\": \"2018-05-04T16:07:49.177499Z\",\n      \"Valid\": true\n    },\n    \"updated_by\": \"system\",\n    \"last_started_at_time\": {\n      \"Time\": \"0001-01-01T00:00:00Z\",\n      \"Valid\": false\n    },\n    \"last_started_by_host\": {\n      \"String\": \"\",\n      \"Valid\": false\n    },\n    \"last_completed_at_time\": {\n      \"Time\": \"0001-01-01T00:00:00Z\",\n      \"Valid\": false\n    },\n    \"last_completed_by_host\": {\n      \"String\": \"\",\n      \"Valid\": false\n    }\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fcronmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkirsche%2Fcronmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fcronmon/lists"}