Build 8300: Execute Program Action not working anymore
Hi,
We updated our build 8100 to build 8300 this morning. since the upgrade our custom "Execute program actions" have stopped working.
To find out what is going wrong I have created a very simple script called testthingie.sh
The contents of this script is:
#!/bin/bash
echo `date` >> /tmp/alert-test.log
The script sits in /home/appmon/AdventNet/ME/AppManager7/working and I've done a chmod 755 on it
I then created a new action with the following values:
Display Name = Test Script
Script Location = Local Server
Program to execute = testthingie.sh
Directory to execute the program = /home/appmon/AdventNet/ME/AppManager7/working
This results in the following error in the browser when clicking the "Execute" button:
The action Test script has failed.Action cannot be executed.Check whether the Directory and Program to Execute are given correctly
The logs show the following error:
4 Jul 2008 12:59:29:592 java.io.IOException: java.io.IOException: "testthingie.sh": not found
(removed the remainder of the message because this forum won't let me post it for some reason)
I have also tried the following:
Display Name = Test Script
Script Location = Local Server
Program to execute = /home/appmon/AdventNet/ME/AppManager7/working/testthingie.sh
Directory to execute the program = /home/appmon/AdventNet/ME/AppManager7/working
This results in the following message in the browser:
The action Test script has been successfully executed
and this message in the stdout log:
4 Jul 2008 13:04:58:515 MEAM: FAULT -->Executing command ..sh /home/appmon/AdventNet/ME/AppManager7/working/testthingie.sh from /home/appmon/AdventNet/ME/AppManager7/working
createSupportFile.sh
This has basically broken our sms alerts as we call a sms script using this facility.
Our AppManager instance is running on Fedora Core release 5 (Bordeaux), kernel 2.6.17-1.2157_FC5 #1 SMP
New to ADSelfService Plus?