<div dir="ltr"><div><div>No, it's not using "stat".  Instead, it's using a series of shell commands, and in some cases (such as for the "*time" and "group" lines) a bit of perl.  If you're interested, you can check how it's all done in the send_logfetch_file() function (from line 323).  This function essentially creates a sequence of commands that get sent to the shell on the remote client.<br><br></div>I have no idea why it's not working for Solaris.  But I can confirm that it's not working for my Solaris boxes also.  This means I can do some testing here and (I hope) come up with a fix.  Sorry I can't offer any more at this stage.<br><br></div>J<br><br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 June 2015 at 05:47, oliver <span dir="ltr"><<a href="mailto:ohemming@gmail.com" target="_blank">ohemming@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Jun 3, 2015 at 9:57 PM, Jeremy Laidman <<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>> wrote:<br>
>> 1) Should this be working or is it a limitation of xymon-rclient?<br>
><br>
><br>
> It's the latter, I'm afraid.  :-(<br>
><br>
> xymon-rclient is intended to (among other things) emulate logfetch, which is<br>
> where the md5 hashing is implemented.  I don't believe any part of Xymon<br>
> (client or server) uses the MD5 environment variable, so setting will have<br>
> no effect.<br>
<br>
</span>Thanks for confirming.  I missed your comments in the script about<br>
'hash field' because I was looking for md5 - d'oh.<br>
<br>
I've switched to checking file size instead and have this in my analysis.cfg:<br>
FILE /etc/sudoers red SIZE=1192<br>
<br>
It works for a linux client but not for a solaris one.  Is this a<br>
problem with Xymon's .../client/bin/xymonclient-sunos.sh file or<br>
something I need to modify in the xymon-rclient.sh script?<br>
<br>
If I click on the 'red' filename from a Solaris box, I see this:<br>
[file:/etc/sudoers]<br>
<br>
If I click on the 'green' filename from a Linux box, I see this:<br>
[file:/etc/sudoers]<br>
type:100000 (file)<br>
mode:440 (-r--r-----)<br>
linkcount:1<br>
owner:0 (root)<br>
group:0 (root)<br>
size:1192<br>
clock:1433446819<br>
atime:1433446799<br>
ctime:1433420119<br>
mtime:1433420119<br>
<br>
and I assumed this was output from 'stat' that the Solaris one is<br>
obviously missing<br>
<br>
I tried symlinking /usr/bin/stat to /usr/local/bin/stat on the Solaris<br>
box but it stays red.<br>
<br>
Any idea where to go from here?<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>