Page 1 of 1
find the SMP OIDs for CPU & Memory Usage
Posted: Thu Sep 09, 2021 3:11 pm
by rnjie
is there a way to find what OID's are beings used for a particular service to monitor on a particular host
Re: find the SMP OIDs for CPU & Memory Usage
Posted: Fri Sep 10, 2021 11:11 am
by gsmith
Hi
In this screen capture I show you two ways to find the OID, you'll have to
rename the file from .txt to .mp4
oids.txt
Thanks
Re: find the SMP OIDs for CPU & Memory Usage
Posted: Fri Sep 10, 2021 12:38 pm
by rnjie
i am not able to open the file even after renaming it, Please can you find another way?
Re: find the SMP OIDs for CPU & Memory Usage
Posted: Fri Sep 10, 2021 3:28 pm
by rnjie
Never mind , i was able to play the video, However it doesnt show me any OIDs, just the performance data. see attachment below
Re: find the SMP OIDs for CPU & Memory Usage
Posted: Mon Sep 13, 2021 9:20 am
by gsmith
Hi,
Please follow the process that begins 33 seconds into the video. This process
uses the Core Config Manager to show the definition of the service.
Let me know what it shows you.
Thanks
Re: find the SMP OIDs for CPU & Memory Usage
Posted: Mon Sep 13, 2021 4:00 pm
by rnjie
Am sorry but that doesnt show any OIds, it just shows the arguements used to monitor the service like in the attachment
Re: find the SMP OIDs for CPU & Memory Usage
Posted: Tue Sep 14, 2021 6:15 pm
by benjaminsmith
Hi,
I haven't had a chance to watch the video, but for any type of SNMP plugin, you'll usually find the OID's for each check hardcoded at the top of the script.
Nagivate to
/usr/local/nagios/libexec and you'll find the plugin there, open it and find the system your are checking to see the OID strings. For example, on a Linux system, its:
# Linux load
my $linload_table= "1.3.6.1.4.1.2021.10.1"; # net-snmp load table
my $linload_name = "1.3.6.1.4.1.2021.10.1.2"; # text 'Load-1','Load-5', 'Load-15'
my $linload_load = "1.3.6.1.4.1.2021.10.1.3"; # effective load table
Let us know if that helps or if you have more questions. Thanks, Benjamin