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

Re: SNMP Local MIBS Help

Post by sartecat »

When I run and specify -m ALL, I get the following output.

[root@montest ~]# snmpwalk -v2c -c public summitssl PULSESECURE -m ALL
PULSESECURE-PSG-MIB::logFullPercent.0 = Gauge32: 0
PULSESECURE-PSG-MIB::signedInWebUsers.0 = Gauge32: 1
PULSESECURE-PSG-MIB::signedInMailUsers.0 = Gauge32: 0
PULSESECURE-PSG-MIB::productName.0 = STRING: "Pulse Connect Secure,PSA-300"
PULSESECURE-PSG-MIB::productVersion.0 = STRING: "8.2R8 (build 56587)"
PULSESECURE-PSG-MIB::iveCpuUtil.0 = Gauge32: 2
PULSESECURE-PSG-MIB::iveMemoryUtil.0 = Gauge32: 4
PULSESECURE-PSG-MIB::iveConcurrentUsers.0 = Gauge32: 1
PULSESECURE-PSG-MIB::clusterConcurrentUsers.0 = Gauge32: 1
PULSESECURE-PSG-MIB::iveTotalHits.0 = Counter64: 42135
PULSESECURE-PSG-MIB::iveFileHits.0 = Counter64: 0
PULSESECURE-PSG-MIB::iveWebHits.0 = Counter64: 41176
PULSESECURE-PSG-MIB::iveAppletHits.0 = Counter64: 0
PULSESECURE-PSG-MIB::ivetermHits.0 = Counter64: 0
PULSESECURE-PSG-MIB::iveSAMHits.0 = Counter64: 0
PULSESECURE-PSG-MIB::iveNCHits.0 = Counter64: 311
PULSESECURE-PSG-MIB::meetingHits.0 = Counter64: 0
PULSESECURE-PSG-MIB::iveSwapUtil.0 = Gauge32: 0
PULSESECURE-PSG-MIB::diskFullPercent.0 = Gauge32: 6
PULSESECURE-PSG-MIB::iveTemperature.0 = Gauge32: 0
PULSESECURE-PSG-MIB::iveVPNTunnels.0 = Gauge32: 0
PULSESECURE-PSG-MIB::iveSSLConnections.0 = Gauge32: 0
PULSESECURE-PSG-MIB::esapVersion.0 = STRING: "3.0.3"
PULSESECURE-PSG-MIB::iveTotalSignedInUsers.0 = Gauge32: 1


But when I remove the -m ALL

[root@montest ~]# snmpwalk -v2c -c public summitssl PULSESECURE
Failed to parse MIB file /usr/share/snmp/mibs/
PULSESECURE: Unknown Object Identifier (Sub-id not found: (top) -> PULSESECURE)

Can I still use those OIDs for check_snmp on Nagios?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Local MIBS Help

Post by tgriep »

If you do not want to specify the -m ALL in the command, you can setup the server to search through all of the MIB files when the command runs.

Create the file /etc/snmp/snmp.conf, and put into it:

Code: Select all

mibs +ALL
This tells the snmp commands that they should load ALL of the mibs when they are executed.
Save the file, quit.
Now run the snmpwalk command and see if the OID's that you are looking for are found.

Another thing, when you put PULSESECURE on the end of the snmpwalk command, it assumes it is an OID and since it is not a valid OID, it fails.

These would be valid OID's

Code: Select all

diskFullPercent
iveTemperature
iveVPNTunnels
iveSSLConnections
esapVersion
iveTotalSignedInUsers
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 »

I actually have that file. I'm actually confuse with the difference between that file and snmpd.conf file. Can you explain what the difference is? I'm on the nagios server.

I also have another post that I'm having problems with. I wasn't sure if I should post it here or create another post.
I was looking through google and found to enter export MIBS=+[File] and export MIBDIRS=+[Directory]. I entered the directory for the file by mistake and now I'm getting "Failed to parse MIB file /usr/share/snmp/mibs/" error at the beginning of an snmpwalk. How do I fix this?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP Local MIBS Help

Post by tgriep »

The snmpd.conf file is for the SNMP Daemon. Notice the letter d in the file name.
The snmp.conf file , notice there is not a letter d in the name, is used for global settings for the walks, etc...
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked