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

notification -execute program - sms via http duplicate message

Votes:

0

Hi,

here is my script

Param( $srvhost=$args[0] )

$msgarray = $srvhost -split(" ") $smsrequest = "https://vast.bezeq.co.il/imsc/interfaces/largeaccount/la3.sms?account=haaretz&user=xxxxx&pass=xxxxxx&from=035892124&to=0507703384&port=0&text=$msgarray[0] $msgarray[4] $msgarray[2] $msgarray[3] $msgarray[4]" Invoke-WebRequest -Method get $smsrequest write-host "2:Error" exit 2

I get the sms correct but it appear three time in each sms

notification prtg script

Created on Dec 15, 2019 2:44:13 PM



2 Replies

Votes:

0

Why not use the actual Custom SMS API URL? And why are you exiting with code 2 all the time? :)

Created on Dec 16, 2019 7:26:00 AM by  Stephan Linke [Paessler Support]



Votes:

0

Thank for your answer. The problem has solved, the issue was with the windows browser.

Created on Dec 16, 2019 12:24:05 PM




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.