Custom Reporting with parent_end_notify
I have created a custom Perl script to handle notifications of backup job alerts, but I am having rough time actually getting it processed!
For example, in parent_end_notify, I have:
@ECHO C:\Perl64\bin\perl.exe C:\NetBackup\Scripts\BackupExitNotify.pl %1 %2 %3 %4 %5 > C:\Temp\parent_end_notify.txt
C:\Perl64\bin\perl.exe C:\NetBackup\Scripts\BackupExitNotify.pl %1 %2 %3 %4 %5
The first line is simply a debug line that I am using to figure out what is actually ocurring... And believe it or not, it is the ONLY one that is working! As to the second line, the actual notification script, this command is completely skipped. I have debug code plastered all in that script and none of those are ever triggered (even a "hello world" at the beginning of the file is never processed).
I can run this perl script from the command line and from a scheduled task (as the Local System account) and it works fine -- but, when I put it into the parent_end_notify or backup_end_notify scripts, the script call is completely ignored.
For the record, I have also tried running cmd /C <perl script> from within either NBU end script to no avail...
And in case it helps, here is the output of the @ECHO line from above after being called from parent_end_notify:
C:\Perl64\bin\perl.exe C:\NetBackup\Scripts\BackupExitNotify.pl XXXBACKUP1 FILE-TO-TAPE FULL-Yearly FULL 0
(Copy and paste this right to the command line and it works fine!!, but the perl script was never triggered by the script).
Any way to debug the notification script?
Thanks so much!