Hi,

the problem was, that the procfs files have zero size on almost all platforms 
(except Solaris). Before the match test is performed, monit compares whether 
there is some content to test - because the size=0 it decided to skip as if 
there is no content.

The problem is fixed in Monit 5.4 which was release today.

Regards,
Martin


On Apr 26, 2012, at 10:51 AM, Gerrit Kühn wrote:

> Hi all,
> 
> I want to check if a certain kernel module is loaded under Linux, and
> tried this:
> 
> check file sasmodule with path /proc/modules
>        if not match "^g2sasfe.*Live" then alert
> 
> However, this appears to evaluate true (monit reports file as being
> "accessible") even if the module is not listed in /proc/modules.
> Any hints why this does not work, or how I can do this properly?
> 
> 
> cu
>  Gerrit
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


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

Reply via email to