I am trying to setup a script notification with Performance Center, however, it doesn't appear to be working.
First, I can assure the script is located under the "NotificationScripts" directory, and it is executable globally.
Second, the calling of the script is verified in the log file with return code of zero, but it doesn't seem that the script is dumping any environmental variables into a output file at all.
Third, we made sure we enabled the notification script for ALL events, regardless of type, or severity. So, it's not possible that there is no events triggering the notification.
The output file is in the same directory, and the script should do a printenv and append to the output file. But no matter how many events we have seen, the output file size doesn't change, the modification time doesn't change. The content of the file doesn't change.
So, we have concluded the script action is not being called, or even if it's being called, it's not executing the script.
The documentation is written in a way that implies the script MUST be placed in the /opt/CA/PerformanceCenter/NotificationScripts directory.
This is different than the install home path, and when used the script is not working.
If we link from the /InstallHome/CA/PerformanceCenter/NotificationScripts directory back to the documented /opt/CA/PerformanceCenter/NotificationScripts directory the script starts to work.
All supported DX NetOps Performance Management releases
The documentation will be updated to better reference the required home of the script used by a Notification entry.
The correct location is the Performance Center home install path, whether that is default or custom.
It should refer to something like /InstallHome/CA/PerformanceCenter/NotificationScripts to imply the user should replace the first part of the path with their custom install home if not installed in the default home path.
In this case moving the script to the correct location in the install home path allowed it to function as designed.