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


SMS notification only writes 'Network'

Votes:

0

Your Vote:

Up

Down

Hi all,

i have set up SMS notification thru EXE notification, we have a program call SYSmanSMS and the setup works.

I have made a bat file and placed it in EXE folder, the bat file contains the following code:

echo "%~2" >"C:\SysManSMS\INPUT\prtg.txt"

The notification parameter contains the following:

[%sitename] %device %name %status %down (%message)

That is the standard parameter i have tried with " ".

I get the SMS but all it says is: 'Network' i would like to have a SMS like the email notification with more information, what to do.

batch-file notification sms

Created on Feb 7, 2013 2:59:05 PM by  ogodt (0) 1

Last change on Feb 7, 2013 4:00:08 PM by  Daniel Zobel [Paessler Support]



3 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

it is hard to guess what is going on in your external application, so we can only give limited support here.

However, to check if PRTG hands over the content correctly, have you checked your prtg.txt file? Does it contain all information? If you use the "Test" link of the notification, PRTG should hand over exactly the string [%sitename] %device %name %status %down (%message) (placeholders are resolved on runtime only, not when testing the notification). Do you see this string in your text file?

Created on Feb 7, 2013 3:59:44 PM by  Daniel Zobel [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Is it not so that

echo "%~2" >"C:\SysManSMS\INPUT\prtg.txt"

will only write the 2nd parameter passed to the batch file to your prtg.txt file? In that case your prtg.txt file will always contain the value of the %device placeholder only.

Regards,

Created on Feb 7, 2013 4:31:45 PM by  PRTG Tools Family [prtgtoolsfamily.com] (12,885) 3 4



Votes:

0

Your Vote:

Up

Down

I still dont understand what to do, the prtg.txt contains the same as the SMS,

The SMS could look like this: '(PRTG Network Monitor (PC-PRTG)) %device %name'

Thanks for the help.

Created on Feb 7, 2013 8:48:45 PM by  ogodt (0) 1



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.