Node-RED Ping Node

0.3.3 · maintenance · verified Sun Apr 19

The `node-red-node-ping` package provides a specialized Node-RED node designed to perform ICMP pings against remote servers. It serves as a network health monitoring and keep-alive check utility within the Node-RED low-code development environment. The node can operate in two primary modes: 'Timed' for periodic checks at configurable intervals, and 'Triggered' for on-demand pings initiated by an input message. Upon execution, it outputs the round-trip time in milliseconds as `msg.payload`, or `false` if the host is unreachable or unresolvable. Error messages are provided in `msg.error` and the target IP in `msg.topic`. The current stable version is 0.3.3, which was last published approximately four years ago, indicating a very slow or ceased release cadence for this specific package. Its primary differentiator is its seamless integration into Node-RED flows, allowing developers to visually incorporate ping functionality without writing custom code, unlike standalone `ping` npm libraries.

Common errors

Warnings

Install

Quickstart

This demonstrates how to install the Node-RED ping node via npm and describes its basic usage within the Node-RED editor.

npm install node-red-node-ping

# After installation, open your Node-RED editor (usually at http://localhost:1880/).
# The 'ping' node will appear in the palette under the 'network' category.
# Drag and drop the 'ping' node onto your flow canvas.
# Double-click the node to configure its properties, such as the target host(s)
# and operating mode (Timed or Triggered). Wire an 'inject' node to trigger
# pings in 'Triggered' mode, or a 'debug' node to view the output message.

view raw JSON →