TRB256 periodic HTTP Post

Hi,

I need your help configuring a Teltonika TRB256 to send periodic HTTP POST “keep-alive” messages (JSON) to a test endpoint:

http://nekamtoposli.cz/keepalive

Payload:

{ “modemId”: “Test-Revitest” }

Goal: send the POST every 60 seconds.

I have TRB256 FW version: TRB2M_R_00.07.11.3

Thank you in advance for a quick reply

Václav Martínek

Most likely easiest way is via WebUI using event juggler. With latest firmware it is (not sure if it different on 7.11.3):

  1. Go to Services > Event Juggler
  2. Press Add
  3. Enable config
  4. Event type: Time
  5. Minutes: Select all or nothing (both will send requests every minute)
  6. Press next
  7. Action type: HTTP
  8. Request URL: http://nekamtoposli.cz/keepalive
  9. Select Request method: Post
  10. Text parameters: your json
  11. If needed add json content-type header

Hello @martinek,

Please let me know if you still need any assistance.

Best regards,

Thank you for reply, after upgrading FW event juggler appeared - thats great. Also step by step manual was good, but I have a problem with url address.

I need to put there this address: http://kam.mse_tst.dpp.cz/keepalive and the UI has a problem with “_”

Why is that? I thought “_” is allowed symbol in IP address

Greetings,

The “_” symbol isn’t allowed in the domain name part of a URL. It can only be used in the path or query portion. If you need a separator, the “-” symbol is valid and should be used instead.

Best Regards,
Justinas

Hi, thanks for advices so far.

But let’s continue:

I would like to ask for assistance regarding HTTPS communication on the TRB256 device.

We need the unit to send HTTPS POST requests (to an Event Juggler service) from within a client’s private network. The target server uses a self-signed certificate.

Could you please confirm the following:

  1. Does the TRB256 fully support HTTPS for outbound POST requests? (in “Ation type” there is only HTTP no HTTPS)

  2. Is it possible for the TRB256 to accept and work with a self-signed certificate?

  3. In case the device does not trust the certificate by default, is there an option to manually upload/import a custom CA or certificate into the TRB256 so that HTTPS communication can function properly?

Any guidance or relevant documentation would be greatly appreciated.

Thank you in advance.

Best regards,

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

It also seems unlikely to me that TRB256 wouldn’t be able to handle this; I’m more inclined to think that maybe the event juggler simply doesn’t support it. If that’s the case, would it be possible to add this functionality?

Hello,

I have configured the Event Juggler on my TRB256 according to your previous instructions (see attached screenshots). However, the server still does not receive any data from this device.

The server is receiving data correctly from other devices, so the issue seems to be related to TRB256 or its Event Juggler configuration.

I checked the System Log, but I cannot find any entries showing that the Event Juggler action was triggered or that the data was sent.

Could you please advise:

  1. Is there any dedicated log where I can verify that the Event Juggler executed the action?

  2. Should HTTP actions performed by the Event Juggler be visible in the System Log or another log?

  3. If logging needs to be manually enabled, where can I enable it?

At the moment I cannot confirm that the device is sending anything at all, so any guidance on how to properly monitor or debug Event Juggler activity would be greatly appreciated.

For testing purposes, port 80 is temporarily open on the server and the Event Juggler is configured to send data via HTTP. The TRB256 is connected to my computer via LAN cable, and from my computer I can successfully ping the server and also connect to port 80 using Telnet. Therefore, basic network connectivity should not be an issue.

Thank you in advance for your assistance.

Václav

Hi,

  1. https connection can be made with “Use secure connection” and “Verify” after they are enabled CA file upload will appear.
  2. Logs can be seen by going to System > Maintenance > Troubleshoot > Troubleshoot logs and clicking System logs button. You can also search for “event_juggler”. Or with logread via CLI. “Event log” does not show event juggler logs.

Successful event juggler events should look like this:

909 Fri Dec  5 07:16:00 2025 daemon.info event_juggler: [1] Event triggered
910 Fri Dec  5 07:16:00 2025 daemon.info event_juggler: [2] Action performed
  1. Also keep in mind that your current config will send requests once a hour on 1 minute mark. Not once a minute like you initially asked for.
  2. Also check “Conditions” configuration - it should be empty.

Thanks for quick reply.
In the system log I repeatedly see the following messages:

daemon.info event_juggler: [1] Time event triggered
daemon.info event_juggler: [1] Event triggered
daemon.info event_juggler: [2] Action performed

From these logs it looks like the event was triggered and the action was executed, but no data is arriving on the target server. I need to verify whether Event Juggler actually sends the data (HTTP), or if these log entries only indicate the event execution internally without confirming that packets were truly sent out.

Could you please clarify:

  1. Do these messages confirm that the data was actually transmitted, or only that the action was triggered?

  2. Where can I find more detailed logs of the actual transmission in TRB256?

  3. What is the recommended method to verify that data is really being sent out from the router?

To verify if data was sent:

  1. install tcpdump via package manager.
  2. Turn on capture.
  3. Wait until Event Juggler performs action
  4. Download tcp dump file and view it in WireShark program
  5. You can use filter ip.addr == 1.1.1.1 instead of 1.1.1.1 use your server ip (if tcp connection does not show problems you can also filter with & http)

You should able to see both post request and response if everything went well.

e.g:

image

Also it is worth to mention that Event junggler will throw errors if it cannot reach server:

7056 Fri Dec  5 13:09:01 2025 daemon.info event_juggler: [1] Event triggered
7057 Fri Dec  5 13:09:01 2025 daemon.err event_juggler: Failed to send http packet reason: Error
7058 Fri Dec  5 13:09:01 2025 daemon.err event_juggler: [2] Action failed

hank you for your previous response. I’d like to clarify a few points:

  1. It seems that using tcpdump is not compatible with the FW device, so I’m unable to use it for traffic diagnostics.

  2. I tested sending the exact same JSON from a PC via the TRB256 using PowerShell and the request succeeded without issues:

Invoke-RestMethod `
-Method Post `
-Uri "http://kam-mse-tst.dpp.cz/api/KeepAlive" `
-ContentType "application/json" `
-Body '{"deviceId":"TEST-999"}'

Because of this, I’m not sure what else to try or where the issue might lie. Could you please advise how to proceed?
The device always reports “Action performed” (not “Action failed”)

Also — as an aside — is there a way to include an IMEI number in the JSON payload I’m sending?

Thank you for your help.

  1. Not sure if your server is case sensitive on “KeepAlive” part but this might be the problem.
    • Url in your manual test: image
    • Url in your config: image
  2. Yes that it is possible to include IMEI. Click on “Show text message parameter list” to see all available values. I think it should be something like this { "deviceid": "%ie" }
  3. I can see that tcpdump is available for trb256 https://wiki.teltonika-networks.com/view/TRB256_Package_Downloads just make sure to install correct version.