Page 1 of 1
can I use this app to create my own server monitoring tool
Posted: Tue Mar 19, 2013 9:28 pm
by dlewis61
I have several websites. I'd like to create my own server monitoring tool. I have a copy of Robotask. Can I do that? So the output is sent to me via email or text?
Re: can I use this app to create my own server monitoring to
Posted: Wed Mar 20, 2013 8:45 am
by Oleg
See the example below.
This task retrieves the text of webpage and assign it to variable.
Next, you can see it, put it into email, save to file, analyse it, and so on.
If you want to start the task automatically you can attach some trigger to the task (for example
Cyclic event)
If you use the address of inaccessible site you will get the text with error message.
Of course you can monitor the list of sites in the loop. (see
Text loop for this purpose)
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|2099193306
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task101"
Hide=INTEGER|0
ID=INTEGER|1820536911
LogOnAsUser=INTEGER|1
Name=STRING|"Site monitor example"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""PAGETEXT"" with value """""
Params=FOLDER
[Actions\Action1\Params]
expand=STRING|"0"
varkind=STRING|"1"
varname=STRING|"PAGETEXT"
[Actions\Action2]
ActionID=STRING|"A_WD_PAGEINFO"
Enabled=INTEGER|-1
Name=STRING|"Web Page Information"
Params=FOLDER
[Actions\Action2\Params]
address=STRING|"http://www.robotask.com/"
autodownload=STRING|"0"
autologon=STRING|"0"
gethtml=STRING|"0"
getlinks=STRING|"0"
gettext=STRING|"1"
htmlbodyonly=STRING|"0"
htmlvar=STRING|"aaa"
keep=STRING|"1"
overwrite=STRING|"0"
textbodyonly=STRING|"0"
textvar=STRING|"pagetext"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""notepad.exe """
Params=FOLDER
[Actions\Action3\Params]
ifnonzero=STRING|"0"
program=STRING|"notepad.exe"
runas=STRING|"0"
wait=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1000 ms"
Params=FOLDER
[Actions\Action4\Params]
delay=STRING|"10"
[Actions\Action5]
ActionID=STRING|"A_CLIPBOARD_PUT"
Enabled=INTEGER|-1
Name=STRING|"Put Text"
Params=FOLDER
[Actions\Action5\Params]
line0=STRING|"{pageText}"
linecount=STRING|"1"
sourcetext=STRING|"1"
[Actions\Action6]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to ""Notepad"""
Params=FOLDER
[Actions\Action6\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"""You can put this text into email body:"",*****************************,^(V),*****************************,"
pause=STRING|"20"
release=STRING|"0"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
Save the text of the task to a file and use menu Task=>Import in order to import into RoboTask.