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.


Article Comments

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?


Feb, 2013 - Permalink

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,


Feb, 2013 - Permalink

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.


Feb, 2013 - Permalink