Hot answers tagged

31

Sadly, SNMP is still in common usage. Later versions of the protocol have addressed numerous issues in SNMPv1, but those have almost entirely been directed at fixing the security model. As a result, SNMP traffic is now comparitively bloaty, but they have not addressed what I consider to be the glaring shortcoming in SNMP - that data stored in the MIB ...


11

Which version of Ubuntu are you using? Ubuntu probably gets its snmp-mibs-downloader package from Debian, and Debian is very strict about redistributability, so the snmp-mibs-downloader gets its MIBs from public sources, including the actual RFCs and other standards documents in the internet. However, some of those standards documents contain typos and ...


9

Sigh1. Fortunately you don't need /proc/stat man 5 proc: /proc/loadavg The first three fields in this file are load average figures giving the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes. They are the same as the load average numbers ...


8

SNMP's old and crusty. Microsoft has put their SNMP engine in deprecated status, so expect to not even see it included with new versions of Windows. This also sounds like it would be a perfect job for Powershell's new Desired State Configuration, but, DSC is complex. It's a relatively heavy commitment in learning, setting up a pull server, updating ...


7

As PP said, there's no requirement that companies release their SNMP MIBs. Heck, they can even change their MIBs six times a year or keep them completely secret even from their own management as a "security precaution". If you want a MIB, you have to go find it yourself, whether it be from a public RFC, a generous FTP site like Cisco's, or by schmoozing a ...


7

Your router may not support using SNMP to monitor it, but I can assure you it will support SNMP in the sense of passing through data. SNMP sits in the Application Layer - your router doesn't care about that, only Layer 3 stuff.


7

You can setup a trigger prototype using the "nodata" function. You'll need to pick an item that will be in all the monitored systems. Using Device Name (OID: SNMPv2-MIB::sysName.0, key: sysName) in the Template SNMP Generic as an example, you could create a trigger with an expression such as: {Template SNMP Generic:sysName.nodata(5m)}=1 This would fire ...


7

Windows Server 2016 does not support SNMPv3. Microsoft officially states that SNMP is deprecated in Windows Server 2012 and up, so I doubt you'll be seeing anything from Microsoft in the future either. They are all into WinRM and Powershell remoting now. We've had a similar issue a while ago. The way to achieve Windows Server SNMPv3 security compliance is ...


6

Access control is configured per transport. Try replacing rocommunity public with rocommunity6 public


6

%WINDIR%\System32\dllcache\query.exe session will give you a list of all the currently logged on users on WinXP. For some reason, query.exe was not in my path environment variable on my WinXP test machine so that is why I specified the entire path. If you need something that is capable of getting this information remotely over RPC/DCOM, then check out a ...


6

cmot: Unknown Object Identifier shows you that cmot isn't found in known MIBs. You need add device's MIBs to snmp client via cp MY-MIB.txt /usr/share/snmp/mibs or use snmp client without MIB. By example to get system info: snmpwalk -v2c -c public 1.1.1.1 1.3.6.1.2.1.1 Or you can tell the tools to load MY-MIB file for this command only: snmpwalk -m +...


5

For Ubuntu 12.04 (which was causing the same messages for me) the full steps to get SNMP working appear to be as follows : Install snmpd : apt-get install snmpd Ensure the multiverse repository is enabled : apt-get install python-software-properties add-apt-repository 'deb http://archive.ubuntu.com/ubuntu precise multiverse' apt-get update Install the ...


5

Yeah, I really don't know why Net-SNMP doesn't distribute prebuilt binaries with their code. It's bizarre. Anyways, I recently built 5.7.3 for Windows 64-bit (with full support for SSL, IPv6, and SNMP extension DLLs). You can download the binaries here: http://www.mediafire.com/download/5b6xs5u3lajl3s2/net-snmp-windows-x64-5.7.3.7z Because I compiled ...


5

The table OID 1.3.6.1.2.1.2.2.1 contains all important network interfaces objects. You found the right objects ifInOctets (1.3.6.1.2.1.2.2.1.10)/ifOutOctets (1.3.6.1.2.1.2.2.1.16) for tracking received/transmitted octets to/from the interface. If you need to get such statistics per port you need to append an index of port to the table OID, e.g. 1.3.6.1.2.1....


5

rocommunity public default -V systemonly Your read-only community string is public. default represents what traffic will be accepted, which is to say all traffic will be accepted. Change default to be a hostname or a network address and slash annotated subnet to restrict it further (e.g. 10.4.0.0/16). The read-only context will be restricted to the -V ...


5

Snmpbulkwalk initiates internal server repetitions to walk through mib tree. Server does not respond untill it retrives "max-repetitions" number of variables or end of mib tree is reached. Retrieving some variables may demand valuable time. Important note: snmpwalk walks trough a requested subtree exactly but snmpbulkwalk may retreive additional variables (...


5

You need to install the SNMP Tools feature to get those tab pages, e.g. using the Powershell command Install-WindowsFeature RSAT-SNMP. Remember to restart the service manager before opening the properties page again.


5

There's nothing stopping you from using another enterprise's OIDs, but that would be inconsiderate. You're supposed to request your own Private Enterprise Number and use that in building your OIDs/MIBs.


5

I've resolve this issue : vim /etc/snmp/snmptrapd.conf: disableAuthorization yes


5

Yes, you can monitor the standalone ESXi Host using any SNMP monitoring software but some items may only be visible using a monitoring tool that supports the CIM protocol. All of my ESXi Hosts are part of vCenter but we monitor them directly (using the vmkernal Host IP address) with SolarWinds NPM. There are 5 or 6 CIM modules built into ESXi 5.5 that give ...


5

No relation, other than that OID namespace (or hierarchical numbering system) is used for both LDAP object types and SNMP MIB nodes. The OID namespace is standardized by both the International Telecommunications Union (ITU) and IEC/ISO, so it is just a way for companies to have a guaranteed-unique prefix for any new LDAP object types and/or SNMP objects ...


4

It seems you do not have snmp installed. Just do sudo apt-get install snmp


4

The standard 'total page count' is at 1.3.6.1.2.1.43.10.2.1.4.1.1 Different models use different OID for details, such as number of pages faxed/copied/printed/duplex/color/black/....


4

Maybe I'm weird, but I prefer to monitor my ESXi hosts in a vSphere cluster through the vCenter SNMP interface (coupled with email for certain events). That covers most of what I need. So it's alerting about events versus polling the hardware through something like Nagios. Can you clarify which specific items you're most interested in monitoring at the host ...


4

You can't (unless you have two subnets on the same network segment). You have to do this via a machine (or the router) in the Location2 network. Because broadcasts don't cross router boundries.


4

This is documented. Check out the post at HP Blogs called "HP ProLiant Gen8 Agentless Management Overview" -- the relevant portion is copied below. Basically, each array element is the status of a different monitored component. The definition of “cpqHoMibHealthStatusArray”: cpqHoMibHealthStatusArray OBJECT-TYPE SYNTAX OCTET STRING (SIZE (1..256))...


4

Sounds like you are missing the MIB files that do the translation. To install them run: apt-get install snmp-mibs-downloader For licensing reasons they arent included by default. Installing that package will go download the standard ones from the internet. For specific manufactuer's custom SNMP values you will need to find their .mib files from the ...


4

The network devices use CDP to build a table of adjacent devices. You can extract this table with SNMP for a known device, and use it you discover its neighbours and their management addresses. Then you can just repeat the process, assuming your SNMP credentials are good for all network devices on the local network. In principle, you could listen for CDP ...


4

Okay, so here's what my SNMP research has turned up. I can't verify this is all 100% accurate, but I feel that I have a much better grasp on SNMP in general and hopefully this information will help someone who is just getting started. First, SNMP seems to me to be a messy system. It was developed in the late 80s and there's just not a good alternative so I ...


4

With Cacti you are not limited only to SNMP queries. You can choose to run any script of your own as a Data Input Method. It could be Perl, PHP, Python, Bash or whatever. Just choose the Script/Command input type : Your script has to output at least one value. This value will be attached to an output field within Cacti and used later to create the final ...


Only top voted, non community-wiki answers of a minimum length are eligible