Jump to content

Recommended Posts

Hey all, I have been trying for the last few weeks to get NSClient++'s NRPE to run a check which starts a batchfile containing a .au3 or .exe which in turn opens firefox, does a few mouse movements and searches and then closes. I am able to run it all localy via the windows command line but when I try it from my nagios server's line it returnes "CHECK_NRPE: Socket timeout after 10 seconds." Any ideas? This may not be the right area or audence for this question but I have tried everything I can think of or research. Another thing is that I can see a AutoIt3.exe start in windows services, and if I try it again another one pops up they do not however pop up on the task bar so the script is not running.

The script is as follows

#region ---Au3Recorder generated code Start (v3.3.7.0)  ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
; Load firefox
Run('C:Program Files (x86)Mozilla Firefoxfirefox.exe')
_WinWaitActivate("Mozilla Firefox Start Page - Mozilla Firefox","")
MouseClick("left",194,56,1,100)
;After mouse is in position, type and press enter, wait for site to load then scroll down 921 on the Y-axis
Send("{BACKSPACE}http{SHIFTDOWN}:{SHIFTUP}//www.hello-online.org/index.php{SHIFTDOWN}?{SHIFTUP}/topic/5486-slowestloadingwebsiteever/{ENTER}")
_WinWaitActivate("Slowest.Loading.Website.Ever. - Tech Forum - Hello!Online - Mozilla Firefox","")
MouseMove(1279,196,100)
MouseDown("left")
MouseMove(1287,921,30)
MouseUp("left")
exit (0)
Edited by slansing1991
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...