I am using OEM 12c R1 and want to use an os command as notification method. I wrote a shell script and placed the script on the machine where I have installed OEM. Now I provided the script with its absolute path in the text field of os command and tried creating a new notification method however while testing I got the following error
"Test failed: Error calling /<source_folder>/alertlog.sh: Cannot run program "/<source_folder>/alertlog.sh": java.io.IOException: error=2, No such file or directory (<host_name>:<port>_Management_Service)"
Can anyone please tell me where I should keep the os script to get read and run by oms? or what could be the correct steps of extending nitification methos as os command?
"You must deploy the OS Command or Script on each Management Service host machine that connects to the Management Repository. The OS Command is run as the user who started the Management Service.
The OS Command or Script should be deployed on the same location on each Management Service host machine. The OS Command should be an absolute path, for example, /u1/bin/logSeverity.sh. The command is run by the user who started the Management Service."
If you have multiple OMSes the easiest thing is to store it on the filesystem where your swlib is located so you only have to maintain one copy of the script. There's no official "deployment", just copy the file to that location (same path on each OMS) and give the path/file name in the Notification setup.