Hello!
I am currently working on monitoring if service or process is hanged (started, status ok, but not woking etc). Is there any hint, besides cpu or memory load analisys? For example, we can add a feature to our app that sends "ok"-status every n minustes, but how'd I create custom sensor for such solution?
Will appreciate any hint or advice.
Article Comments
Hi Anton,
You can use the HTTP Push Data Advanced Sensor to receive data in XML or JSON. This will bypass the speed channel issue and will allow you to change the sensor status if no messages were received.
Best regards, Felix
Jan, 2016 - Permalink
So, decided to share my solution:
DIM oIE
Set oIE = CreateObject("InternetExplorer.Application")
oIE.navigate "website"
oIE.Visible = false
Wscript.Sleep 3000
'depends on how fast your website opens
Set UID = oIE.document.all.IDLOGINBOX
UID.value = "user"
Set PWD = oIE.document.all.IDLOGINBOX
PWD.value = "password"
oIE.document.all.CONFIRMBUTTON.click
Wscript.Sleep 2000
if inStr(oIE.Document.body.innertext, "SEARCHFORTEXTINBODY") then WScript.echo "up:ok" else WScript.echo "down:down" End If
change CAPSARGUMENTS for yours, save as VBS, add script as a sensor, have fun!
Jan, 2016 - Permalink
Currently i'm experimenting with http push sensor, strange, but it has no push speed settings, only #/s but no #/min or hour.
Jan, 2016 - Permalink