How to "reload" or "restart" Agent

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).
Post Reply
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

How to "reload" or "restart" Agent

Post by Robert_in_MTL »

Hi,
I did a search to do what I need but I did not find my answer...

I have many agents on many servers, but only one seems to be reloaded once a month more or less. I do not beleive that it is related to the agent version or something...

Is there a way to send a command through a test to reload the agent lets say every saturday morning?

I understant that an agent reloading itself is tricky, does it send a stop and start command on simply a restart command?

If it can't be done then I will live with it and reload the agent myself.

Thank you guys!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Not sure I understand the problem. Why exactly do you want to reload agent?
Passive RMA? Active RMA? Version? OS? Windows? Linux? Service Pack?

There is no such command.
But if you want to restart RMA started as Windows service, probably you can use simple script (powershell, vbscript, BAT file)

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Hi,
thank you for the quick answer and sorry for being unclear.

I made a typo in my first post: instead of "but only one seems to be reloaded once a month more or less" I meant "but only one needs to be reloaded once a month more or less."

It is a passive agent version 4.10 on Windows Server 2003 standard SP2

The problem comes from the fact that the agent at some point in time looses the access to do some tests that require a user access on a server (in my case: disk space). The weird thing though is that the agent is on the same server to where it cant test disk space on. The agent is installed on server ABC but after a few weeks it gets "RMA: 301 - Logon failure: unknown username or bad password" to test disk space on itself.

Reloading the agent resolves the issue.

this is why I want to reload it on a weekly basis. I think that I will create a batchfile called from a NT Scheduled task but really, I think that the agent should flush or renew it's credentials at least once a day or every other day to ensure continuity.

I hope that my explanations are more clear now :)
Last edited by Robert_in_MTL on Wed May 09, 2012 7:27 am, edited 1 time in total.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

The problem comes from the farc that the agent at some point in time looses the access to do some tests that require a user access on a server (in my case: disk space). The weird thing though is that the agent is on the same server to where it cant test disk space on. The agent is installed on server ABC but after a few weeks it gets "RMA: 301 - Logon failure: unknown username or bad password" to test disk space on itself.
Are you checking mapped drive using Drive Free Space test? or you are using UNC test method and UNC path to shared resource?
Reloading the agent resolves the issue
I think you may place BAT file on system where RMA is running and start this script using HostMonitor, RMA and "Execute external program" action. E.g. HostMonitor may trigger this action when test returns "Unknown" status; agent will start script that will restart agent service itself...

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Thanks Alex,

Yes, I am using UNC test, but to a local drive.
I will create a "drive free space" test beside it to see if I chose the wrong one when I creasted these tests back then (a few years back)

Thank you for the hint for the batch file, this is a better solution if I ever need it :)

I am confident that the disk space test will resolve this issue right on.

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

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply