RMA external program test problem

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
mjparr
Posts: 13
Joined: Wed Jan 07, 2004 11:37 am
Location: Westport, CT
Contact:

Please tell me you are kidding

Post by mjparr »

Please tell me you are kidding
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I am not.
But I tried to start RMA in service mode under user account (instead of LocalSystem) and it works fine. RMA in application mode works fine as well.
So, it looks like some permission issue. But why??

Regards
Alex
Robert
Posts: 2
Joined: Tue Aug 31, 2004 3:13 am

Post by Robert »

Hello,
I had exectly same problem: I was unable to run my own .cmd file through RMA agent (rma: 301 - The directory name is invalid). RMA agent is running under domain account and application mode doesn't help too.
I resolved this issue by using filemon. I had to copy cmd.exe into RMA folder (c:\Program Files\HostMonitor4\RMA-Win\) and had to create directory c:\hostmon. Don't ask me why, but it works now. :D
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Interesting... May be Path and ComSpec environ variables do not contain path to cmd.exe (%SystemRoot%\system32\ by default)?

Regards
Alex
Robert
Posts: 2
Joined: Tue Aug 31, 2004 3:13 am

Post by Robert »

I tested it a bit more. cmd.exe doesn't have to be in agent folder. I have got file not found result in filemon but after that %path comes into play and everythink works:

Code: Select all

9:05:32	rma.exe:3432	QUERY INFORMATION	C:\Program Files\HostMonitor4\RMA-Win\cmd.exe	FILE NOT FOUND	Attributes: Error	
9:05:32	rma.exe:3432	QUERY INFORMATION	C:\WINDOWS\system32\cmd.exe	SUCCESS	Attributes: A	
9:05:32	rma.exe:3432	QUERY INFORMATION	C:\WINDOWS\system32\cmd.exe	SUCCESS	Attributes: A	
9:05:32	rma.exe:3432	OPEN	C:\WINDOWS\system32\cmd.exe	SUCCESS	Options: Open  Access: All	

But when I remove empty folder c:\hostmon test stop working and error 301 (The directory name is invalid) is back.

Code: Select all

9:02:13	rma.exe:3432	QUERY INFORMATION	C:\bat\logparser.cmd	SUCCESS	Attributes: A	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\bat\logparser.cmd	SUCCESS	Attributes: A	
9:02:13	rma.exe:3432	OPEN	C:\bat\logparser.cmd	SUCCESS	Options: Open  Access: All	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\bat\logparser.cmd	SUCCESS	Length: 281	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\bat\logparser.cmd	SUCCESS	Attributes: A	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\bat\logparser.cmd	SUCCESS	Length: 281	
9:02:13	rma.exe:3432	CLOSE	C:\bat\logparser.cmd	SUCCESS		
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\Program Files\HostMonitor4\RMA-Win\cmd.exe	FILE NOT FOUND	Attributes: Error	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\WINDOWS\system32\cmd.exe	SUCCESS	Attributes: A	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\WINDOWS\system32\cmd.exe	SUCCESS	Attributes: A	
9:02:13	rma.exe:3432	OPEN	C:\WINDOWS\system32\cmd.exe	SUCCESS	Options: Open  Access: All	
9:02:13	cmd.exe:3432	QUERY INFORMATION	C:\WINDOWS\system32\cmd.exe	BUFFER OVERFLOW	FileNameInformation	
9:02:13	cmd.exe:3432	QUERY INFORMATION	C:\WINDOWS\system32\cmd.exe	SUCCESS	FileNameInformation	
9:02:13	rma.exe:3432	OPEN	C:\WINDOWS\system32\cmd.exe.Manifest	FILE NOT FOUND	Options: Open  Access: All	
9:02:13	rma.exe:3432	QUERY INFORMATION	C:\hostmonitor\	FILE NOT FOUND	Attributes: Error	
9:02:13	rma.exe:3432	CLOSE	C:\WINDOWS\system32\cmd.exe	SUCCESS		
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Thanks to your help, I found where problem is. Update available at www.ks-soft.net/download/rma121.zip

Regards
Alex
Post Reply