[Xymon] file monitoring
Ralph Mitchell
ralphmitchell at gmail.com
Sat Jan 7 20:59:22 CET 2012
On Tue, Jan 3, 2012 at 3:09 AM, Henrik Størner <henrik at hswn.dk> wrote:
> On 03-01-2012 08:32, Moodley, Nelandran N wrote:
>
>> I’m trying to monitor all file (permissions) of all files in a directory
>> viz:/var/adm.
>>
>> I have the following entries in client-local.cfg
>>
>> [sunos]
>> log:/var/adm/%.*:10240
>> log:/var/adm/messages %ERROR|CRIT COLOR=red
>> log:/var/adm/messages %WARNING|NOTICE COLOR=yellow IGNORE=lpr
>>
>
> First, You should only use "log" for log-files, i.e. files where you want
> to have the actual contents of the files sent to Xymon for checking. If you
> only want to monitor file permissions, then use a "file:" definition
> instead.
>
> Second, you cannot use wild-card filenames in the client-local.cfg file.
> As the man-page says:
>
> "If you want to check multiple files using a wildcard, you must use a
> command to generate the filenames. Putting wildcards directly into the
> file: entry will not work."
>
> So something like this should do the trick:
>
> file:`ls /var/adm/`
>
I was wondering - is it (or could it become) possible to enter wildcard
hostnames? Something like:
[www.*.domain.com]
file:/var/log/xxx.log
with the intention that the file: and log: entries be sent to any host
matching the wildcard.
Thanks,
Ralph Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120107/aaaece02/attachment.html>
More information about the Xymon
mailing list