In my template UNIX, i decide to make a remote_command where /etc/passwd file is changed.
I use : {Unix:vfs.file.cksum[/etc/passwd].diff(0)}>0 for the item
I wanted have :
{HOSTNAME}:"diff -uwB /etc/passwd- /etc/passwd |mail [email protected]" has remote command, in order to have the real difference between old file and new file.
However, trigger is identify by an hostname, and i can't use a generic soluce like this.
There are a soluce ? (I can't create 200 trigger and 200 remote_command, too long and not flexible)
I use : {Unix:vfs.file.cksum[/etc/passwd].diff(0)}>0 for the item
I wanted have :
{HOSTNAME}:"diff -uwB /etc/passwd- /etc/passwd |mail [email protected]" has remote command, in order to have the real difference between old file and new file.
However, trigger is identify by an hostname, and i can't use a generic soluce like this.
There are a soluce ? (I can't create 200 trigger and 200 remote_command, too long and not flexible)
Comment