<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Hi Betsy,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Below is what I have to check for lock files and it works fine.  <o:p></o:p></p><p class=MsoPlainText>I have it check to see if the file has been around for 900 seconds or more.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Regards<o:p></o:p></p><p class=MsoPlainText>Greg Shea<o:p></o:p></p><p class=MsoPlainText>EMC Corporation<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>client-local.cfg:file:/apps/icsapp1/InCharge7/IP/smarts/local/script/ic-bak/ic-bak-monitor-AMPM.LOCK<o:p></o:p></p><p class=MsoPlainText>analysis.cfg:        FILE /apps/icsapp1/InCharge7/IP/smarts/local/script/ic-bak/ic-bak-monitor-AMPM.LOCK red NOEXIST MTIME>900<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><img width=918 height=269 id="Picture_x0020_1" src="cid:image001.png@01CC88D3.D76DDC40"><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>-----Original Message-----<br>From: xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com] On Behalf Of Elizabeth Schwartz<br>Sent: Wednesday, October 12, 2011 11:33 AM<br>To: xymon@xymon.com<br>Subject: Re: [Xymon] Test for file "noexist?"</p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Still hoping to get this working, any thoughts? thanks Betsy<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>On Sun, Oct 2, 2011 at 6:07 PM, Elizabeth Schwartz <<a href="mailto:betsy.schwartz@gmail.com"><span style='color:windowtext;text-decoration:none'>betsy.schwartz@gmail.com</span></a>> wrote:<o:p></o:p></p><p class=MsoPlainText>> I am having trouble getting xymon to recognize the "noexist" flag. I <o:p></o:p></p><p class=MsoPlainText>> am getting the file OK but the test is always GREEN.<o:p></o:p></p><p class=MsoPlainText>> When the file exists, the test is OK, file exists When I remove the <o:p></o:p></p><p class=MsoPlainText>> file, the test stays green but clicking on the filename gives <o:p></o:p></p><p class=MsoPlainText>> [file:/home/xymon/TESTOK]<o:p></o:p></p><p class=MsoPlainText>> ERROR: No such file or directory<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> The file is in my client-local test and is picked up OK:<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> [netmon2.example.com]<o:p></o:p></p><p class=MsoPlainText>> file:/home/xymon/TESTOK:1024<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> And I have this in analysis.cfg:<o:p></o:p></p><p class=MsoPlainText>> #       FILE /home/xymon/TESTOK yellow noexist #       FILE <o:p></o:p></p><p class=MsoPlainText>> /home/xymon/TESTOK noexist yellow<o:p></o:p></p><p class=MsoPlainText>>        FILE /home/xymon/TESTOK YELLOW NOEXIST<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> Before I go through every possible permutation, please, what is the <o:p></o:p></p><p class=MsoPlainText>> right invocation? I want this test to return yellow if the file EXISTS<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>> thanks Betsy<o:p></o:p></p><p class=MsoPlainText>><o:p> </o:p></p><p class=MsoPlainText>_______________________________________________<o:p></o:p></p><p class=MsoPlainText>Xymon mailing list<o:p></o:p></p><p class=MsoPlainText><a href="mailto:Xymon@xymon.com"><span style='color:windowtext;text-decoration:none'>Xymon@xymon.com</span></a><o:p></o:p></p><p class=MsoPlainText><a href="http://lists.xymon.com/mailman/listinfo/xymon"><span style='color:windowtext;text-decoration:none'>http://lists.xymon.com/mailman/listinfo/xymon</span></a><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p></div></body></html>