Remote device monitoring is crucial for constantly tracking the health of your IoT devices remotely, so that corrective actions can be taken immediately.
SocketXP provides two options to monitor your devices remotely:
- Device Status Monitoring
- Device Resource Monitoring
Device Status Monitoring
SocketXP Device Status Monitoring feature provides you the ability to monitor your remote device status(online/offline). SocketXP can be configured to send device status change alerts to a user registered public webhook URL.
For example, if your team uses Slack app for collaboration, and if you want to receive device status change notifications in your Slack app channel, you could create a Slack Incoming Webhook and configure SocketXP to use the webhook to send device status change notifications.
There are many team collaboration apps(not just Slack) that support and provide public webhooks. You could register the app's webhook with SocketXP to receive device status change notifications.
You can also register your custom built IoT controller or dashboard app's webhook API with SocketXP to receive device status change alerts.
To receive webhook notifications, you need to register the public webhook URL of your application with the SocketXP gateway.
Go to the SocketXP web portal's monitoring section, where you will register the public webhook URL of your app and click update. Also, turn on the device status monitoring option in the device monitoring section and click "update".
SocketXP gateway will send the following device status change notifications through the app's webhook URL, whenever the device/tunnel goes up or down:
All the alerts generated can be viewed from the "Activity Logs" section in the SocketXP Web Portal.
Device Resource Monitoring:
Device Resource Monitoring provides you the ability to monitor your device resource utilization such as CPU usage, memory usage, disk usage and trigger a webhook alert when the resource utilization exceeds a configured threshold value.
Go to the SocketXP web portal's monitoring section, where you will register the public webhook URL of your app (Eg: https://api.example.com/device-monitoring-webhook), select Device Resource Monitoring option and then provide a resource utilization
threshold value for receiving alerts. The default value for the threshold is 80%. Finally, click update to push the new configuration to all your devices.
You'll receive webhook alerts as shown below when the CPU, Memory or Disk utilization exceeds the configured
- SocketXP agent running in all your devices will be restarted whenever you make any change to the Device Resource Monitoring configurations.
- Device resource monitoring alerts are throttled to a 5 minute window - meaning not more than 1 alert will be sent in any 5 minute window for a given device.
- Device resource monitoring feature is available from SocketXP agent version 1.3.10 onwards.