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


VBS script not running when testing notification

Votes:

0

Your Vote:

Up

Down

Basically, i have made a vb script that when running will send a SMS to my cellphone with a given message trought a 3rd party software (SMS Control Center), now i created a new notification and set it to run a program (my script). When i just simply want to test it and press the test button, nothing happends. When i run the script myself everything works perfectly, but as soon as i try to run it from PRTG it does nothing. The script itself doesn't have to start up any new programs. the 3rd party software is already running.

This is the script im running:

Dim oApp

Set oApp = createobject("SmsCenter.Application")

oApp.SendSMS "+3241414285458", "test", false

Set oApp = Nothing


I have also noticed when i try to test a notification with a simple batch file, nothing happends aswell. 

@echo off
pause

So it just feels like PRTG doesnt want to run any scripts, altough when i check the logs it says

Status sending EXE:Ok

I hope anyone can help me with this, cause i'm using this for my senior year project in school and been stuck on this for a while now.

execute-program prtg script vbscript

Created on Mar 22, 2015 9:32:10 PM by  yuareapirate (0) 1

Last change on Mar 23, 2015 8:18:06 AM by  Torsten Lindner [Paessler Support]



3 Replies

Votes:

6

Your Vote:

Up

Down

Please note that PRTG runs as a service and therefor cannot interact with the desktop.

This explains why your batch file output with the pause command is not shown and might also explain why your sms notification does not work.

Created on Mar 23, 2015 8:51:01 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,835) 3 4



Votes:

0

Your Vote:

Up

Down

Any possible solutions to this? or alternative options?

Created on Mar 23, 2015 10:03:52 AM by  yuareapirate (0) 1



Votes:

0

Your Vote:

Up

Down

If the notification has to interact with the desktop, in other words it produces some kind of user interface like a desktop window, you can have a look at PTF.Launcher.

Note: For the launcher application to work, a user must always be logged into the computer running the launcher application. (the desktop needs to be active)

Created on Mar 23, 2015 10:16:49 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,835) 3 4



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.