{"id":22302623,"url":"https://github.com/dataoneorg/d1_service_status_report","last_synced_at":"2026-03-19T22:21:37.561Z","repository":{"id":71253782,"uuid":"52089516","full_name":"DataONEorg/d1_service_status_report","owner":"DataONEorg","description":"Generates a report on Coordinating Node services for DataONE administrators.","archived":false,"fork":false,"pushed_at":"2023-06-15T01:06:02.000Z","size":53,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-01-30T21:17:11.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/DataONEorg.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":"2016-02-19T13:30:08.000Z","updated_at":"2023-06-15T01:03:42.000Z","dependencies_parsed_at":"2023-07-02T23:45:33.924Z","dependency_job_id":null,"html_url":"https://github.com/DataONEorg/d1_service_status_report","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fd1_service_status_report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fd1_service_status_report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fd1_service_status_report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataONEorg%2Fd1_service_status_report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataONEorg","download_url":"https://codeload.github.com/DataONEorg/d1_service_status_report/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245565034,"owners_count":20636225,"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":[],"created_at":"2024-12-03T18:40:20.516Z","updated_at":"2026-01-05T20:46:27.546Z","avatar_url":"https://github.com/DataONEorg.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d1_service_status_report\n\nGenerates a report on Coordinating Node services for DataONE administrators.\n\nThere are two parts to this product:\n\n1. A python script that gathers information and outputs a JSON file to a web \n   accessible location.\n\n2. A HTML + javascript page that loads the JSON from different CNs and renders\n   the data to provide a general status per environment.\n   \n\n## Installation\n\nTo install the data collection script the simplest is to use the provided fabric\nscript like:\n\n```\nexport HOSTS=\"cn-dev-ucsb-1.test.dataone.org,cn-dev-unm-1.test.dataone.org,cn-dev-orc-1.test.dataone.org\"\nfab -I -H ${HOSTS} deployToCN\n``` \n\nOr alternatively, by hand, copy the d1_service_status.py script to the target\nCN, then:\n\n```\nsudo cp d1_service_status.py /usr/local/bin\nsudo chmod a+x /usr/local/bin/d1_service_status.py\nsudo ln -s /usr/local/bin/d1_service_status.py /usr/local/bin/d1_service_status\n\n# verify operation\nd1_service_status -\n\n# Install cron task\nsudo vi /etc/cron.d/d1_service_status_cron\n#contents:\n\n# Generate some status info for admins\n# Generates JSON file /var/www/d1_service_status.json\n#\n* * * * * root /usr/local/bin/d1_service_status\n\nsudo chown root:root /etc/cron.d/d1_service_status_cron\nsudo chmod 711 /etc/cron.d/d1_service_status_cron\n```\n\nThe script should output to /var/www/d1_service_status.json which will be\naccessible at https://domain.name/d1_service_status.json\n\n\nTo install the web page:\n\n```\nmkdir /var/www/status\n# copy d1_service_status.html, css, and images into /var/www/status\nln -s /var/www/status/d1_service_status.html /var/www/status/index.html\n```\n\nApache config:\n\n```\nRewriteEngine on\nRewriteCond %{THE_REQUEST} \"/status/__ajaxproxy/https://cn(.*)dataone.org(.*)\"\nRewriteRule \"^/status/__ajaxproxy/(.*)$\" \"$1\" [P,L,NE]\n```\n\n## Operation\n\n\n```\n               +--------------------------+\n               |                          |\n               |  d1_service_status.html  |\n               |                          |\n               +------------^-------------+\n                            |\n                            //\n                            |\n                +-----------+------------+\n                |                        |\n                | d1_service_status.json |\n                |                        |\n                +-----------^------------+\n                            |\n                            |\n                 +----------+------------+\n                 |                       |\n            +----\u003e d1_service_status.py  \u003c--------+\n            |    |                       |        |\n            |    +-----------------------+        |\n            |                                     |\n            |                                     |\n+-----------+-----------+     +-------------------+----------------+\n|                       |     |                                    |\n|  Processing Config    |     |           Process List             |\n|                       |     |                                    |\n| /etc/dataone/process  |     |  ps ax -o pid,etime,pcpu,pmem,args |\n|                       |     |                                    |\n+-----------------------+     +------------------------------------+\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataoneorg%2Fd1_service_status_report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataoneorg%2Fd1_service_status_report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataoneorg%2Fd1_service_status_report/lists"}