Page 1 of 1

nagiosxi snmp

Posted: Wed Dec 09, 2020 3:41 am
by mejokj
Hello,

I have configured one snmp service, I need to know which MIB file is used by the service.

Is there any way to find that?

Re: nagiosxi snmp

Posted: Wed Dec 09, 2020 6:03 pm
by ssax
Send us the OID it's using/the plugin it's using and what options you are passing to the plugin and I'll try to find it for you. If it's a 3rd party plugin, please attach it.

Re: nagiosxi snmp

Posted: Thu Dec 10, 2020 1:41 am
by mejokj
Plugin: https://exchange.nagios.org/directory/P ... PI/details https://exchange.nagios.org/directory/P ... em/details



Service check details: /usr/local/nagios/libexec/check_ucs_manager -H XXXX -C XXXX -T fs

Please find the above details

Re: nagiosxi snmp

Posted: Thu Dec 10, 2020 2:44 pm
by ssax
The first one you linked doesn't use SNMP, it uses the remote UCS http/https API.

The second one uses these OIDs, see my added comments which MIBs they are from:
- All I did was google the string of numbers and it shows you were it's found

Code: Select all

# SNMP OIDs for Tests
use constant {
    CT => ".1.3.6.1.4.1.9.9.719.1.15.7.1.33", # CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB
    CI => ".1.3.6.1.4.1.9.9.719.1.15.30.1.25", # CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB
    F  => ".1.3.6.1.4.1.9.9.719.1.15.13.1.7",  # CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB
    PO => ".1.3.6.1.4.1.9.9.719.1.15.56.1.7", # CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB
    FS => ".1.3.6.1.4.1.9.9.719.1.1.1.1.20",    # CISCO-UNIFIED-COMPUTING-FAULT-MIB
};
You can see more info here:

https://www.cisco.com/c/en/us/td/docs/u ... _0100.html

Re: nagiosxi snmp

Posted: Fri Dec 11, 2020 1:36 am
by mejokj
I have uploaded the mib file mentioned.

https://iphostmonitor.com/mib/mib/CISCO ... ING-MIB.my


[root@in-naadmin]# ./check_ucs -H XXXX -C XXXX -T fs
No OID match! Check your -H and -N or -T

It is showing above error

Re: nagiosxi snmp

Posted: Fri Dec 11, 2020 4:20 pm
by ssax
That is not one of the MIBs I listed. Put the MIBs I listed in /usr/share/snmp/mibs or upload them in Admin > Manage MIBs.
- NOTE: You will need to look at the top of each MIB file and look under the IMPORTS section, anything that says FROM MIBNAME under that section means you need to have that MIB on your system as well for the MIB to be complete.

What is the output of these commands?
- Change X.X.X.X to the IP of the UCS server

Code: Select all

snmpwalk -v2c -c 'yourcommunity' X.X.X.X .1.3.6.1.4.1.9.9.719.1.15.7.1.33
snmpwalk -v2c -c 'yourcommunity' X.X.X.X .1.3.6.1.4.1.9.9.719.1.15.30.1.25
snmpwalk -v2c -c 'yourcommunity' X.X.X.X .1.3.6.1.4.1.9.9.719.1.15.13.1.7
snmpwalk -v2c -c 'yourcommunity' X.X.X.X .1.3.6.1.4.1.9.9.719.1.15.56.1.7
snmpwalk -v2c -c 'yourcommunity' X.X.X.X .1.3.6.1.4.1.9.9.719.1.1.1.1.20

Re: nagiosxi snmp

Posted: Mon Dec 14, 2020 9:02 am
by mejokj
Hello

+++++++++++++++++
UCD-DEMO-MIB.txt UCD-DISKIO-MIB.txt UCD-DLMOD-MIB.txt UCD-IPFWACC-MIB.txt UCD-SNMP-MIB.txt UDP-MIB.txt UPS-MIB.txt.txt
[root@-nagios-a mibs]# ll CISCO-
CISCO-BGP4-MIB.txt CISCO-MAC-NOTIFICATION-MIB.txt CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB.mib
CISCO-BGP4.my.txt CISCO-PRIVATE-VLAN-MIB.txt CISCO-UNIFIED-COMPUTING-FAULT-MIB.mib
CISCO-CONFIG-COPY-MIB.txt CISCO-QOS-PIB-MIB.txt CISCO-UNIFIED-COMPUTING-MIB_(1).mib
CISCO-DIAL-CONTROL-MIB.txt CISCO-SMI.txt CISCO-UNIFIED-COMPUTING-MIB.my.txt
CISCO-ENVMON-MIB.txt CISCO-STACK-MIB.txt CISCO-VOICE-COMMON-DIAL-CONTROL-MIB.txt
CISCO-ERR-DISABLE-MIB.txt CISCO-STACK-MIB-V1SMI.txt CISCO-VOICE-DIAL-CONTROL-MIB.txt
CISCO-IF-EXTENSION-MIB.txt CISCO-SYSLOG-MIB.txt CISCO-VOICE-DNIS-MIB.txt
CISCO-ISDN-MIB.mib CISCO-SYSTEM-MIB.txt CISCO-VTP-MIB.txt
CISCO-LOCAL-AUTH-USER-MIB.txt


Snmpwalk outputs
++++++++++++++++++++++++++++
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXX' XXXX .1.3.6.1.4.1.9.9.719.1.15.7.1.33
Timeout: No Response from XXXX
You have new mail in /var/spool/mail/root
Timeout: No Response from
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXXX' ip 1.3.6.1.4.1.9.9.719.1.15.13.1.7
Timeout: No Response from
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXXX' ip .1.3.6.1.4.1.9.9.719.1.15.56.1.7
Timeout: No Response from
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXx' ip ..1.3.6.1.4.1.9.9.719.1.1.1.1.20
..1.3.6.1.4.1.9.9.719.1.1.1.1.20: Unknown Object Identifier (Sub-id not found: (top) -> )
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXX' ip .1.3.6.1.4.1.9.9.719.1.1.1.1.20

Timeout: No Response from
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXXX' ip 1.3.6.1.4.1.9.9.719.1.15.13.1.7
Timeout: No Response from
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXXX' ip .1.3.6.1.4.1.9.9.719.1.15.56.1.7
Timeout: No Response from
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXx' ip ..1.3.6.1.4.1.9.9.719.1.1.1.1.20
..1.3.6.1.4.1.9.9.719.1.1.1.1.20: Unknown Object Identifier (Sub-id not found: (top) -> )
[root@in-nagios-a mibs]# snmpwalk -v2c -c 'XXXX' 10.65.212.12 .1.3.6.1.4.1.9.9.719.1.1.1.1.20
Timeout: No Response from

++++++++++++++++++++++++++
snmpwalk -v2c -c XXXX -H ip
Configuration directives understood:
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1|yes|true|0|no|false)
excludeRequested (1|yes|true|0|no|false)
printStatistics (1|yes|true|0|no|false)
dontCheckOrdering (1|yes|true|0|no|false)
timeResults (1|yes|true|0|no|false)
timeResultsSingle (1|yes|true|0|no|false)
In snmp.conf and snmp.local.conf:
extraX509SubDir string
x509CRLFile string
tlsAlgorithms string
localCert string
peerCert string
alias NAME TRANSPORT_DEFINITION
doDebugging (1|0)
debugTokens token[,token...]
logTimestamp (1|yes|true|0|no|false)
logOption string
mibdirs [mib-dirs|+mib-dirs|-mib-dirs]
mibs [mib-tokens|+mib-tokens]
mibfile mibfile-to-read
showMibErrors (1|yes|true|0|no|false)
commentToEOL (1|yes|true|0|no|false)
strictCommentTerm (1|yes|true|0|no|false)
mibAllowUnderline (1|yes|true|0|no|false)
mibWarningLevel integerValue
mibReplaceWithLatest (1|yes|true|0|no|false)
printNumericEnums (1|yes|true|0|no|false)
printNumericOids (1|yes|true|0|no|false)
escapeQuotes (1|yes|true|0|no|false)
dontBreakdownOids (1|yes|true|0|no|false)
quickPrinting (1|yes|true|0|no|false)
numericTimeticks (1|yes|true|0|no|false)
oidOutputFormat integerValue
suffixPrinting integerValue
extendedIndex (1|yes|true|0|no|false)
printHexText (1|yes|true|0|no|false)
printValueOnly (1|yes|true|0|no|false)
dontPrintUnits (1|yes|true|0|no|false)
hexOutputLength integerValue
dumpPacket (1|yes|true|0|no|false)
reverseEncodeBER (1|yes|true|0|no|false)
defaultPort integerValue
defCommunity string
noTokenWarnings (1|yes|true|0|no|false)
noRangeCheck (1|yes|true|0|no|false)
persistentDir string
tempFilePattern string
noDisplayHint (1|yes|true|0|no|false)
16bitIDs (1|yes|true|0|no|false)
clientaddr string
clientaddrUsesPort (1|yes|true|0|no|false)
serverSendBuf integerValue
serverRecvBuf integerValue
clientSendBuf integerValue
clientRecvBuf integerValue
noPersistentLoad (1|yes|true|0|no|false)
noPersistentSave (1|yes|true|0|


These was the response when we do the snmpwalk

Re: nagiosxi snmp

Posted: Tue Dec 15, 2020 12:39 pm
by mejokj
Any update?

Re: nagiosxi snmp

Posted: Tue Dec 15, 2020 6:36 pm
by ssax
If you're getting no response from those it usually indicates you have the wrong snmp community.

If the OIDs didn't exist you should only see something about an Unknown Object Identifier.

That is strange snmpwalk output on that last one, what OS is your XI server running? What UCS version are you running?

You likely need to configure SNMP on the remote system to allow it to access those OIDs if it doesn't have access.