Setting Up TNZ SMS as a Notification Provider in PRTG

Integrate your Paessler PRTG Network Monitor with TNZs SMS API to receive critical alerts directly via text message.

Receiving instant SMS notifications from your PRTG Network Monitor for critical system alerts is essential for maintaining uptime. This guide will walk you through setting up TNZ SMS as a custom notification provider in PRTG.

 

Generate Your TNZ API Key

To enable PRTG to send messages via your TNZ account, you need a dedicated Sender and APIKey pair. This is created as a Legacy API Key within your user profile in the TNZ Dashboard.

  1. Log in to your TNZ Dashboard.

  2. Navigate to the Users section.

  3. Click on your user in the list.

  4. Under the API Access options, toggle the Enable API switch to 'Yes'.

  5. Enable the Sender/APIKey option and click the 'Create Legacy API Key' button.

  6. A new Sender and APIKey will be generated and displayed. Take careful note of both of these values, as they will be required for the PRTG setup.

Note: Treat your API Key like a password. Do not share it publicly.

 

Configure TNZ SMS Delivery in PRTG

Let's configure the custom SMS provider settings in PRTG.

  1. In your PRTG installation, go to Setup (the gear icon), then System Administration, and finally Notification Delivery.

  2. Under the SMS Delivery section, set these options:

Field Value/Setting Notes
URL https://api.tnz.co.nz/api/v2.04/HttpApi/SMS?sender=[your sender]&token=[your apikey]&number=%SMSNUMBER&message=%SMSTEXT

The URL contains custom commands:
[your Sender]: Your TNZ Sender value (e.g., 123456).
[your APIKey]: Your TNZ APIKey value (a long alphanumeric string).
%SMSNUMBER: PRTG placeholder for the Recipient Phone Number.
%SMSTEXT: PRTG placeholder for the Message Content/Alert.

HTTP Authentication Do not use HTTP authentication The authentication is handled directly within the URL parameters (sender and token).
Custom SNI Do not send Custom SNI This is not required for the TNZ API.
Encoding UTF-8 Standard encoding for text messages.
Virtual Host   Not required (leave blank).
Maximum length of text 160 We recommend setting this to 160 for single-part SMS, but you can set it up to 1530 if you expect longer alerts. Note that messages longer than 160 characters are billed as multiple SMS parts.

PRTG - TNZ SMS

 

Set Up the PRTG Notification Trigger

The last step is to create a Notification Template that uses your newly configured TNZ SMS provider.

  1. Go back to Setup > System Administration > Notification Templates.

  2. Click 'Add Notification Template'.

  3. Give your new template a name, e.g., 'TNZ SMS Alert'.

  4. In the Actions section, select the 'Send SMS Message' option.

  5. In the dropdown menu under SMS Delivery Provider, select the TNZ SMS provider you just configured (which will appear as the URL you entered).

  6. Define the message content you want to send in the Message field (e.g., %downtime.sensor (%probe) is %status on %device. Message: %status.message).

  7. Save the template.

You can now apply this 'TNZ SMS Alert' template to sensors, devices, or groups in PRTG to trigger a text message notification whenever a specified alert condition is met (e.g., a sensor enters a 'Down' state).

PRTG - Configure Alert


Topics:   Installation SMS

Start your free trial today!

Ready to revolutionise your messaging?
Connect with people anywhere - boost engagement, responses and conversations.

20 credits over 14-days. No obligation. No credit card required.