monit-general
[Top][All Lists]
Advanced

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

checking device files


From: Tim.Einmahl
Subject: checking device files
Date: Wed, 1 Sep 2010 13:22:08 +0200

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
 





reply via email to

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