Xymon Mailing List Archive search

FILES in analysis.cfg

list Roland Soderstrom
Mon, 17 Feb 2014 21:48:03 +0000
Message-Id: <user-f340d3e03cf1@xymon.invalid>

Hi,

I started monitoring some files.
I can't really understand how this works.
Xymon 4.3.10 on Solaris 10

client-local.cfg:
[sunos]
file:`ls -1 /var/tmp/sys-heartbeat-*`

analysis.cfg:
HOST=myhost
          FILE /var/tmp/sys-heartbeat-myhost red MTIME<3700
          FILE /var/tmp/sys-heartbeat-testing red MTIME<3700

On myhost I got a file /var/tmp/sys-heartbeat-myhost but /var/tmp/sys-heartbeat-testing is missing (for testing)
If sys-heartbeat-myhost is older than 3700 second the files test goes red.
If sys-heartbeat-testing doesn't exist  nothing happens at all.
The sys-heartbeat-testing line does not show up on the test but sys-heartbeat-myhost does.
Clicking on the sys-heartbeat-myhost shows me all the file data.

The syntax in the manual states.
FILE filename [color] [things to check] [TRACK]
noexist
    triggers a warning if the file exists. By default, a warning is triggered for files that have a FILE entry, but which do not exist.
That should mean that if the file doesn't exist it should go red.

In the examples in analysis.cfg the color is in another spot.
#             Example: Check that the /var/log/messages file is not empty and was updated
#                      within the past 10 minutes, and go yellow if either fails:
#                 FILE /var/log/messages SIZE>0 MTIME<600 yellow
I guess that is just a typo.
I have tried both and it seems it doesn't matter.

What am I doing wrong?


-      Roland Soderstrrom