This topic has been locked.
1 reply Latest Post - 2012-03-27T00:06:59Z by SystemAdmin
Pinned topic Custom sensor for file permissions of a config file
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Is it possible to build a custom sensor for tracking any file permission changes for a config file ?
Updated on 2012-03-27T00:06:59Z at 2012-03-27T00:06:59Z by SystemAdmin
SystemAdmin 110000D4XK152 PostsACCEPTED ANSWER
Re: Custom sensor for file permissions of a config file2012-03-27T00:06:59Z in response to bhargav38Take a look at the 7.2.1 FP1 User Guide, Chapter 5 - Extending Custom Servers.
What you want to do is create a command that will essentially capture the file permissions and then have taddm collect the output as a configuration file.
Assume the file you want to watch is /opt/IBM/tivoli/taddm/dist/etc/collation.properties
The commands that you could put in the directive file could be:
CMD:CONFCONTENT.collation_perms=ls -l /opt/IBM/tivoli/taddm/dist/etc/collation.properties | cut -f1,9 -d' '