Soracom

IoT Template Gallery

This guide explains the overview, setup, and usage of the Device health monitoring using Ping app.

Overview

Device health monitoring using Ping is a Flux app that automatically performs downlink connectivity checks (Ping) on SORACOM IoT SIMs and notifies the results to Slack. It is useful for monitoring IoT device connectivity and automating operations. It is based on the use of sendDownlinkPing.

  • Execute downlink Ping to a specified SIM ID
  • Obtain Ping results (success/failure, statistics, RTT, etc.)
  • Automatic notification to Slack
  • Customizable check interval, retry count, and timeout

You can change the check interval, retry count, and timeout in the settings.

Device health monitoring using Ping Result Example

:signal_strength: Downlink Ping Result

Success: true
Stat: 1 packets transmitted, 1 received, 0% packet loss, time 0ms
RTT: rtt min/avg/max/mdev = 47.834/47.834/47.834/0.000 ms

Downlink Ping Result Example

Downlink Ping Result Example

Estimated Cost for Running the Flux App

The estimated cost for running a Flux app created from this template is as follows:

  • If the application runs every 10 minutes, this Flux app will execute up to 4,320 events per month.
  • With the SORACOM Flux Developer plan, you can use up to 10,000 events/month for free.
  • If you exceed 10,000 events/month, a fee of 0.11 JPY per event will be charged.

This is an estimate and may vary based on actual usage. For accurate pricing, please check the Pricing & Fee Schedule and usage details in the User Console.

Prerequisites

Before deploying this template, please prepare the following:

  • Slack Webhook URL (obtain from your Slack channel)
  • IoT SIM with downlink communication enabled

Creating the App

At the time of app creation, you will need the Slack Incoming Webhook URL for notifications. Please refer to Using Incoming Webhooks to Trigger Flux Apps to create the URL.

Parameter Settings

Parameter Name
Description
Example
Slack Webhook URL
Webhook URL for Slack notifications
SIM ID
IoT SIM ID to check
1234567890abcdef123
Downlink Check Interval
Interval between checks
10 minutes
Number of Ping Requests
Number of ping requests (1-5)
1
Timeout Seconds
Timeout in seconds (1-3)
1

Customizing the App

You can change the notification timing and content in the Slack notification action settings screen.

  1. Click the [Slack Notification] action in Flux Studio.

Slack Notification

Slack Notification

  1. To change the notification timing, modify the [Action Condition] such as ‘payload.success == false’ (notify only when monitoring fails).

Slack Notification Condition

Slack Notification Condition

  1. To change the notification content, modify the [Payload] as needed.

Slack Notification Payload

Slack Notification Payload

Troubleshooting

  • No notification received
    • Check if the Slack Webhook URL is correct.
    • Check if the SIM ID and parameters are correct.
    • Check if the SIM is active and downlink communication is enabled on SORACOM.

If it does not work as expected, please check the app execution history. For details, see View Logs.

Try this template in the User Console