snmp v3 on check_nwc_health plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
nym240
Posts: 15
Joined: Thu Feb 15, 2018 5:56 pm

snmp v3 on check_nwc_health plugin

Post by nym240 »

Hi,

I was trying to use check_nwc_health plugin to monitor a device via SNPv3.

Here's the full command (im trying to list all interfaces first, just to see if the command works):
/usr/local/nagios/libexec/check_nwc_health --hostname host1 --protocol 3 --username 'user' --authprotocol sha --privprotocol aes --authpassword 'authpass' --privpassword 'privpass' --contextname '' --mode list-interfaces


but im getting below error:

CRITICAL - cannot create session object: Received usmStatsWrongDigests.0 Report-PDU with value 27 during synchronization

Maybe someone using v3 on this plugin can help me, I've been stuck with this for few days now, I cant get concrete answers on any forums I read.
User avatar
lgute
Posts: 410
Joined: Mon Apr 06, 2020 2:49 pm

Re: snmp v3 on check_nwc_health plugin

Post by lgute »

Hi @nym240,

Thanks for reaching out.

You could try the suggestions from this post. It suggests using the --verbose flag and running tcpdump, to get more information.
Please let us know if you have any other questions or concerns.

-Laura
nym240
Posts: 15
Joined: Thu Feb 15, 2018 5:56 pm

Re: snmp v3 on check_nwc_health plugin

Post by nym240 »

Hi Laura,

Tried to do it but it doesnt give me anything.
I tried to use snmpwalk with the same credentials, although the auth and priv protocol is in 256. Not sure now if my command format is correct.

PROD [root@server ~]# snmpwalk -v 3 -u monitoring -l authPriv -a SHA-256 -A authpass -x AES-256 -X privpass 10.74.XX.XX system SNMPv2-MIB::sysDescr.0 = STRING: Linux FWA01 3.10.0-1160.15.2cpx86_64 #1 SMP Wed Nov 6 12:47:33 IST 2024 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2620.1.6.123.1.91
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1276453652) 147 days, 17:42:16.52
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING:FWA01
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.7 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.8 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.9 = OID: SNMP-NOTIFICATION-MIB::snmpNotifyFullCompliance
SNMPv2-MIB::sysORID.10 = OID: NOTIFICATION-LOG-MIB::notificationLogMIB
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.9 = STRING: The MIB modules for managing SNMP Notification, plus filtering.
SNMPv2-MIB::sysORDescr.10 = STRING: The MIB module for logging SNMP Notifications.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (2) 0:00:00.02
SNMPv2-MIB::sysORUpTime.10 = Timeticks: (2) 0:00:00.02
User avatar
lgute
Posts: 410
Joined: Mon Apr 06, 2020 2:49 pm

Re: snmp v3 on check_nwc_health plugin

Post by lgute »

Hi @nym240,

Looking at the documentation on Github https://github.com/lausser/check_nwc_health and their "official" documentation http://labs.consol.de/nagios/check_nwc_health, it may not support v3. All the examples use a community string.
Please let us know if you have any other questions or concerns.

-Laura
Post Reply