<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello!</p>
<p><br>
</p>
<p>I'm running a 3.4.99 Rancid installation version and while rancid is grabbing the configs and diffs correctly it is not sending an email notification if a device has not been reached for more than 24 hours.</p>
<p><br>
</p>
<p>Looking at the code it appears as if this code block from $home/bin/control_rancid isn't being triggered.  It also appears as if the echoes aren't going anywhere.</p>
<p><br>
</p>
<p><span style="font-size: 12pt;">--- code block ---</span><br>
</p>
<p></p>
<div># If any machines have not been reached within the last $OLDTIME</div>
<div># hours, mail out a list of them.</div>
<div>cd $DIR/configs</div>
<div>rm -f $DIR/routers.failed</div>
<div>if [ "X$OLDTIME" = "X" ] ; then</div>
<div>    OLDTIME=24</div>
<div>fi</div>
<div>perl -F; -ane "{\$t = (stat(\$F[0]))[9]; print \`ls -ld \$F[0]\`</div>
<div>        if (time() - \$t >= $OLDTIME*60*60);}" $devlistfile | sort -u > $DIR/routers.failed</div>
<div>if [ -s $DIR/routers.failed ] ; then</div>
<div>        (</div>
<div>          echo "To: $adminmailrcpt"</div>
<div>          echo "Subject: config fetcher problems - $GROUP"</div>
<div>          echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'</div>
<div>          echo ""</div>
<div>          echo "The following routers have not been successfully contacted for"</div>
<div>          echo "more than $OLDTIME hours."</div>
<div><br>
</div>
<div>          cat $DIR/routers.failed</div>
<div>        ) | $SENDMAIL -t $MAILOPTS</div>
<div>fi</div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">--- code block ---</span><br>
</div>
<br>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma; font-size:13px">
<div>
<div>
<p style="font-family:Tahoma; font-size:13px"></p>
<p style="font-family:Tahoma; font-size:13px"><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Can anyone help?  Thank
 you in advance,</span><br>
</p>
<p style="font-family:Tahoma; font-size:13px"><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Robert</span></p>
<p style="font-family:Tahoma; font-size:13px"><br>
</p>
<p>Robert Remsik</p>
<p>ACNS</p>
<p>Desk Phone: 970 491 7120</p>
<p>Robert.Remsik@colostate.edu</p>
<p style="font-family:Tahoma; font-size:13px"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>