<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://www.lib.ua.edu/wiki/digcoll/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Tracking automated scripts - Revision history</title>
		<link>http://www.lib.ua.edu/wiki/digcoll/index.php?title=Tracking_automated_scripts&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0</generator>
		<lastBuildDate>Sun, 19 May 2013 16:19:50 GMT</lastBuildDate>
		<item>
			<title>Jlderidder: /* Checkscripts */</title>
			<link>http://www.lib.ua.edu/wiki/digcoll/index.php?title=Tracking_automated_scripts&amp;diff=4351&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Checkscripts&lt;/span&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:25, 18 December 2012&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &amp;quot;checkscripts&amp;quot; MySQL database currently resides on the &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;content.lib.ua.edu &lt;/del&gt;server.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &amp;quot;checkscripts&amp;quot; MySQL database currently resides on the &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;libcontent &lt;/ins&gt;server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This database is composed (currently) of two tables:  &amp;quot;scripts&amp;quot; and &amp;quot;ran&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This database is composed (currently) of two tables:  &amp;quot;scripts&amp;quot; and &amp;quot;ran&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;As described in [[Watching_Our_Backs]],&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;As described in [[Watching_Our_Backs]],&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once a week, a script called &amp;quot;checkscripts&amp;quot; &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;on content.lib.ua.edu &lt;/del&gt;in /&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;home/jlderidder&lt;/del&gt;/scripts/cya looks through the entries in the checkscripts database for the past week, and compares them with the list of entries of existing cron scripts and when they are due to run. If any scripts did NOT run, which were scheduled, or any of them logged errors, this script sends emails to notify us of problems. Of course, this script also logs in with the checkscripts database to verify that it ran, and when.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once a week, a script called &amp;quot;checkscripts&amp;quot; in /&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;srv&lt;/ins&gt;/scripts/cya looks through the entries in the checkscripts database for the past week, and compares them with the list of entries of existing cron scripts and when they are due to run. If any scripts did NOT run, which were scheduled, or any of them logged errors, this script sends emails to notify us of problems. Of course, this script also logs in with the checkscripts database to verify that it ran, and when.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Then&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;, since any server can go down, and multitudes of error possibilities exist&lt;/del&gt;, a third script &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;on a third server &lt;/del&gt;(&amp;quot;checkscriptcheck&amp;quot; in /&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/del&gt;/&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;jlderidder&lt;/del&gt;/cya &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;on libapp.ua-net.ua.edu&lt;/del&gt;) runs to verify that the checkscripts script ran as it should. Again, this one sends us any errors, and it logs in with the checkscripts database.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Then, a third script (&amp;quot;checkscriptcheck&amp;quot; in /&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;srv&lt;/ins&gt;/&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;scripts&lt;/ins&gt;/cya) runs to verify that the checkscripts script ran as it should. Again, this one sends us any errors, and it logs in with the checkscripts database&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;If there's problems with servers going down frequently, these three scripts can reside on three different servers.  This helps track down what has/hasn't been taken care of, as well as notification of servers not functioning correctly&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 18 Dec 2012 21:25:35 GMT</pubDate>			<dc:creator>Jlderidder</dc:creator>			<comments>http://www.lib.ua.edu/wiki/digcoll/index.php/Talk:Tracking_automated_scripts</comments>		</item>
		<item>
			<title>Jlderidder: New page: == Checkscripts ==    The &quot;checkscripts&quot; MySQL database currently resides on the content.lib.ua.edu server. This database is composed (currently) of two tables:  &quot;scripts&quot; and &quot;ran&quot;.  The ...</title>
			<link>http://www.lib.ua.edu/wiki/digcoll/index.php?title=Tracking_automated_scripts&amp;diff=1226&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: == Checkscripts ==    The &amp;quot;checkscripts&amp;quot; MySQL database currently resides on the content.lib.ua.edu server. This database is composed (currently) of two tables:  &amp;quot;scripts&amp;quot; and &amp;quot;ran&amp;quot;.  The ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Checkscripts ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The &amp;quot;checkscripts&amp;quot; MySQL database currently resides on the content.lib.ua.edu server.&lt;br /&gt;
This database is composed (currently) of two tables:  &amp;quot;scripts&amp;quot; and &amp;quot;ran&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The scripts table contains the following information for each cron script that we depend upon for support of our infrastructure:&lt;br /&gt;
# id -- an identifying number, used by each script to log in when it runs&lt;br /&gt;
# scriptname  (name of the script)&lt;br /&gt;
# server on which it resides&lt;br /&gt;
# directory in which it exists&lt;br /&gt;
# cron -- the crontab specification for when it runs&lt;br /&gt;
# runswhen -- a textual explanation of when it runs&lt;br /&gt;
# doeswhat -- a textual explanation  of what the script does&lt;br /&gt;
# succeeds -- the name of scripts which must precede this one for it to do its job properly  (dependencies)&lt;br /&gt;
# precedes -- the name of scripts which this script must precede in order for them to do their job properly  (dependencies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;ran&amp;quot; table contains the entries made by each script after it completes its task, and before it exits.&lt;br /&gt;
It contains:&lt;br /&gt;
# an auto-incrementing number for the database entry&lt;br /&gt;
# scriptid, the number of the script, which corresponds to the id number in the scripts table&lt;br /&gt;
# datestamp  -- added automatically at the time of the entry&lt;br /&gt;
# errors -- a textual description of any errors encountered by the script during its run&lt;br /&gt;
&lt;br /&gt;
As described in [[Watching_Our_Backs]],&lt;br /&gt;
Once a week, a script called &amp;quot;checkscripts&amp;quot; on content.lib.ua.edu in /home/jlderidder/scripts/cya looks through the entries in the checkscripts database for the past week, and compares them with the list of entries of existing cron scripts and when they are due to run. If any scripts did NOT run, which were scheduled, or any of them logged errors, this script sends emails to notify us of problems. Of course, this script also logs in with the checkscripts database to verify that it ran, and when.&lt;br /&gt;
&lt;br /&gt;
Then, since any server can go down, and multitudes of error possibilities exist, a third script on a third server (&amp;quot;checkscriptcheck&amp;quot; in /home/jlderidder/cya on libapp.ua-net.ua.edu) runs to verify that the checkscripts script ran as it should. Again, this one sends us any errors, and it logs in with the checkscripts database.&lt;/div&gt;</description>
			<pubDate>Thu, 16 Jul 2009 14:03:50 GMT</pubDate>			<dc:creator>Jlderidder</dc:creator>			<comments>http://www.lib.ua.edu/wiki/digcoll/index.php/Talk:Tracking_automated_scripts</comments>		</item>
	</channel>
</rss>