Hello!
I have a ManagementPack for a Linux-Application where I have to discover the "Node-Name" of a running Application
The command is.
sh -c "find /app/instance/ -type f -name 'test-*.service' | sed -e 's#\(\/app\/instance\/\)\(.*\)\(\/test-.*\/.*\.service\)#\2#' | sort | uniq"
Result:
test-node-1
But if SCOM is running the discovery, the command after first "|" is cutting. So I would get for result:
/app/instance/test-node-1/test-.../bin/test-....service
/app/instance/test-node-1/test-.../bin/test-....service
/app/instance/test-node-1/test-.../bin/test-....service
/app/instance/test-node-1/test-.../bin/test-....service
/app/instance/test-node-1/test-.../bin/test-....service
/app/instance/test-node-1/test-.../bin/test-....service
I want to discover the Nodename in "test-node-1". Is their a problem with pipe in SCOM? Another discovery with a pipe I don't have any problems.
rg
hansi