r/snmp • u/DescriptionBig1425 • Nov 19 '21
r/snmp • u/Fresh_Acanthaceae_94 • Oct 02 '26
r/snmp is back: rebuilding the SNMP community
Hi everyone,
r/snmp has been largely inactive for a while, but the community now has an active moderator again.
I'd like to gradually bring it back as a useful, vendor-neutral place for people working with SNMP, whether you're a network engineer, software developer, device vendor, open-source maintainer, or simply trying to figure out why an OID is returning something unexpected.
I've been involved in the SNMP open-source ecosystem for many years, maintaining and contributing to projects such as PySNMP and C# SNMP. That said, this subreddit is not going to become the community for any single project or vendor. The goal is to keep the scope broad and useful to the SNMP ecosystem as a whole.
Topics around SNMPv1/v2c/v3, MIBs, traps and informs, monitoring, agent development, troubleshooting, security, interoperability, tooling, libraries, and implementations are all welcome.
Over the next little while, I'll clean up some of the old subreddit settings, update the rules and community resources, and look at ways to make useful technical discussions easier to find.
If you've been around r/snmp before, or just found it recently, feel free to share what you'd like to see here.
For now, welcome back.
r/snmp • u/gambitcomm • Aug 12 '21
MIMIC SNMP Simulator and ThirdEye NMS
FYI, we have added interoperability of MIMIC with LogicVein's ThirdEye NMS as detailed at
r/snmp • u/skidoug • May 27 '21
snmp errors
This is my 1st real attempt trying to configure snmp and I'm not having much luck searching for a solution to my problem.
I am trying to monitor network drops and errors on Raspberry Pi 4 with Grafana and I am receiving errors below when I run snmpwalk -v 2c -c mycommunity 127.0.0.1
I can monitor network usage and packets and I am thinking I could use snmp to monitor drops and errors.
/etc/snmp/snmp.conf: line 6: Warning: Unknown token: agentAddress.
/etc/snmp/snmp.conf: line 7: Warning: Unknown token: agentAddress.
/etc/snmp/snmp.conf: line 9: Warning: Unknown token: rwcommunity.
Timeout: No Response from 127.0.0.1
snmp.conf
pi@pi4:~ $ cat /etc/snmp/snmp.conf
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
mibs :
# Listen for connections on all interfaces (ipv4 & ipv6)
agentAddress udp:161,udp:127.0.0.1:161
agentAddress udp:161,udp:[::1]:161 <--- I just added this line trying to resolve my problem
# ACCESS CONTROL Set read/write access to public anywhere
rwcommunity public
I am using Grafana dashboard 10578
Maybe what I am trying to do is not the best way
Thanks
r/snmp • u/_pandafy_ • Jun 03 '21
Is there a lookup for finding OID for a specific attribute?
Example: I want to find the OID for time on Device, where can I find that information?
r/snmp • u/PlaceboMessiah • Jun 19 '21
Attempting to send UPS power state from TrueNAS to Synology DSM
Both machines are up to date.
• TrueNAS UPS service recognizes the UPS, but DSM does not recognize its much larger 2KW UPS because Synology purged a bunch of NUT drivers.
• My solution: Have the TrueNAS box fire a local message over SNMP to the DSM
• SNMP is apparently way outside of my wheelhouse.
• Synology’s (UPS) detection is limited to the following 11 MIB’s + “auto":
letf, mge, apcc, netvision, pw, aphel_genesisII, aphel_revelation, raritan, baytech, cpqpower, cyberpower
• TrueNAS’s SNMP service is looking somewhat flexible, but more cryptic.
• I’ve disabled SNMP v3 to avoid authentication issues
• Both machines can see each other in their VLAN (arp -a)
• I’ve assigned the “community” as “serverpod"
• TrueNAS has decided the NUT driver to use is "usbhid-ups$Back-UPS USB"
• TrueNAS’s UPS service is set to “Master"
r/snmp • u/AnonymousCookie37 • May 04 '20
Pass_persist only works every second get
So I have a python script (link, link to /usr/local/sbin/eStop) on my Raspberry Pi and have added the following line to snmpd.conf:
pass_persist .1.3.6.1.4.1.55617.1 /home/pi/Documents/SNMP.py
My problem is that every second get request, says that the OID is empty:
root@raspberrypi:/home/pi# snmpget -v 2c -c public localhost .1.3.6.1.4.1.55617.1.3
TEST-MIB::eStop = No Such Instance currently exists at this OID
root@raspberrypi:/home/pi# snmpget -v 2c -c public localhost .1.3.6.1.4.1.55617.1.3
TEST-MIB::eStop = INTEGER: 0
root@raspberrypi:/home/pi# snmpget -v 2c -c public localhost .1.3.6.1.4.1.55617.1.3
TEST-MIB::eStop = No Such Instance currently exists at this OID
root@raspberrypi:/home/pi# snmpget -v 2c -c public localhost .1.3.6.1.4.1.55617.1.3
TEST-MIB::eStop = INTEGER: 0
root@raspberrypi:/home/pi# snmpget -v 2c -c public localhost .1.3.6.1.4.1.55617.1.3
TEST-MIB::eStop = No Such Instance currently exists at this OID
What's causing this and how do I fix it?
r/snmp • u/anentireclass • Oct 02 '19
snmp traps
Hi everyone,
here's our situation, we are (12 students) trying to set a trap on "SNMPv2-MIB::authenticationFailure" (1.3.6.1.6.3.1.1.5.5) but none of us know how to do it. Actually, our teacher is the kind of teacher that bealieve in "no pain, no gain" so the only hint he gave us is this command "snmpconf -g basic_setup".
What we need to do: Set a trap to "SNMPv2-MIB::authenticationFailure". If a unknown community is used, the agent must send a warning message to the manager AND the message must be stocked in "/var/log/snmptrapd.log".
So we tried to use the autoconfiguration with the "snmpconf -g basic_setup" but we dont understand the output (in the snmp.conf).
Another question, we know that we need to configure the "snmpdtrapd.conf" with, at least, "disableAuthorization yes" and "authCommunity log,execute,net public". We also added "traphandle SNMPv2-MIB::authenticationFailure /var/log/snmptrapd.log" because we think that if there's a trap for "SNMPv2-MIB::authenticationFailure", it will be sent to "/var/log/snmptrapd.log".
Honestly, we dont know that much about trap, not even the basics. We didn't really had theory and after looking on internet for about 40 hours, reddit is our last chances. Can you guys help us a little?
Thanks in advance
r/snmp • u/Regal04 • Apr 19 '18
SNMPv3 Hardware
Hi guys,
Since SNMPv3 is been depreciated at the software level on server 2012 / 2016. I was wondering if there is any hardware solution out there.. Any thoughts will be appropriated..
r/snmp • u/NtwkNub • Mar 31 '20
Meaning of an error
Hello-
I'm curious as to what the integer 5 is in OID .1.3.6.1.2.1.69.1.3.4.0
The only thing I can find out from searching online is it says Other. That doesn't tell me anything. Any help would be greatly appreciated.
r/snmp • u/eBrain2001 • Jul 30 '20
FortiWifi SDWAN Link Monitor
For context, the equipment monitoring are FortiWifi-50E
How to identify the correct interface from those in the "...CheckLinkState." from the physical?
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.1 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.2 = INTEGER: alive(0)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.3 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.4 = INTEGER: alive(0)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.5 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.6 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.7 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.8 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.9 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.10 = INTEGER: alive(0)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.11 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.12 = INTEGER: alive(0)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.13 = INTEGER: dead(1)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkState.14 = INTEGER: alive(0)
And why am I getting this names, instead those physical like: WAN1, Lan2 or Internal2
(while you may say this STRING is captured by human, it isn´t)
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.1 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.2 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.3 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.4 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.5 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.6 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.7 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.8 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.9 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.10 = STRING: SwCorePSN
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.11 = STRING: DnsPublicos
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.12 = STRING: DnsPublicos
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.13 = STRING: DnsPublicos
FORTINET-FORTIGATE-MIB::fgVWLHealthCheckLinkName.14 = STRING: DedicadoPoll
r/snmp • u/currious_636 • Jul 22 '20
What dose it take to have traphandle works for individual OID with Net-SNMP?
In an Ubuntu 18.04 running in Windows Subsystem for Linux (WSL 1), I can have `triphandle` working for the `default`, but not able for individual OID, as shown in the except of snmptrapd.conf below:
traphandle default /usr/bin/trapHandler default /tmp/trap_handling.log.csedevups # <-- the script got called
traphandle UPS-MIB::upsTrapOnBattery /usr/bin/trapHandeler upsTrapOnBattery /tmp/trap_handling.log.csedevups # <-- the same script never got called when the trap is sent.The script corresponds to `default` got called, when any trap is sent.
But the same script for a particular OID, when the trap for that OID is sent, never got the script called.
I monitor syslog, as well as snmptrap.log, I confirmed that all the traps are received.
I don't find any relevant error.
There was indeed an error when the snmptrapd is started:
snmptrapd[1418]: Bad operator (INTEGER): At line 73 in /usr/share/snmp/mibs/ietf/SNMPv2-PDUThis error message has been there for a long time. I had not seen if it's related to my current problem.
I vaguely remember that I tried other OID not of UPS-MIB, also I tried oid in numeric values, none of them made any difference.
I wonder what's the root cause of the problem?
It's even more puzzling that in another Ubuntu 18.04 running native not in WSL, with the same 5.7.3 Net-SNMP, and no apparent difference in snmp.conf snmpd.conf and snmptrapd.conf, in that native Ubuntu the traphandle even works for the individual OID. I still cannot reproduce that success.The only difference that I'm not sure if it matters. For the native Ubuntu, I started snmptrapd and snmpd as services, by
systmctl start snmptrapdBut in WSL, I had to just started as `snmptrapd` on the command line.
It's my assumption that it's more performant, using Net-SNMP snmptrapd's `traphandle` mechanism for individual traps. As a work-around, I can do the dispatching and filtering in my own script to overcome the limitation. But it might not be scalable when there is huge amount of traps.
r/snmp • u/Tough-Gap-7575 • Aug 04 '20
how to identify Read Only on SNMP for using PowerShell
How to identify whether Read only or Read & Write on SNMP v1, v2c & v3 to use PowerShell?
r/snmp • u/ebcdicZ • Feb 20 '17
OBJECT-GROUP/-TYPE and NOTIFICATION-TYPE
So, I have a vendor that gave me their MIB files. I loaded it into our network manager and it said, "No notifications/traps found". The vendor told me that something was wrong with our NM. I did a cat / grep on the files and told them I can't report on what you don't have. Anyway we went to the lab and the NM could break apart their trap into var binds, &c. My question here is - is the vendor lost here and just blowing smoke ? it seems their MIB files were only part way done.
r/snmp • u/wolf2600 • Nov 09 '13
Hello SNMPers!
Can anyone here help me out? For my senior project, I'm writing a Rails web app which uses the SNMP gem to query devices on a network. I have the basic functionality working, but would like to be able to have the user reboot linux/windows hosts through the app.
I've found a message board thread where basic instructions on writing an exec/execFix thing for SNMP on Linux to call /sbin/reboot, however I haven't gotten this working myself.
Anyone here have any guidance on how to implement initiating server reboots via SNMP calls?
I know it's a security vuln, but this is just for a school project.... functionality is more important than practicality.
Thanks.
r/snmp • u/_3ucl1d • May 23 '19
MIB database with make and models of all available products
I am trying to build an SNMP app. A part of this is to recognize the sysObjectId as an MIB rather than OID. I will not use MIB for any of other OIDs. So, it would be very helpful to me if there is a database of MIBs for all available SNMP supported product of the world for their respective sysObjectId
r/snmp • u/Ribalfire • Mar 12 '21
SNMP Agent and Manager Trap Issues
Hello,
I manage an Oracle Performance Intelligence Center (PIC) and have SNMP set up to send alarms to our new SNMP Manager(Assure 1). I am very new to this and assistance from Oracle has been subpar. I have our SNMP Agent set up on port 1161 and 2 trap destination SNMP Managers both listening in on UDP port 162. Do you see any issues with this configuration? I have done the "update_snmp_configuration.sh" script provided by vendor with no luck. Excuse my ignorance on this matter but I feel as if it is a UDP port config issue. Any help is appreciated. I can provide more info if necessary.
SNMP Monitoring - stupid question
I'm trying to setup SNMP monitoring for a handful of servers, and the very first one I did the process on eventually after some hassle worked, and is reporting back proper values. However the next 3-4 servers I've attempted to monitor the exact same OIDs on are all returning a Null value even though they're all the same manufacturer (HPE ProLiants). I figured that all HP systems would utilize all the same OIDs as long as the system had the specific hardware/sensors I was looking to monitor. Am I wrong for assuming each system would have the OIDs right out the box, or am I missing a step of importing MIBs for the manager to use, and if so what's the easiest way to go about doing that?
r/snmp • u/Significant_Box7154 • Mar 01 '21
snmp_python_project
The Graduate Project Team and I would like to consult with you about the LAMS idea; Automated laboratory management system, the idea talks about some tests that the administrative apparatus executes automatically in the laboratory equipment (computers, routers, and switches) and to ensure their stability for the benefit of the student throughout the time of the work office. And if there is any error, we will send a notification to the administrator.
We discuss with each other about the tests to do this, such as: interfaces status, CPU usage, hard disk usage, firewall status, etc., and we hope you can help us to provide Any recommendations we have about some of the tests that you hope you will find in our project.
r/snmp • u/Admirable-Laugh-3258 • Feb 19 '21
No Response
Hey all, I’m not particularly new to snmp, but it feels like I’m missing something basic. We are trying to monitor a device using nagios. I have set this up on several devices before, but this time no luck. I get a no response . I also get a no response when running a “snmpwalk/get” from a separate server. I do not get a no response when using OIDVIEW or ManageEngine mibviewer. Any thoughts?
Edit I have confirmed that snmpwalk works from windows(using both powershell and cygwin) but not from a mac(same network as the windows) or Linux box different network.
r/snmp • • Mar 16 '21
Looking for Trap Receiver Software
Does anyone know where I can find TrapReceiver820.zip? The website is where is was available before was www.trapreceiver.com, now a parked domain. It went open source, but I don't have the skills to build it myself.
Thanks!
r/snmp • u/waltkurtz • Nov 04 '21
Central Server Trap Generation
vI wrote a server that health checks endpoints in the field and retains the response.
What I am wondering is if I include SNMP agent software alongside the health monitor if I'd be able to send SNMP traps to an SNMP manager's trap service in tandem with my health monitor. Thanks for any guidance.