---
title: "node-red-node-ping • FlowFuse Integrations"
description: "FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time."
canonical_url: "https://flowfuse.com/integrations/node-red-node-ping/"
meta:
  "og:description": "FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time."
  "og:title": "node-red-node-ping • FlowFuse Integrations"
---

> Index of every page on this site: [llms.txt](https://flowfuse.com/llms.txt)

# **node-red-node-ping**

A Node-RED node to ping a remote server, for use as a keep-alive check.

**Version:** 0.3.3**Weekly Downloads:** 3,005**Author:**Dave Conway-Jones**Updated:** Oct 2, 2022

# node-red-node-ping

A [Node-RED](http://nodered.org) node to ping a remote server, for use as a keep-alive check.

## Install

Either use the Editor - Menu - Manage Palette - Import option or run the following command in your Node-RED user directory - typically `~/.node-red`

```
npm install node-red-node-ping
```

**Gotchas**

1 Ubuntu Snap containers are strict and do not like giving external commands (like ping) external access. To allow ping to work you must manually add the network-observe interface

```
 sudo snap connect node-red:network-observe
```

2 On some versions on Raspbian (Raspberry Pi) `ping` seems to be a root only command. The fix is to allow it as follows

```
sudo setcap cap_net_raw=ep /bin/ping
sudo setcap cap_net_raw=ep /bin/ping6
```

## Usage

Pings 1 or more devices and returns the trip time in mS as `msg.payload`.

Returns boolean `false` if no response received, or if the host is unresolveable.

`msg.error` will contain any error message if necessary.

`msg.topic` contains the ip address of the target host.

There are 2 modes - `Timed` and `Triggered`.

- Timed mode - this is the default mode that pings your devices on a timed basis. Default ping is every 20 seconds but can be configured.
- Triggered mode - this mode permits you to trigger the ping by an input message. If the `Target` is left blank and `msg.payload` is a string or array, you can ping 1 or more devices on demand.

Refer to the built in help on the side-bar info panel for more details.

## **Installation **

Install in Node-RED via the [**palette manager**](https://flowfuse.com/docs/node-red/getting-started/library/#using-the-palette-manager).

![Node-RED Palette Manager dialog with the node selected and the Install button visible.](https://flowfuse.com/images/integrations/palette-manager-install.png)

## **Quick Stats**

Current Version**0.3.3**

Weekly Downloads**3,005**

First Published**Jul 27, 2014**

Last Updated**Oct 2, 2022**

## **GitHub Stats**

[Open Issues ![GitHub Issues](https://img.shields.io/github/issues/node-red/node-red-nodes.svg?style=flat-square)](https://github.com/node-red/node-red-nodes/issues) [ Stars ![GitHub Stars](https://img.shields.io/github/stars/node-red/node-red-nodes.svg?style=flat-square)](https://github.com/node-red/node-red-nodes/stargazers) [ Forks ![GitHub Forks](https://img.shields.io/github/forks/node-red/node-red-nodes.svg?style=flat-square)](https://github.com/node-red/node-red-nodes/network/members)

## **External Resources**

[View on NPM](https://www.npmjs.com/package/node-red-node-ping) [ View Repository](https://github.com/node-red/node-red-nodes)

## **Need Help?**

Get professional support for your Node-RED projects with FlowFuse.

[**Contact Us**](https://flowfuse.com/contact-us/)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://flowfuse.com/#website","@type":"WebSite","description":"FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time.","inLanguage":"en","name":"FlowFuse","url":"https://flowfuse.com/","alternateName":["FlowForge","Flow Fuse"],"publisher":{"@id":"https://flowfuse.com/#identity"}},{"@id":"https://flowfuse.com/integrations/node-red-node-ping/#webpage","@type":"WebPage","description":"FlowFuse builds your first industrial solution with your team, proves it at one plant, then helps you roll it out to every plant, faster each time.","name":"node-red-node-ping","url":"https://flowfuse.com/integrations/node-red-node-ping/","isPartOf":{"@id":"https://flowfuse.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://flowfuse.com/integrations/node-red-node-ping/"]}],"primaryImageOfPage":{"@id":"https://flowfuse.com/#logo"}},{"@id":"https://flowfuse.com/#identity","@type":"Organization","legalName":"FlowFuse Inc.","name":"FlowFuse","url":"https://flowfuse.com","alternateName":["FlowForge","Flow Fuse"],"logo":{"@id":"https://flowfuse.com/#logo"},"sameAs":["https://twitter.com/FlowFuseinc","https://github.com/FlowFuse","https://www.linkedin.com/company/flowfuse/","https://www.facebook.com/FlowFuse/","https://www.youtube.com/channel/UCbBzP8NZbv3WDtlt4UouA-g"]},{"@id":"https://flowfuse.com/#logo","@type":"ImageObject","caption":"FlowFuse","contentUrl":"https://flowfuse.com/handbook/images/logos/ff-logo--square--dark.png","inLanguage":"en","url":"https://flowfuse.com/handbook/images/logos/ff-logo--square--dark.png"}]}
```

## Sitemap

See the full [sitemap](https://flowfuse.com/sitemap.md) for all pages.
