[Xymon] xymon File has MD5 hash (No MD5 data) - should be

henrik at hswn.dk henrik at hswn.dk
Tue Feb 4 11:04:46 CET 2014


Den 2014-02-04 10:44, Ciprian Parfon skrev:
> Hello
>
> I came to you again, with hope that someone bumped into this problem
> and could give me some help.
>
> I have configured XYmon to check some files with MD5 but it doesn't
> work as expected. My Xymon server is 4.3.10. On the server I edited
> 'client-local.cfg' like so
>
> [dev]
> file:/etc/passwd:4736b427730af4ae0d5e11c098be4ff6
> file:/etc/shadow:aadf4e9f14a8cceab31d635f9ea5fdb8

You don't include the hash in client-local.cfg - you just tell the 
client what kind of hash it should calculate. So this should be

[dev]
file:/etc/passwd:md5
file:/etc/shadow:md5

> Also, I have in analisys.cfg the following entry:
>
> HOST=%dev*
> FILE /etc/passwd MD5=4736b427730af4ae0d5e11c098be4ff6 COLOR=red
> FILE /etc/shadow MD5=aadf4e9f14a8cceab31d635f9ea5fdb8 COLOR=red

Your pattern match will find a host name "dev", but it will in fact 
match any host that has "de" in the hostname. '*' is not a wilcard, it 
is a counter meaning "0 or more of the preceding character" - 'v' in 
this case - and you haven't anchored the 'de'.

You probably want
HOST=%^dev


Regards,
Henrik




More information about the Xymon mailing list