Alex,
I'm having the same issue, but after following instructions
you gave above, I still get the error message:
"
RMA: 301 - Script execution error: exec error: Permission denied"
What other permissions could I have wrong? See test particulars below:
Method = ShellScript
;--- Common properties ---
;DestFolder = Root\C3 Tech Services\Web Services\Rackspace Web 02\
RMAgent = Rackspace Web02
Title = RS-WEB02 - Free Memory
Comment = SYSTEM: Mem Free: 1024
RelatedURL =
CmntPattern = %path%: %object%
ScheduleMode= Regular
Schedule = 7 Days, 24 Hours
Interval = 600
Alerts = Low Memory
ReverseAlert= No
UnknownIsBad= No
WarningIsBad= No
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
Script = SYSTEM: Mem Free||AIX/BSD/Linux/Solaris
Params = 1024
Timeout = 15
UseMacros = Yes
RMA Agent version is
rma128_lin_x64
I start RMA with the following line in rc.local:
/usr/sbin/rma/rma /usr/sbin/rma/rma.ini
Here are current permissions in rma folder:
$ ls -l /usr/sbin/rma
total 460
-rwxrwxrwx 1 root root 807 Jul 17 09:38 cpu.sh
-rwxrwxrwx 1 root root 12987 Jul 17 09:38 INSTALL
-rwxrwxrwx 1 root root 4641 Jul 17 09:38 LICENSE
-rw-r--r-- 1 root root 78604 Jul 17 09:56 log_verbose.txt
-rwxrwxrwx 1 root root 787 Jul 17 09:38 proccnt.sh
-rwxrwxrwx 1 root root 543 Jul 17 09:38 proclist.sh
-rwxrwxrwx 1 root root 299 Jul 17 09:38 qnx_cpu.sh
-rwxrwxrwx 1 root root 2996 Jul 17 09:38 README
-rwxrwxrwx 1 root root 229175 Jul 17 09:38 rma
-rwxrwxrwx 1 root root 7627 Apr 21 07:26 rma.ini
and permission on the rma folder itself:
drwxrwxrwx 2 root root 4096 Apr 23 03:11 rma
and process info:
$ ps -eF | grep rma
root 22210 1 0 8594 1000 0 09:39 ? 00:00:02 /usr/sbin/rma/rma -d -v /usr/sbin/rma/rma.ini
When I run script manually, it appears to work:
$ cat /proc/meminfo | awk '$1=="MemFree:"{print $2;exit}'
430300
Maybe MEMINFO itself is the problem?
$ ls -l /proc/meminfo
-r--r--r-- 1 root root 0 Jul 17 10:22 /proc/meminfo
Finally, system is:
$ uname -a
Linux 986717-web2.
www.mycorp.com 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:58:24 EST 2009 x86_64 x86_64 x86_64 GNU/Linux