[Xymon] how debug logfetch

Martin Flemming martin.flemming at desy.de
Mon Oct 8 23:30:44 CEST 2012


Hi,  thanks for response !

On Mon, 8 Oct 2012, Jeremy Laidman wrote:
> My first thought was that the Xymon client has no permissions to read the file.  But as it can read the directory, and the permissions reported on the file allow
> world-read access, this theory is incorrect.

yes, the permissions are  ok

> However, if you're running selinux, there might be a similar restriction.  

selinux is disabeld/not running

>Try logging in as the Xymon user and running "md5sum" on the file to see what happens.

.. already test it, hobbit/xymon can run md5sum and got a result

[bird037] ~ $ whoami
hobbit
[bird037] ~ $ sha1sum /usr/local/etc/post_install
1ad7bc5d363dd6896f3f893402c93fb96d6fed69  /usr/local/etc/post_install
[bird037] ~ $ md5sum /usr/local/etc/post_install
5a6bdac94e99d42723303330b50cc5ba  /usr/local/etc/post_install
[bird037] ~ $


> 
> Or, try using a different hash.

Yep, that i'm testing in this moment, but unfortunatley got the same 
result :-(

Alert with: 
red /usr/local/etc/post_install
File has MD5 hash (No MD5 data)  - should be 5a6bdac94e99d42723303330b50cc5ba
File has SHA1 hash (No SHA1 data)  - should be 1ad7bc5d363dd6896f3f893402c93fb96d6fed69


  martin

> 
> J
> 
> 
> On 7 October 2012 01:32, <martin.flemming at desy.de> wrote:
>
>       Hi !
>
>       I've got an problem with one host to get the md5sum of a file
>       which is distributed also on several other machines,
>       where the file-md5-check runs without any problem ....
>
>       bad machine:
>
>       Evrythin seems to be ok
>
>       bird037] /usr/lib/hobbit/client # cat tmp/logfetch.bird037.cfg
>       file:/usr/local/etc/post_install:md5
>       file:/etc/krb5.keytab:md5
> 
>
>       but:
>
>       [bird037] /usr/lib/hobbit/client # bin/logfetch tmp/logfetch.bird037.cfg tmp/logfetch.bird037.status
>       [file:/etc/krb5.keytab]
>       type:100000 (file)
>       mode:600 (-rw-------)
>       linkcount:1
>       owner:0 (root)
>       group:0 (root)
>       size:428
>       clock:1349535747 (2012/10/06-17:02:27)
>       atime:1349535719 (2012/10/06-17:01:59)
>       ctime:1322576461 (2011/11/29-15:21:01)
>       mtime:1281428590 (2010/08/10-10:23:10)
>       md5:346b7a4901fe2eaa270c76bd40d33aa4
>
>       [file:/usr/local/etc/post_install]
>       type:100000 (file)
>       mode:555 (-r-xr-xr-x)
>       linkcount:1
>       owner:2002 (finnern)
>       group:1000 (it)
>       size:19981
>       clock:1349535747 (2012/10/06-17:02:27)
>       atime:1349533938 (2012/10/06-16:32:18)
>       ctime:1346664822 (2012/09/03-11:33:42)
>       mtime:1325599284 (2012/01/03-15:01:24)
>
>       but in reality i've got no md5sum for this file and consequentially an alert-mail :-(
>
>       Got anybody an hint how to debug/solve this error ?
>
>       thanks & cheers
>
>              Martin
>
>       _______________________________________________
>       Xymon mailing list
>       Xymon at xymon.com
>       http://lists.xymon.com/mailman/listinfo/xymon
> 
> 
> 
>

Gruss

        Martin Flemming


______________________________________________________
Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : 040 - 8998 - 4667
22603 Hamburg      mail   : martin.flemming at desy.de
______________________________________________________


More information about the Xymon mailing list