Hi,

the "check file" tests, whether the monitored file is regular file. The 
/dev/ipmi0 will be most probably "character" device so the check file will 
report error.

We should probably extend the file check to allow specification of the expected 
file type (regular file by default).

Regards,
Martin


On Sep 1, 2010, at 1:22 PM, <[email protected]> wrote:

> Hi,
> 
> I would like to test the permission and the gid of a device file which
> is not a block device for a filesystem.
> 
> 
> When I try
> 
>   check file dev-ipmi0 with path /dev/ipmi0
>   if failed permission 660 then
>   exec "/bin/chgrp nagios /dev/ipmi0;/bin/chmod 660 /dev/ipmi0"
> 
> "monit -t" is OK, but "monit summary" shows
> 
> File 'dev-ipmi0' Invalid type
> 
> 
> Is there a way to achieve the test ?
> 
> 
> 
> Best regards
> 
> Tim
> 
> 
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general


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

Reply via email to