monit-general
[Top][All Lists]
Advanced

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

Re: checking device files


From: Martin Pala
Subject: Re: checking device files
Date: Wed, 1 Sep 2010 14:58:03 +0200

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, <address@hidden> 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




reply via email to

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