Topic
1 reply Latest Post - ‏2012-03-27T00:06:59Z by SystemAdmin
bhargav38
bhargav38
3 Posts
ACCEPTED ANSWER

Pinned topic Custom sensor for file permissions of a config file

‏2012-03-26T17:29:09Z |
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
    SystemAdmin
    152 Posts
    ACCEPTED ANSWER

    Re: Custom sensor for file permissions of a config file

    ‏2012-03-27T00:06:59Z  in response to bhargav38
    Take 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' '