# Node-RED SNMP Agent (not listener)

**URL:** <https://discourse.nodered.org/t/node-red-snmp-agent-not-listener/49389>\
**Category:** General\
**Created:** [5 August 2021 16:20 UTC](https://discourse.nodered.org/t/node-red-snmp-agent-not-listener/49389 "2021-08-05T16:20:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://discourse.nodered.org/u/awneil)\
**Post date:** [5 August 2021 16:20 UTC](https://discourse.nodered.org/t/node-red-snmp-agent-not-listener/49389/1 "2021-08-05T16:20:07Z")

</div>

I see lots about Node-RED as an SNMP Manager (listening for Traps, querying MIBs, etc) but nothing as an SNMP **Agent** - ie, the thing which sends Traps, and has the MIB.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6cd1f3d5463174b30ad7d528f3e7278b24af842.png)

This seems to be about the closest (from 2016):

[https://groups.google.com/g/node-red/c/vA079cSjVpI](https://groups.google.com/g/node-red/c/vA079cSjVpI)

it references this:

> **[net-snmp](https://www.npmjs.com/package/net-snmp)**
>
> JavaScript implementation of the Simple Network Management Protocol (SNMP)

which is JavaScript, but not actually Node-RED.

There's also this (2018):

> **[Pi Network Monitoring](https://funprojects.blog/2018/06/24/pi-network-monitoring/)**
>
> There are some great full featured networking packages like Nagios and MRTG that can be loaded on Raspberry Pi’s. If, however, you are looking for something smaller scale that you can play wi…

but that seems to be relying on external command-line calls for the Agent parts.

Has there been anything new in the last couple of years?

Any new suggestions?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 August 2021 20:45 UTC](https://discourse.nodered.org/t/node-red-snmp-agent-not-listener/49389/2 "2021-08-05T20:45:55Z")

</div>

> [@awneil](#):
>
> There's also this (2018):

Why on earth would you go to the trouble of trying to use SNMP to control a Pi GPIO?

Unless you have some other SNMP based monitoring infrastructure already up and running, I really can't see any benefit. Truth be told, SNMP is a monster and nobody uses it directly unless they really have to. Even professionally, we don't use it directly (though I'm IT not low-level infrastructure. I'd expect someone like BT to use it to monitor routers and switches but even they don't use it to set things as far as I'm aware).

If you want to control Pi GPIO or a serial connected Arduino or whatever, then use native controls or serial in/out. If you want to control a network connected device, chances are that you will use MQTT or SSH scripting for larger devices.

If you want to integrate SNMP reports from other devices with Node-RED, there are native nodes but probably even easier in many ways is to use Telegraf with InfluxDB.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://discourse.nodered.org/u/awneil)\
**Post date:** [5 August 2021 22:19 UTC](https://discourse.nodered.org/t/node-red-snmp-agent-not-listener/49389/3 "2021-08-05T22:19:13Z")

</div>

> [@TotallyInformation](#):
>
> Why on earth would you go to the trouble of trying to use SNMP to control a Pi GPIO?

That's just for the purpose of illustrating which part of the system I'm talking about.

> [@TotallyInformation](#):
>
> Unless you have some other SNMP based monitoring infrastructure already up and running

Yes - that!

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/d/0d11aefb6f897e3202ed33d1abdb8ad6810d868e.png)

---

<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:** [4 October 2021 22:20 UTC](https://discourse.nodered.org/t/node-red-snmp-agent-not-listener/49389/4 "2021-10-04T22:20:07Z")

</div>

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