Xymon Mailing List Archive search

Test for file "noexist?"

4 messages in this thread

list Elizabeth Schwartz · Sun, 2 Oct 2011 18:07:02 -0400 ·
I am having trouble getting xymon to recognize the "noexist" flag. I
am getting the file OK but the test is always GREEN.
When the file exists, the test is OK, file exists
When I remove the file, the test stays green but clicking on the filename gives
[file:/home/xymon/TESTOK]
ERROR: No such file or directory

The file is in my client-local test and is picked up OK:

[netmon2.example.com]
file:/home/xymon/TESTOK:1024

And I have this in analysis.cfg:
#       FILE /home/xymon/TESTOK yellow noexist
#       FILE /home/xymon/TESTOK noexist yellow
        FILE /home/xymon/TESTOK YELLOW NOEXIST

Before I go through every possible permutation, please, what is the
right invocation? I want this test to return yellow if the file EXISTS

thanks Betsy
list Elizabeth Schwartz · Wed, 12 Oct 2011 11:32:39 -0400 ·
Still hoping to get this working, any thoughts? thanks Betsy

On Sun, Oct 2, 2011 at 6:07 PM, Elizabeth Schwartz
quoted from Elizabeth Schwartz
<user-c61747246f66@xymon.invalid> wrote:
I am having trouble getting xymon to recognize the "noexist" flag. I
am getting the file OK but the test is always GREEN.
When the file exists, the test is OK, file exists
When I remove the file, the test stays green but clicking on the filename gives
[file:/home/xymon/TESTOK]
ERROR: No such file or directory

The file is in my client-local test and is picked up OK:

[netmon2.example.com]
file:/home/xymon/TESTOK:1024

And I have this in analysis.cfg:
#       FILE /home/xymon/TESTOK yellow noexist
#       FILE /home/xymon/TESTOK noexist yellow
       FILE /home/xymon/TESTOK YELLOW NOEXIST

Before I go through every possible permutation, please, what is the
right invocation? I want this test to return yellow if the file EXISTS

thanks Betsy
list Greg Shea · Wed, 12 Oct 2011 11:48:46 -0400 ·
Hi Betsy,


Below is what I have to check for lock files and it works fine.

I have it check to see if the file has been around for 900 seconds or more.


Regards

Greg Shea

EMC Corporation


client-local.cfg:file:/apps/icsapp1/InCharge7/IP/smarts/local/script/ic-bak/ic-bak-monitor-AMPM.LOCK

analysis.cfg:        FILE /apps/icsapp1/InCharge7/IP/smarts/local/script/ic-bak/ic-bak-monitor-AMPM.LOCK red NOEXIST MTIME>900


[cid:image001.png at 01CC88D3.D76DDC40]
quoted from Elizabeth Schwartz


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Elizabeth Schwartz
Sent: Wednesday, October 12, 2011 11:33 AM
To: xymon at xymon.com
Subject: Re: [Xymon] Test for file "noexist?"


Still hoping to get this working, any thoughts? thanks Betsy


On Sun, Oct 2, 2011 at 6:07 PM, Elizabeth Schwartz <user-c61747246f66@xymon.invalid<mailto:user-c61747246f66@xymon.invalid>> wrote:
I am having trouble getting xymon to recognize the "noexist" flag. I
am getting the file OK but the test is always GREEN.
When the file exists, the test is OK, file exists When I remove the
file, the test stays green but clicking on the filename gives
[file:/home/xymon/TESTOK]
ERROR: No such file or directory
The file is in my client-local test and is picked up OK:
[netmon2.example.com]
file:/home/xymon/TESTOK:1024
And I have this in analysis.cfg:
#       FILE /home/xymon/TESTOK yellow noexist #       FILE
/home/xymon/TESTOK noexist yellow
       FILE /home/xymon/TESTOK YELLOW NOEXIST
Before I go through every possible permutation, please, what is the
right invocation? I want this test to return yellow if the file EXISTS
thanks Betsy
Attachments (1)
list Marten Vijn · Wed, 12 Oct 2011 19:04:46 +0200 ·
quoted from Elizabeth Schwartz
On Wed, 2011-10-12 at 11:32 -0400, Elizabeth Schwartz wrote:
Still hoping to get this working, any thoughts? thanks Betsy

On Sun, Oct 2, 2011 at 6:07 PM, Elizabeth Schwartz
<user-c61747246f66@xymon.invalid> wrote:
I am having trouble getting xymon to recognize the "noexist" flag. I
am getting the file OK but the test is always GREEN.
When the file exists, the test is OK, file exists
When I remove the file, the test stays green but clicking on the filename gives
[file:/home/xymon/TESTOK]
ERROR: No such file or directory

The file is in my client-local test and is picked up OK:

[netmon2.example.com]
file:/home/xymon/TESTOK:1024

And I have this in analysis.cfg:
#       FILE /home/xymon/TESTOK yellow noexist
#       FILE /home/xymon/TESTOK noexist yellow
       FILE /home/xymon/TESTOK YELLOW NOEXIST

client-local.cfg (on the server)

[bert]
file:/tmp/GO_YELLOW

hobbit-clients.cfg (eqv of analysis on the server)*

HOST=bert
        FILE /tmp/GO_YELLOW yellow noexist

* on the _first_ server when send to a range of servers.

cheers,
Marten
quoted from Greg Shea

Before I go through every possible permutation, please, what is the
right invocation? I want this test to return yellow if the file EXISTS

thanks Betsy