Monitoring your network components: In Part 1 of our tutorial you will learn how to make availabilities visible via light signal. Part 2 provides a guide for setting up messages with a device cannot be reached.

Get Started - Order A Trial Version For 30 Days.

Try our products from Wiesemann & Theis free of charge for 30 days by writing in the note of the order: Want to test the product.
If you do not wish to make use of your right of return within 30 days, simply pay the accompanying invoice. Free shipping in Denmark.

1. Creating the basic flow (video part 1)

  • Open the Node-RED Editor.
  • The menu item Import takes you to the local library of your rule.box. Select the pre-crystallized subflow “WuT-Ping.json” and import it.
  • Drag the imported connector from the left margin to the work area and configure it with a double click. To do this, enter the name of the device to be monitored and, as the host, its IP address.
  • Select the “Digital OUT” node from the rule.box nodes and add it to your desktop. During configuration, you can also give this node a name and specify the desired output.

 

  • Connect the two nodes.

2. Setting up the dashboard display (video part 1)

  • From the menu, choose Manage Palette . Look under “install” for “led” and install the node “node-red-contrib-ui-led”.
  • Drag the “led” node from your node library onto the desktop. Now add a new ui group in the configuration window, which you call “IP monitoring”, for example. Also fill in the fields for label and name.
  • Now you can also connect the LED node to the ping node.
  • Confirm with deploy
  • If the Web-IO is reachable, i.e. the output of the rule.box is switched on, both the LED on your rule.box and the corresponding display on your dashboard will light up.

3. Notification in the event of unavailability (video part 2)

  • From the menu, choose Manage Palette . Under “install” look for “mail” and install the node “node-red-node-mail”.
  • Drag the “email” node that has its link on the left side onto the desktop. Enter a recipient address, the mail server and the sender’s user data in the configuration window.
  • Add a “function” node and configure this node by giving it a name and setting the following functions:
msg.topic = 'Betreffzeile der E-Mail';
msg.payload = 'Inhalt der E-Mail';
msg.from = 'Adresse des Absenders';
return msg;
  • Now add a “switch” node to define a condition that should trigger an alarm. To do this, select “is wrong” as the value rule in the configuration area below the properties.
  • Now you need an “rbe” node. This ensures that an email is only sent when there is a change in status. To do this, select the preset option “block unless value changes” in the configuration menu under “Mode”.
  • Now connect the nodes on your workspace in sequence and then confirm with deploy
  • Now add a “switch” node to define a condition that should trigger an alarm. To do this, select “is wrong” as the value rule in the configuration area below the properties.
  • Now you need an “rbe” node. This ensures that an email is only sent when there is a change in status. To do this, select the preset option “block unless value changes” in the configuration menu under “Mode”.
  • Now connect the nodes on your workspace in sequence and then confirm with deploy

Look all Node-Red Products here: