RMA question

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).
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

Yeah, I dont care about the result anyway. So should I uncheck the box which says "Treat Unknown status as Bad" ?
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

I have another question reg the same test. This is the current situation and I am kind of confused.

1. Using script manager I created a script which will execute a batch file on a remote machine's c-drive.
2. I setup a shell script test and selected the remote agent in the "test by" list. (to run the batch file on the remote machine c:\temp\attach.bat)
3. I setup an email alert with an attachment from the remote machine (It has been selected as c:\temp\attach.txt)

This is what is happening

The script runs fine and creates a result file but while attaching it is saying File attachment not found c:\temp\attach.txt. Somehow it is able to run the script though I haven't mapped the drive or anything but it is not able to find the attachment file. Can you please let me know what I have missed?

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yeah, I dont care about the result anyway. So should I uncheck the box which says "Treat Unknown status as Bad" ?
If you want to start action (send e-mail?) after script is executed, you don't need to uncheck this option. If you need just start a script, this option does not have any meaning.
3) I setup an email alert with an attachment from the remote machine
As you know RMA cannot execute "Send e-mail" action. It means this action will be executed by HostMonitor that in your case does not have access to remote system.

Truth to say I do not understand why do you need HostMonitor. You don't want to store scripts on central systems, you don't care about results and so on.
To start some script on a system you may use standard Windows scheduler. To send e-mail, you may use some freeware utility. Actually you may use SendMail utility that comes with IP-Tools but its not a free ($35 USD per license, $190 for 10 licenses).

Regards
Alex
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

We just wanted to use hostmonitor as much as possible for all our maintenance tasks instead of setting up too many tools for that. I just want to know if it is possible or not to attach files from remote systems. If it can be done only through UNC, how should I specify the file to be attached.

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So you want to manage some remote systems without providing access to that systems. What about following solution:
- allow read/write access to some auxiliary server (lets say "OpenServer")
- modify scripts located on tested systems (SystemA, SystemB, SystemC...). Script should copy generated file to OpenServer. Name of the file should be unique (I mean SystemA and SystemB should use different file name)
- setup HostMonitor to execute scripts on SystemA, SystemB... using agents installed on these system. And setup action profile to send e-mail from OpenServer using UNC path to the attachment (e.g. \\OpenServer\resourcename\filename).
BTW HostMonitor's system and OpenServer system - it can be the same machine.

Regards
Alex
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

Hi Alex,

I followed your solution and I set up the test just like the way you suggested. Everything works ok except that in the HostMonitor's system for the "Send e-mail" action I have specified a file with an UNC path for the attachment
like \\rmaagent1\c$\temp\attach.txt
The problem I am experiencing is sometimes I am getting the email with the file attached while other times I am getting an error message in the body of my email saying "Error-attachment file cannot be found \\rmaagent1\c$\temp\attach.txt" though the file exists. When this occurs, I have to go in again and click on browse and select the filename, then it works for sometime and again the same issue again. Can this be avoided?

Thanks a lot for your help Alex.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Problem is - "Send e-mail" action does not establish connection to remote system to retrieve attachment. If system is not connection, file is not accessible.
Solution? H'm... I think you need to create auxiliary UNC test that will check \\rmaagent1 system. Enable "Connect as" option, so HostMonitor will connect to the system.
Then setup this UNC test as master test for your script checks.

Regards
Alex
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

If you dont mind I want to ask you how to setup an auxillary test and use that in a master test.

Is there any help or documentation for that?

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sure, we have the manual, see manual.doc file in HostMonitor's directory.

To setup UNC test, click menu Test -> New -> UNC test.
To setup test as master test, select test that should be dependant, click [Edit] button and then click "Add master test" button (see bottom pane of the Test Properties dialog)

Regards
Alex
Post Reply