View previous topic :: View next topic |
Author |
Message |
Pablo Rönnebarth
Joined: 28 Feb 2014 Posts: 12
|
Posted: Thu Jun 26, 2014 1:24 am Post subject: RMA does not execute action on server 2012 |
|
|
Hi!
i have the RMA execute an external program to restart a router when a ping fails.
that worked wonderfully when the RMA was running on a win 7 machine.
now that machine was replaced (finally ) with a server 2012 install on new hardware.
since then the action is not executed anymore .
if i log on to the machine and execute by hand it works (so no compatibility issues with 2012).
in test info->quick log: triggered actions the action appears as done, however no action occurs.
the RMA install was copied over from the old "server", changed agent name and was up & running except that problem.
monitoring & actions are enabled in HM.
no other options were changed (except agent name). i double-checked the action properties.
HM is running on a server 2003, the RMA on a server 2012.
i tried running the RMA as local service (with desktop interaction) and as administrator to no avail.
is there any other info you need?
thanks |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jun 26, 2014 4:58 am Post subject: |
|
|
Quote: | in test info->quick log: triggered actions the action appears as done, however no action occurs. |
Then I assume command was executed.
Have you tried some simple command like "cmd /c copy c:\test\1.txt c:\test\2.txt"?
Why external program did not restart your router? What exactly command/script/code you used?
Regards
Alex |
|
Back to top |
|
|
Pablo Rönnebarth
Joined: 28 Feb 2014 Posts: 12
|
Posted: Mon Jun 30, 2014 3:05 am Post subject: |
|
|
hi!
thank you for the quick reply.
sorry but i could only answer now, had a lot to do.
cmd /c copy c:\test\1.txt c:\test\2.txt works.
and i have no idea why it does not restart my router (it works when executed/clicked normally).
it's a autohotkey script. it interacts with a desktop program (firefox), sending keypresses (the router does not have a telnet interface )
maybe it has something to do with the new security models present in win8/server 2012?
oh and i have to correct myself, it worked on a XP system. my bad |
|
Back to top |
|
|
Pablo Rönnebarth
Joined: 28 Feb 2014 Posts: 12
|
Posted: Mon Jun 30, 2014 3:08 am Post subject: ahk code |
|
|
Code: |
Process, Close, firefox.exe
Sleep, 2000
Run, "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "http://192.168.1.254/",max
sleep 10000
Send, {ENTER}
sleep 10000
Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}
sleep 10000
Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}
sleep 10000
Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}
Send, {TAB}{TAB}{TAB}{TAB}{ENTER}
sleep 25000
Send, {ALTDOWN}{F4}{ALTUP}
sleep 800
sleep 240000
Process, Close, firefox.exe
|
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Jun 30, 2014 5:11 am Post subject: |
|
|
Services cannot interact with desktop applications starting from Windows Vista.
Looks like you just need to send some specific HTTP request to your router? Then use HTTP request action
http://ks-soft.net/hostmon.eng/mframe.htm#actions.htm#actHTTP
Regards
Alex |
|
Back to top |
|
|
|