DataONEorg/d1_service_status_report

Name: d1_service_status_report

Owner: DataONE

Description: Generates a report on Coordinating Node services for DataONE administrators.

Created: 2016-02-19 13:30:08.0

Updated: 2016-02-22 14:31:28.0

Pushed: 2017-05-30 13:48:05.0

Homepage: null

Size: 48

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

d1_service_status_report

Generates a report on Coordinating Node services for DataONE administrators.

There are two parts to this product:

  1. A python script that gathers information and outputs a JSON file to a web accessible location.

  2. A HTML + javascript page that loads the JSON from different CNs and renders the data to provide a general status per environment.

Installation

To install the data collection script the simplest is to use the provided fabric script like:

rt HOSTS="cn-dev-ucsb-1.test.dataone.org,cn-dev-unm-1.test.dataone.org,cn-dev-orc-1.test.dataone.org"
-I -H ${HOSTS} deployToCN

Or alternatively, by hand, copy the d1_service_status.py script to the target CN, then:

 cp d1_service_status.py /usr/local/bin
 chmod a+x /usr/local/bin/d1_service_status.py
 ln -s /usr/local/bin/d1_service_status.py /usr/local/bin/d1_service_status

rify operation
ervice_status -

stall cron task
 vi /etc/cron.d/d1_service_status_cron
tents:

nerate some status info for admins
nerates JSON file /var/www/d1_service_status.json

* * * root /usr/local/bin/d1_service_status

 chown root:root /etc/cron.d/d1_service_status_cron
 chmod 711 /etc/cron.d/d1_service_status_cron

The script should output to /var/www/d1_service_status.json which will be accessible at https://domain.name/d1_service_status.json

To install the web page:

r /var/www/status
py d1_service_status.html, css, and images into /var/www/status
s /var/www/status/d1_service_status.html /var/www/status/index.html

Apache config:

iteEngine on
iteCond %{THE_REQUEST} "/status/__ajaxproxy/https://cn(.*)dataone.org(.*)"
iteRule "^/status/__ajaxproxy/(.*)$" "$1" [P,L,NE]
Operation
           +--------------------------+
           |                          |
           |  d1_service_status.html  |
           |                          |
           +------------^-------------+
                        |
                        //
                        |
            +-----------+------------+
            |                        |
            | d1_service_status.json |
            |                        |
            +-----------^------------+
                        |
                        |
             +----------+------------+
             |                       |
        +----> d1_service_status.py  <--------+
        |    |                       |        |
        |    +-----------------------+        |
        |                                     |
        |                                     |
--------+-----------+     +-------------------+----------------+
                    |     |                                    |
rocessing Config    |     |           Process List             |
                    |     |                                    |
tc/dataone/process  |     |  ps ax -o pid,etime,pcpu,pmem,args |
                    |     |                                    |
--------------------+     +------------------------------------+

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.