Page 1 of 2
SNMP Local MIBS Help
Posted: Fri Jul 21, 2017 6:57 pm
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?
Re: SNMP Local MIBS Help
Posted: Sun Jul 23, 2017 10:54 pm
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.
Re: SNMP Local MIBS Help
Posted: Mon Jul 24, 2017 1:06 pm
by sartecat
grep -R "*PULSESECURE-PSG-MIB.txt*" /usr/share/snmp/mibs doesn't return anything.
Re: SNMP Local MIBS Help
Posted: Mon Jul 24, 2017 1:33 pm
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.
Re: SNMP Local MIBS Help
Posted: Mon Jul 24, 2017 2:03 pm
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
Re: SNMP Local MIBS Help
Posted: Mon Jul 24, 2017 3:27 pm
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
Re: SNMP Local MIBS Help
Posted: Mon Jul 24, 2017 4:57 pm
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
Re: SNMP Local MIBS Help
Posted: Tue Jul 25, 2017 9:08 am
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.
Re: SNMP Local MIBS Help
Posted: Tue Jul 25, 2017 1:04 pm
by sartecat
When I run that, I don't even see anything from the PULSESECURE-PSG-MIB
Re: SNMP Local MIBS Help
Posted: Tue Jul 25, 2017 2:11 pm
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.