New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


monitoring service/application

Votes:

0

Your Vote:

Up

Down

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 by  Anton (120) 2 2



Best Answer

Accepted Answer

Votes:

7

Your Vote:

Up

Down

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 by  Anton (120) 2 2

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



5 Replies

Votes:

0

Your Vote:

Up

Down

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 by  Anton (120) 2 2

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



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

Hi Felix

Thanks for hint!

Created on Jan 17, 2016 3:17:32 PM by  Anton (120) 2 2



Accepted Answer

Votes:

7

Your Vote:

Up

Down

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 by  Anton (120) 2 2

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



Votes:

0

Your Vote:

Up

Down

Hi Anton, Thanks for sharing!

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



Please log in or register to enter your reply.


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.