Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hey all, this may look a little familiar because it is. I found an answer to a tangential issue that came up in my previous thread but it didn't fix my initial issue. Here's the updated version...
I finally found a MIB that has OIDs for TxBytesPerSec and RxBytesPerSec for my DL360 servers but I don't know enough about snmp yet to figure out how to include the interface. Here's what I want from the MIB:
cpqLinOsNetworkInterfaceTxBytesPerSec OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Number of bytes per second that were transmitted from the network
interface."
::= { cpqLinOsNetworkInterfaceEntry 5 }
I'm guessing from the first line that I need the "label" for the interface. Here's what I'm using pulled from snmpwalk:
So if I understand correctly, you are trying to check interface usage by names found in a separate MIB? This will most likely have to be done with a wrapper script, either that or I have misunderstood your scenario.
Usually your device's MIB, or just the generic SNMP mibs have the oids necessary to check port name and bandwidth.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Hi abrist, what I'm looking for is an OID that will give me the current Bytes Per Second and I have yet to find a stock OID that would give me that information. I downloaded a plethora of MIBs from the HP web site and in those MIBs I found cpqlinos.mib that contains the following:
cpqLinOsNetworkInterfaceTxBytesPerSec OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Number of bytes per second that were transmitted from the network
interface."
::= { cpqLinOsNetworkInterfaceEntry 5 }
THAT is what I'm trying to read but I don't know how to associate that OID (is it even an OID?) with the interface I'm trying to monitor. I have found stock OIDs that give a cumulative value for Octets and Unicast Packets and such but nothing that gives a "current value."
I don't have a lot of experience with snmp so I don't know if I'm overlooking something basic, or if I'm even heading in the right direction.
jbruyet wrote:I have found stock OIDs that give a cumulative value for Octets and Unicast Packets and such but nothing that gives a "current value."
These are the default metrics that can be collected through the standard SNMP v2 mibs. If the mib you found is for the device, and not another, you should be able to check it through snmp. You will find the mib name to oid mapping at the following link: http://www.oidview.com/mibs/232/CPQLINOS-MIB.html
You need to run an snmpwalk of your device and check for the oid's presence:
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Nope, that OID isn't in there. I tried several different OIDs from that MIB and none of them are in there. So the server already has OIDs that are pretty much hard coded into the system, right? Therefore I may be out of luck for this search. I guess I can trace runs back to the IDF room, figure out which run is going to which port on which switch and then monitor that port. I was hoping for something a little more direct but that's the way it goes sometimes. Again, thanks for the help.
Can you run a full walk of the device and then attach the walk output to your next post? There may be some oids that cover the metrics you are looking for, but lets start by looking at which actual oids we have to work with:
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
There are a ton of oids that look like windows oids. Did you run this walk against the switch, or a windows server? Which one are you trying to collect the txbytes from?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
I ran this snmpwalk on a Windows server, and it's from this server that I'm trying to pull the information. My primary interest in this is that I've had users complain that their connections to some of my servers run very slowly sometimes and I wanted to alert on that so I could see what those users are doing at that time.
Unfortunately, windows boxes only support the octet counters, not a current throughput.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.