File modification monitoring with checksums
-
Just did it (thanx to NetXMS team advices).
To monitor some file for changes (like /etc/passwd file):
- Add DCI File.Hash.CRC32(/path/to/file)
- Create event template (something like "Contents of %6 changed").
- Add threshold "diff with previous value" (1 sample) not equal (!=) to 0 to generate this event.
- Don't forget to put file name to Instance field.

This should work fine also for MD5 and SHA1 hashes, as string comparison return -1,0,1, so !=0 will do the same trick.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login