What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

monitoring service/application

Votes:

0

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.

application custom-script-exe hanging service snmp

Created on Jan 14, 2016 6:22:30 PM



Best Answer

Accepted Answer

Votes:

7

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!

Created on Jan 18, 2016 4:49:35 PM

Last change on Jan 19, 2016 5:51:59 AM by  Luciano Lingnau [Paessler]



5 Replies

Votes:

0

Currently i'm experimenting with http push sensor, strange, but it has no push speed settings, only #/s but no #/min or hour.

Created on Jan 14, 2016 7:49:49 PM

Last change on Jan 15, 2016 5:22:03 AM by  Felix Saure [Paessler Support]



Votes:

0

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

Created on Jan 15, 2016 2:11:41 PM by  Felix Saure [Paessler Support]



Votes:

0

Hi Felix

Thanks for hint!

Created on Jan 17, 2016 3:17:32 PM



Accepted Answer

Votes:

7

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!

Created on Jan 18, 2016 4:49:35 PM

Last change on Jan 19, 2016 5:51:59 AM by  Luciano Lingnau [Paessler]



Votes:

0

Hi Anton, Thanks for sharing!

Created on Jan 19, 2016 6:46:36 AM by  Felix Saure [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.