I am having trouble creating a trigger whose action will depend on the output of an item that executes a remote command.
The following is the item that I have created.
system.run[ls -l /bin /sbin /usr/sbin|md5sum|awk '{print $1}']
I would like to take the output of this command and check to see if the md5sum has changed. My item looks like this
{crs_linux_t:system.run[ls -l /bin /sbin /usr/sbin|md5sum|awk '{print $1}'].diff(0)}>0
I am not sure what I am doing wrong and help would be greatly appreciated
The following is the item that I have created.
system.run[ls -l /bin /sbin /usr/sbin|md5sum|awk '{print $1}']
I would like to take the output of this command and check to see if the md5sum has changed. My item looks like this
{crs_linux_t:system.run[ls -l /bin /sbin /usr/sbin|md5sum|awk '{print $1}'].diff(0)}>0
I am not sure what I am doing wrong and help would be greatly appreciated
Comment