Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
sindrel created page: send
authored
Mar 04, 2017
by
Sindre
Show whitespace changes
Inline
Side-by-side
send.md
0 → 100644
View page @
9826b824
# Send messages #
To send outgoing messages, execute a HTTP GET request to the send.php file in your public web folder, passing parameters in the URL:
<br>
>https://<baseurl>/send.php?user=<username>&password=<password>&to=<recipient>&message=<message>
<br>
This can easily be done from a browser, or automated using scripts. It can also be used for alerting, i.e. from system monitoring tools such as Solarwinds Orion, Nagios, LibreNMS etc.
<br><br>
<table
border=
"1"
>
<tr>
<td>
Username
</td>
<td>
Your configured username
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
Your configured password
</td>
</tr>
<tr>
<td>
Recipient
</td>
<td>
The phone number of the recipient
</td>
</tr>
<tr>
<td>
Message
</td>
<td>
The text message you wish to send
</td>
</tr>
</table>
<br>
**Generic example**
<br>
https://example.com/send.php?user=albert&password=pizza&to=4712345678&message=A%20message%20to%20you
<br><br>
**LibreNMS example (API Transport)**
<br>
https://example.com/sms/send.php?user=albert&password=pizza&to=4712345678&message=%timestamp%0A%hostname%20%location:%0A%name%20%3D%20%state.%0ATime%20elapsed:%20%elapsed.%0AId:%20%uid
\ No newline at end of file