monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] technical difference between file and device in check statem


From: Martin Pala
Subject: Re: [monit] technical difference between file and device in check statement
Date: Tue, 30 Sep 2008 18:20:05 +0200

Yes - the "check device" serves for filesystem monitoring (hence it was renamed to "check filesystem" in monit-5.0). The set of available tests is difference (although some are shared as for example uid/gid test in case the device check uses device or mountpoint which allows to check the permissions) ... in case of "check device" you can use for example "if space usage > ... then action" test - this test is not available with "check file".

If you'll use normal file as device/filesystem path, the device/ filesystem check may try to find the filesystem where this file is stored and thus you won't monitor the file itself but the filesystem.

See Monit manual for details:
http://www.tildeslash.com/monit/doc/manual.php

Martin



On Sep 30, 2008, at 6:08 PM, Julian Thomé wrote:

Hello,

Is there a technical difference between using "check file" and "check device" in the special
case that the path points to a regular file ?

for example something like this (bsp.txt is a regular file) :

check file TEXTFILE with path /home/user/bsp.txt
  start = ...
  stop = ...

check device TEXTFILE with path /home/user/bsp.txt
  start = ...
  stop = ...



Thank you in advance
Julian Thomé


        
                
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

[Prev in Thread] Current Thread [Next in Thread]