Page 1 of 1
single process Memory utilization monitoring using snmp.
Posted: Tue Aug 20, 2019 10:21 pm
by udaykumar
Hi Team,
I need help from you how to enable the snmp monitoring using MIB files. Few some configurations has done before for the cpu utilization but i am not understanding how they enabled it using MIB/OID.
1) Using Uploaded MIB currently cpu utilization is monitoring , The command is below
[
[email protected] ~]$ /usr/local/nagios/libexec/check_snmp -H XXXX -P 2c -C XXXX -o ISILON-MIB::tempSensorValue.2 -l "CPU1 Temperature" SNMP OK - CPU1 Temperature 54.750000 | 'CPU1 Temperature'=54.750000
I understand that the above command to get the cpu utilization using snmp, but my confusion is how they are come to know that
ISILON-MIB::tempSensorValue.2 -l "CPU1 Temperature" is belongs to CPU temperature.
Find the attachment for MIB files.
The same i want to monitor the memory utilization for single process in same device. How to know that the particular STRING in mib file is belongs to memory utilization. Could you please help with me.
Re: single process Memory utilization monitoring using snmp.
Posted: Wed Aug 21, 2019 12:58 pm
by tgriep
When polling a device using the SNMP command and you are using the name of the object like tempSensorValue, what the command does is to look in the MIB files in the /usr/share/snmp/mibs folder for the name specified in the command.
If the MIB file, it defines which name (OID) that is mapped to the specific hardware / device / etc it is checking.
In your example, you specify the ISILON-MIB MIB do look in that MIB file and you should see the descriptions of the OID's and what the mean, etc.. but is the manufacturer did not put the info in the file, it may not be there.
You can also search the Manufacturers site for that information or search the web.
There is a tool you can use to translate the MIB files. The following example will display the OID number and the description of it. You need to replace <FILENAME> with the actual name if the file and oyu need the full path as well.
Code: Select all
snmptranslate -m /usr/share/snmp/mibs/<FILENAME> -Tz
Search the output of the translate to see if you can file the name of the OID for memory utilization.
http://www.circitor.fr/Mibs/Html/I/ISILON-MIB.php
http://doc.isilon.com/onefs/8.1.1/help/ ... oring.html
For more details, take a look at these links.
https://en.wikipedia.org/wiki/Simple_Ne ... t_Protocol
https://en.wikipedia.org/wiki/Managemen ... ation_base
https://support.nagios.com/kb/article/s ... ol-49.html
Re: single process Memory utilization monitoring using snmp.
Posted: Thu Aug 22, 2019 9:37 pm
by udaykumar
We have used the below suggested command and searched for the memory but we could you not find any details which we required to monitor the singleprocess memory utilization.
snmptranslate -m /usr/share/snmp/mibs/<FILENAME> -Tz
Could you please help with that.
Re: single process Memory utilization monitoring using snmp.
Posted: Fri Aug 23, 2019 8:14 am
by tgriep
The translated MIB file looks like it more for hardware statuses and not processes running on the device.
You would have to go to the Manufacturer's support site to see if you can find a MIB file that has the information you are looking for or post on their forums for help.
Re: single process Memory utilization monitoring using snmp.
Posted: Mon Aug 26, 2019 9:47 pm
by udaykumar
Hi Team,
We got the someother MIb and uploaded in Nagios and we tried with OID but still we are not getting right output. could you please help with how to resolve this.
[root@ACPHO ~]# /usr/local/nagios/libexec/check_snmp -H auk1 -C XXXXX -P 2c -o ISILON-MIB::fanSpeed.1 -l
"Chassis Fan 1 RPMs"
SNMP OK - Chassis Fan 1 RPMs No Such Instance currently exists at this OID |
[root@ACPHOF~]# /usr/local/nagios/libexec/check_snmp -H auk -P 2c -C XXXXX -o ISILON-TRAP-MIB::lwioMemoryThrottlingCrit
SNMP OK - No Such Object available on this agent at this OID |
root@ACPHO1 ~]# snmptranslate -Tz -m /usr/share/snmp/mibs/ISILON-TRAP-MIB.mib >> /home/testing/isilon.txt
Did not find 'nodeSerialNumber' in module ISILON-MIB (/usr/share/snmp/mibs/ISILON-TRAP-MIB.mib)
Re: single process Memory utilization monitoring using snmp.
Posted: Tue Aug 27, 2019 10:07 am
by tgriep
The ISILON-TRAP-MIB file is for SNMP Traps definitions and for the most part, you cannot poll SNMP Traps.
The difference between a poll and a trap is which device initiates the communication.
An SNMP poll is initiated by the server and the router, switch or remote system responds to the server.
An SNMP trap is initiated by a router, switch, remote system when it has information to send (usually some event happened) and does not want to wait for the server to ask for information.
Most TRAPS cannot be polled so that is why the lwioMemoryThrottlingCrit check failed.
Take a look at this.
https://www.dell.com/community/Isilon/I ... -p/6954484
For the FAN speed, you want to run a snmpwalk command which will walk all of the OIDs and display them. Then from there, you can determine the OID sub number to use in the check. (What to put in place of the .1 in the -o ISILON-MIB::fanSpeed.1 option)
Code: Select all
snmpwalk auk1 -c XXXXX -v 2c -m ALL ISILON-MIB::fanSpeed
Re: single process Memory utilization monitoring using snmp.
Posted: Tue Aug 27, 2019 7:26 pm
by udaykumar
You mean to say ISILON-TRAP-MIB and ISILON-MIB both files are different.
I understand traps comes from network devices.
Small doubt by seeing Files how we can know that this file is belongs to trap(ISILON-TRAP-MIB) and this belongs to snmpwalk(ISILON-MIB).
How could you find that both files are different. I checked by snmptranslate command on ISILON-TRAP-MIB but its giving the Collection of OID.
Re: single process Memory utilization monitoring using snmp.
Posted: Wed Aug 28, 2019 10:18 am
by tgriep
Yes, both of the files should be different, very different.
I don't have the ISILON-MIB file that you have but I downloaded a copy of it and it is very different from the ISILON-TRAP-MIB file and is should be so.
Open them up with a text editor and see what they look like and you will see what I mean.
One thing to note, what you are checking may not be possible. The device may not offer the memory utilization over SNMP.
We do not have access to the equipment that you are polling so we cannot test it but to truly find out if the device can be polled for what you want, you need to contact the manufacturer of the device.