SNMP Local MIBS Help

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.
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

SNMP Local MIBS Help

Post by sartecat »

So I have a Pulse Secure device that I want to monitor. I have the MIB file and know what OIDs I want to monitor. Whenever I run snmpwalk... I get the following error.

[root@montest mibs]# snmpwalk -v2c -c public 133.40.169.57 .1.3.6.1.4.1.12532.11
MIB search path: /usr/share/snmp/mibs
Cannot find module (PULSESECURE-PSG-MIB.txt): At line 0 in (none)
SNMPv2-SMI::enterprises.12532.11.0 = Gauge32: 3

I still get the answer, but I don't know why it's saying Cannot find module. I also notice numbers instead of what it is. How do I fix this?
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: SNMP Local MIBS Help

Post by tacolover101 »

i suspect in one of your config files you are referencing PULSESECURE-PSG-MIB.txt, and it can't find it. you can probably run something like grep -R "*PULSESECURE-PSG-MIB.txt*" /usr/share/snmp/mibs to help locate where.
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: SNMP Local MIBS Help

Post by sartecat »

grep -R "*PULSESECURE-PSG-MIB.txt*" /usr/share/snmp/mibs doesn't return anything.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Local MIBS Help

Post by tgriep »

I would guess that the PULSESECURE-PSG-MIB.txt MIB file is corrupted on the server and should be replaced with a good copy.
Both of the issues, the error message and that the text it not being returned by the check points to a bad file.
After replacing it, the snmpwalk should work like expected.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: SNMP Local MIBS Help

Post by sartecat »

This is also happening with other OIDs? Does that mean those other MIBs are corrupted too?

[root@montest mibs]# snmptranslate 1.3.6.1.2.1.43.11.1.1.6.1
SNMPv2-SMI::mib-2.43.11.1.1.6.1
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Local MIBS Help

Post by tgriep »

They are either corrupted or they are not installed on the system.
For most devices, you would have to install the MIB file on the server so the commands can translate the numerical OID's to the descriptive name.
Also, when running the commands, you may have to tell it to search all of the MIB files by adding the -m ALL option.
Try this example if the MIB file is installed on the server.

Code: Select all

snmptranslate 1.3.6.1.2.1.43.11.1.1.6.1 -m ALL
Be sure to check out our Knowledgebase for helpful articles and solutions!
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: SNMP Local MIBS Help

Post by sartecat »

So I redownloaded the MIB file. When I do an snmpwalk, it doesn't show all PULSESECURE-PSG-MIB information. When I put in a specific object ID, it works. When I run snmpget for the same thing. it doesn't.

[root@montest mibs]# snmpwalk -v2c -c public summitssl clusterConcurrentUsers
PULSESECURE-PSG-MIB::clusterConcurrentUsers.0 = Gauge32: 0

[root@montest mibs]# snmpget -v2c -c public summitssl clusterConcurrentUsers
PULSESECURE-PSG-MIB::clusterConcurrentUsers = No Such Instance currently exists at this OID
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Local MIBS Help

Post by tgriep »

The message "No Such Instance currently exists at this OID" means that the device is either not responding to SNMP polls or that the device doesn't support that specific OID.
One thing to try is to run a snmpwalk and not specify an OID.

Code: Select all

snmpwalk -v2c -c public summitssl -m ALL
The above example, it the device is configured correctly should return some data from the device.
Check the output to see if the OID you want to poll is in the output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: SNMP Local MIBS Help

Post by sartecat »

When I run that, I don't even see anything from the PULSESECURE-PSG-MIB
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Local MIBS Help

Post by tgriep »

Then I am guessing that the device doesn't support those OIDs and you would have to contact the manufacturer to see what it does support.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked