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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Generates a report on Coordinating Node services for DataONE administrators.
There are two parts to this product:
A python script that gathers information and outputs a JSON file to a web accessible location.
A HTML + javascript page that loads the JSON from different CNs and renders the data to provide a general status per environment.
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]
+--------------------------+
| |
| 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 |
| | |
--------------------+ +------------------------------------+