Link to USGS home
Surface Water Information--Data Scripts

lrgs_check

Name:
lrgs_check - An admin utility to automatically report if real-time processing is behind

This script was retired from active support in July 2008. This page is available for historical reference and to allow access to the code in case someone wants to try his or her hand in updating it. Use of the script without extensive testing is not recommended and the consequences are your own. If you feel this script was retired prematurely and would like to see it restored send email to GS-W OSW Scripts@usgs.gov.

Information:

This script checks the LRGS time (as reported by 'dbstat') with the current time. An email is sent to a set of users whenever data processing is found to be older than 1 hour behind. A stronger worded email is issued if the data is more than one day behind!

Installation:

Example crontab entry:
# Check on all satin queue datastreams and send email if the data gets more than an hour behind.
26     0-23   *   *   *   /usr/opt/nwis/local/util/lrgs_check dcascr

Script Language:
ksh

Requirements:

Original Author(s): Joel Johnson, California WSC

Note the original author is noted on this page for the purposes of giving credit only. Please address questions/comments to OSW (GS-W OSW Scripts@usgs.gov).

Known Problems/Limitations/Need Improvements:

Scripts:

Version 1.0: (posted Aug. 15, 2006)
lrgs_check download (Zip file = 1.8K)

Back to Scripts
[an error occurred while processing this directive]