[Xymon] testing group owner on a file

Steve Holmes sholmes42 at mac.com
Thu Feb 2 18:01:54 CET 2012


[Note: still running 4.2.3]

I have a file definition:

FILE /usr/sbin/sendmail.sendmail GROUP:51 yellow

for our Linux servers.

However, it seems to not be working. On several hosts the file data looks
like:

[file:/usr/sbin/sendmail.sendmail]
type:100000 (file)
mode:2755 (-rwxr-sr-x)
linkcount:1
owner:0 (root)
group:25 (smmsp)
size:806460
clock:1328201361 (2012/02/02-11:49:21)
atime:1328201173 (2012/02/02-11:46:13)
ctime:1316579762 (2011/09/21-00:36:02)
mtime:1311839803 (2011/07/28-03:56:43)


Which I think should throw a warning.

At one point I tried GROUPID=51, but that didn't work either and failed
even worse by complaining that the group owner should be "D=51", so it
appears to just be looking for the keyword GROUP and then skipping the next
character and using the remainder of the string for the id (numeric or
symbolic). But, still, it isn't complaining about the group id being 25
when we want it to be 51.

Why doesn't it work as expected?

Thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120202/c5e75be7/attachment.html>


More information about the Xymon mailing list