<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://petersap.nl/SybaseWiki/index.php?action=history&amp;feed=atom&amp;title=RepServer_Errorlog_checker</id>
		<title>RepServer Errorlog checker - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://petersap.nl/SybaseWiki/index.php?action=history&amp;feed=atom&amp;title=RepServer_Errorlog_checker"/>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;action=history"/>
		<updated>2026-04-04T20:57:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1843&amp;oldid=prev</id>
		<title>Bobh at 19:37, 18 February 2009</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1843&amp;oldid=prev"/>
				<updated>2009-02-18T19:37:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:37, 18 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RSLOGFILE=&amp;quot;/PATH_TO_ERRORLOG_HERE/servername_rs.log&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; # !! modify for your environment&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RSLOGFILE=&amp;quot;/PATH_TO_ERRORLOG_HERE/servername_rs.log&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; # !! modify for your environment&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ADMINDIR=&amp;quot;/opt/home/sybase/admin&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  # !! modify for your environment&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ADMINDIR=&amp;quot;/opt/home/sybase/admin&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  # !! modify for your environment&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# static&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RSLOGMARKER=&amp;quot;$ADMINDIR/control_files/rserrlogmarker.dat&amp;quot;&amp;#160; &amp;#160; # !! need $ADMINDIR/control_files/ directory&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RSLOGMARKER=&amp;quot;$ADMINDIR/control_files/rserrlogmarker.dat&amp;quot;&amp;#160; &amp;#160; # !! need $ADMINDIR/control_files/ directory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RECIPIENTS=&amp;quot;user@domain.dom&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; # !! enter email address config here &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; #&amp;#160;  (separate with commas for multiple addresses)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# static&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TEMPFILE1=&amp;quot;$ADMINDIR/rslogchecker1.tmp&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  # transient file&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TEMPFILE1=&amp;quot;$ADMINDIR/rslogchecker1.tmp&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  # transient file&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TEMPFILE2=&amp;quot;$ADMINDIR/rslogchecker2.tmp&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  # transient file&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TEMPFILE2=&amp;quot;$ADMINDIR/rslogchecker2.tmp&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  # transient file&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MAILFILE=&amp;quot;$ADMINDIR/rslogchecker.mail&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; # transient file&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MAILFILE=&amp;quot;$ADMINDIR/rslogchecker.mail&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; # transient file&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RECIPIENTS=&amp;quot;user@domain.dom&amp;quot;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; # !! enter email address config here &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; #&amp;#160;  (separate with commas for multiple addresses)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SCRIPT_NAME=`basename $0`&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SCRIPT_NAME=`basename $0`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key website-mw_:diff:version:1.11a:oldid:1842:newid:1843 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bobh</name></author>	</entry>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1842&amp;oldid=prev</id>
		<title>Bobh at 19:35, 18 February 2009</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1842&amp;oldid=prev"/>
				<updated>2009-02-18T19:35:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:35, 18 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Script: rs_log_checker.sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Script: rs_log_checker.sh&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Author: Bob Holmes - email: cambob@gmail.com&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Author: Bob Holmes - email: cambob@gmail.com&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Date&amp;#160; : 08/05/2008&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Date&amp;#160; : 08/05/2008&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Version: 1.1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Version: 1.1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key website-mw_:diff:version:1.11a:oldid:1840:newid:1842 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bobh</name></author>	</entry>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1840&amp;oldid=prev</id>
		<title>Bobh at 18:22, 18 February 2009</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1840&amp;oldid=prev"/>
				<updated>2009-02-18T18:22:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:22, 18 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#end script&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#end script&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:RepServer]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key website-mw_:diff:version:1.11a:oldid:1839:newid:1840 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bobh</name></author>	</entry>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1839&amp;oldid=prev</id>
		<title>Bobh: Initial version.</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=RepServer_Errorlog_checker&amp;diff=1839&amp;oldid=prev"/>
				<updated>2009-02-18T18:17:19Z</updated>
		
		<summary type="html">&lt;p&gt;Initial version.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The script below is for monitoring the repserver errorlog - it works with any version of repserver and does not need to write to the errorlog itself in order to monitor it.  However, since it doesn't write to the errorlog, it does need a $ADMINDIR/control_files/ directory which you may wish to create as a non-transient file (rserrlogmarker.dat) is maintained there.&lt;br /&gt;
Also, as per the script notes, you can easily modify this script to monitor *any* log; be sure to give rserrlogmarker.dat and the other files in the config section different names or keep them elsewhere so that there is no conflict.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/ksh&lt;br /&gt;
#&lt;br /&gt;
# Script: rs_log_checker.sh&lt;br /&gt;
# Author: Bob Holmes - email: cambob@gmail.com)&lt;br /&gt;
# Date  : 08/05/2008&lt;br /&gt;
# Version: 1.1&lt;br /&gt;
# Usage : rs_log_checker.sh [v|V] (verbose mode)&lt;br /&gt;
# Description: Script for checking the repserver errorlog&lt;br /&gt;
# --------------------------&lt;br /&gt;
#    ***    Variables for customisation can be found by searching for &amp;quot;!!&amp;quot; ***&lt;br /&gt;
# --------------------------&lt;br /&gt;
# Modification history:&lt;br /&gt;
#&lt;br /&gt;
# --------------------------&lt;br /&gt;
# Enhancement notes:&lt;br /&gt;
# BobH: V1.0: Modified to re-create rserrlogmarker file if not found, then re-run automatically.&lt;br /&gt;
# BobH: V1.1: Updated for detecting a new log file and resetting rserrlogmarker if so.&lt;br /&gt;
# --------------------------&lt;br /&gt;
# Comments: This script can easily be modified to monitor any log, including ASE.&lt;br /&gt;
#           The log itself is never written to so this script maintains a control&lt;br /&gt;
#           file to keep track of the last line it checked.&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
#                           setup environment                                #&lt;br /&gt;
##############################################################################&lt;br /&gt;
HOSTNAME=`hostname`&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
#                           config variables                                 #&lt;br /&gt;
##############################################################################&lt;br /&gt;
# config&lt;br /&gt;
RSLOGFILE=&amp;quot;/PATH_TO_ERRORLOG_HERE/servername_rs.log&amp;quot;        # !! modify for your environment&lt;br /&gt;
ADMINDIR=&amp;quot;/opt/home/sybase/admin&amp;quot;                           # !! modify for your environment&lt;br /&gt;
&lt;br /&gt;
# static&lt;br /&gt;
RSLOGMARKER=&amp;quot;$ADMINDIR/control_files/rserrlogmarker.dat&amp;quot;    # !! need $ADMINDIR/control_files/ directory&lt;br /&gt;
TEMPFILE1=&amp;quot;$ADMINDIR/rslogchecker1.tmp&amp;quot;                     # transient file&lt;br /&gt;
TEMPFILE2=&amp;quot;$ADMINDIR/rslogchecker2.tmp&amp;quot;                     # transient file&lt;br /&gt;
MAILFILE=&amp;quot;$ADMINDIR/rslogchecker.mail&amp;quot;                      # transient file&lt;br /&gt;
RECIPIENTS=&amp;quot;user@domain.dom&amp;quot;                                # !! enter email address config here &lt;br /&gt;
                                                            #   (separate with commas for multiple addresses)&lt;br /&gt;
SCRIPT_NAME=`basename $0`&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
#                             main program                                   #&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# check location of errorlog&lt;br /&gt;
if [ ! -f $RSLOGFILE ]&lt;br /&gt;
then&lt;br /&gt;
   echo RS errorlog file not found. Please check config.&lt;br /&gt;
   exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# get log marker value from file (or otherwise create it)&lt;br /&gt;
# V1.1: marker is now a line number&lt;br /&gt;
if [ ! -f $RSLOGMARKER ]&lt;br /&gt;
then&lt;br /&gt;
   MARKER=$(cat -n $RSLOGFILE | tail -1 | awk '{print $1}')&lt;br /&gt;
   echo $MARKER &amp;gt; $RSLOGMARKER&lt;br /&gt;
   #echo &amp;quot;rs log marker reset&amp;quot;&lt;br /&gt;
   $SCRIPT_NAME # must re-run after marker file reset&lt;br /&gt;
   exit&lt;br /&gt;
else&lt;br /&gt;
   MARKER=$(cat $RSLOGMARKER)&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Compare number of lines in log file with current marker value to check&lt;br /&gt;
# if a new log has been created/repserver restarted.&lt;br /&gt;
if [ $(wc -l $RSLOGFILE | awk '{print $1}') -lt $MARKER ]&lt;br /&gt;
then&lt;br /&gt;
   # new log file created/repserver restarted&lt;br /&gt;
   printf &amp;quot;${SCRIPT_NAME}: New log file detected\n&amp;quot; &amp;gt; $TEMPFILE2&lt;br /&gt;
   RESTARTDT=$(head -1 $RSLOGFILE | awk '{print $2,$3}')&lt;br /&gt;
   printf &amp;quot;${SCRIPT_NAME}: Repserver restarted at: ${RESTARTDT}\n\n&amp;quot; &amp;gt;&amp;gt; $TEMPFILE2&lt;br /&gt;
   printf &amp;quot;Errors/Warnings from startup follow:\n&amp;quot; &amp;gt;&amp;gt; $TEMPFILE2&lt;br /&gt;
   printf &amp;quot;------------------------------------\n&amp;quot; &amp;gt;&amp;gt; $TEMPFILE2&lt;br /&gt;
   # pick out any errors/or warnings from log file:&lt;br /&gt;
   egrep &amp;quot;^E. |^W. &amp;quot; $RSLOGFILE &amp;gt;&amp;gt; $TEMPFILE2&lt;br /&gt;
   mailx -s &amp;quot;$HOSTNAME: Repserver restarted!&amp;quot; $RECIPIENTS &amp;lt; $TEMPFILE2&lt;br /&gt;
   rm $RSLOGMARKER # force reset of marker file&lt;br /&gt;
   rm $TEMPFILE2&lt;br /&gt;
   exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; = &amp;quot;V&amp;quot; ] || [ &amp;quot;$1&amp;quot; = &amp;quot;v&amp;quot; ] # verbose (diag) mode&lt;br /&gt;
then&lt;br /&gt;
  echo Current marker value is: $MARKER&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# increment the marker (line number) to avoid re-reading same last line&lt;br /&gt;
((MARKER=MARKER+1))&lt;br /&gt;
sed -n &amp;quot;$MARKER,$ p&amp;quot; $RSLOGFILE &amp;gt; $TEMPFILE1&lt;br /&gt;
######### next executable line checks for errors #########&lt;br /&gt;
######### add your search terms to the egrep below #######&lt;br /&gt;
EMSGS=$(egrep -c &amp;quot;^E\. |^W\. &amp;quot; $TEMPFILE1)&lt;br /&gt;
if [ $EMSGS -ne 0 ]&lt;br /&gt;
then&lt;br /&gt;
  if [ &amp;quot;$1&amp;quot; = &amp;quot;V&amp;quot; ] || [ &amp;quot;$1&amp;quot; = &amp;quot;v&amp;quot; ] # verbose (diag) mode&lt;br /&gt;
  then&lt;br /&gt;
     echo Error message found: $HOSTNAME: $EMSGS messages&lt;br /&gt;
     cat $TEMPFILE1&lt;br /&gt;
     echo END OF REPORT&lt;br /&gt;
  else&lt;br /&gt;
     cp $TEMPFILE1 $MAILFILE&lt;br /&gt;
     printf &amp;quot;-------CALLOUT SYBASE DBA - ON CALL----------------\n&amp;quot; &amp;gt;&amp;gt; $MAILFILE   # !! optional&lt;br /&gt;
     mailx -s &amp;quot;$HOSTNAME: $EMSGS errors found in repserver errorlog&amp;quot; $RECIPIENTS &amp;lt; $MAILFILE&lt;br /&gt;
  fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#update marker:&lt;br /&gt;
# Note: use line count from TEMPFILE1 + (MARKER-1) to avoid re-scanning the whole errorlog;&lt;br /&gt;
# cat/cp'ing large log files can cause load issues so we don't do that!&lt;br /&gt;
LINECOUNT=$(wc -l $TEMPFILE1 | awk '{print $1}')&lt;br /&gt;
((MARKER=MARKER+LINECOUNT-1))&lt;br /&gt;
echo $MARKER &amp;gt; $RSLOGMARKER&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; = &amp;quot;V&amp;quot; ] || [ &amp;quot;$1&amp;quot; = &amp;quot;v&amp;quot; ] # verbose (diag) mode&lt;br /&gt;
then&lt;br /&gt;
  echo New marker value is: $MARKER&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# housekeeping&lt;br /&gt;
if [ -e $TEMPFILE1 ]&lt;br /&gt;
then&lt;br /&gt;
  rm $TEMPFILE1&lt;br /&gt;
fi&lt;br /&gt;
if [ -e $TEMPFILE2 ]&lt;br /&gt;
then&lt;br /&gt;
  rm $TEMPFILE2&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#end script&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bobh</name></author>	</entry>

	</feed>