cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 13

APM linux script help

Jump to solution

Hi there,

 

I've created a bash script that prints out the total file handles for a process you specify on the command line.   I've uploaded my script to the servers and I'm trying to have APM pass in the parameter (process name) but it's not working.  The script is called fileHandles.sh and I've placed it /usr/local/bin.  All I want to do is be able to specify the process on a per server basis and not have to include it inside the script.

 

I'm currently filling in the fields like this:

Command line:  /usr/local/bin/fileHandles.sh TestProcess

Working directory: /usr/local/bin

Script:  filler

I've tried moving the process name down to the script section and adding ${Script} to the command line but that doesn't work either.

 

Can someone please help point me in the right direction?

 

Thanks,

 

Brandon

0 Kudos
1 Solution
Level 13

I think I figured it out.  I believe APM is sending the parameter as well, but the script was not allowed to execute.  Once i fixed the permissions for the command inside the script it started working.

View solution in original post

0 Kudos
1 Reply
Level 13

I think I figured it out.  I believe APM is sending the parameter as well, but the script was not allowed to execute.  Once i fixed the permissions for the command inside the script it started working.

View solution in original post

0 Kudos