# Nagios-lite-like node wanted

**URL:** https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965
**Category:** General
**Created:** [20 August 2021 17:04 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965 "2021-08-20T17:04:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)
#### Post date: [20 August 2021 17:04 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/1 "2021-08-20T17:04:33Z")

</div>

Hi,

[This is](https://discourse.nodered.org/t/ultimate-monitoring/12509) what search returns and this is not what I'm looking for.

My smart home UI is built with Node-RED.  
Some devices in my smart home solution send LTW over MQTT, others don't because they don't use MQTT. Some LTW are designed for normal operation, others are really "a scream from the tomb". That's not perfect design of the smart home but it works few years already.

Problem:  
Rarely, very rarely, random device stops functioning. I discover that few days later when I need something from this or that device.

Typical solution is running Nagios. Nagios can execute list of "checks", keep and track the status of the checks, and alert/execute\_some\_code if the status passed defined threshold. Nagios is the beast 🙂

However, for my small network it's a mammoth in a crystal shop.  
I'm going to build Node-RED variant of Nagios which:

- Runs defined commands per every unit in the smart home and compares results with expected criteria.
- Puts all the results in InfluxDB (or other DB).
- In case of failure of a certain unit it sends email and/or IM (pushbullet, telegram, etc.)

Having "there is nothing new under the sun" I wonder if someone already wrote such node.  
I'd prefer to use even buggy software and debug/improve it rather than writing from scratch.

Any advice/idea welcome.  
Thanks.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [21 August 2021 04:39 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/2 "2021-08-21T04:39:23Z")

</div>

Depending on what the "Runs defined commands" entails, [I created a network map flow](https://flows.nodered.org/flow/4b940430b92142571c670050f4d98f6d) (map is shown using node-red-dashboard), that pings all my devices every x seconds and shows its status on a map. This could be expanded to take certain actions to be taken when a device is unreachable. I mainly use this for clicking the ip's, as I cannot remember all the ip's/devices in my network, so it becomes a glorified bookmark page for me 🙂

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/c/9cf6a3cce0c509f39de0a5bf9bf3eeb65582c2cf.jpeg)

---

<div class="post-metadata">

### Author: ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)
#### Post date: [21 August 2021 06:37 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/3 "2021-08-21T06:37:19Z")

</div>

Thank you @bakman2  
This looks cool and sophisticated. Looking into it...

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [21 August 2021 06:44 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/4 "2021-08-21T06:44:16Z")

</div>

Note it is called "dynamic" but this only applies to the icon colors. The network is setup as a static topology, located in the inject node in the inject node in the "Set Topology" section

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db4c3e2d2b6465e4f537f78065403335b82084e5.jpeg)

---

<div class="post-metadata">

### Author: ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)
#### Post date: [22 August 2021 10:38 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/5 "2021-08-22T10:38:53Z")

</div>

Well, after 1 hour of attempts to understand and run it I gave up. It's too complex for stupid one like i am.  
Therefore, i spent 3 hours more and wrote "fail-safe" (polite idiom for "fool-proof") solution:

> **[RaspberryPi/nagios\_lite\_like at master · igrowing/RaspberryPi](https://github.com/igrowing/RaspberryPi/tree/master/nagios_lite_like)**
>
> master/nagios\_lite\_like

Maybe I'll improve it later to be even simpler.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [22 August 2021 10:55 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/6 "2021-08-22T10:55:04Z")

</div>

> Well, after 1 hour of attempts to understand and run it I gave up.

Ofcourse you could have asked.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 October 2021 10:55 UTC](https://discourse.nodered.org/t/nagios-lite-like-node-wanted/49965/7 "2021-10-21T10:55:53Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
