I have around 5000 nodes to send SNMP traps to several monitoring server and every nodes has around 20 service for monitoring the node for management the traps, I want to gather them in another monitoring server, for the purpose. I used Nagios XI to make sure it works.
The 5000 nodes send traps to the monitoring systems (SNMP Senders)and they send the traps to Nagios XI (SNMP Receiver), I do configuration on Nagios to receive traps but I faced with some problems:
1) I need to see traps on Nagios XI per node but when a SNMP sender sends trap to Nagios (SNMP Receiver), Nagios only recognize the sender as source of trap (alarm) but I need to categorize the traps based on name of the nodes.
2) when I uploaded related MIB in Nagios XI and then checked SNMPTT.log, I observed to receive all of traps related to several services only with a OID (.1.x.x.x.x.x.x.x.x.x.7.1.0.1), Also I receive trap of fault/recovery of a issue with the same OID.
when I checked configuration snmptt.conf.nxti and content of every received trap, I observed the form for the OID:
Code: Select all
EVENT xEventNotify .1.x.x.x.x.x.x.x.x.x.7.1.0.1 "Status Events" critical
FORMAT Received trap "$N" with variables "$+*"
EXEC php /usr/local/nagiosxi/scripts/nxti.php --event_name="$N" --event_oid="$i" --numeric_oid="$o" --symbolic_oid="$O" --community="$C" --trap_hostname="$R" --trap_ip="$aR" --agent_hostname="$A" --agent_ip="$aA" --category="$c" --severity="$s" --uptime="$T" --datetime="$x $X" --unixtime="$@" --bindings="$+*"
SDESC
Notification for real-time alarm.
Variables:
1: XNodeName
2: XNodeType
3: XObjectInstance
4: XEventType
5: XEventTime
6: XProbableCause
7: XSeverity
8: XEventDetail
9: XAdditionalInfo
10: XFaultFlag
11: XFaultFunction
12: XDeviceIP
13: XSerialNo
14: XProbableRepair
15: XResourceIDs
16: XAdditionalVB1
17: XAdditionalVB2
18: XAdditionalVB3
19: XAdditionalVB4
20: XAdditionalVB5
21: XAdditionalVB6
22: XAdditionalVB7
23: XAdditionalVB8
24: XEventName
25: XReasonID
26: XFaultID
27: XDeviceType
28: XTrailName
29: XRootAlarm
30: XGroupID
31: XMaintainStatus
32: XRootAlarmSerialNo
33: XConfirmStatus
34: XRestoreStatus
EDESC
Code: Select all
Wed Nov 28 15:33:08 2018 .1.x.x.x.x.x.x.x.x.x.7.1.0.1 Normal "Status Events" 10.x.x.23 - Received trap "XEventNotify" with variables "enterprises.x.x.x.7.1.1.0:Node1 enterprises.x.x.x.7.1.2.0:Nodetype1 enterprises.x.x.x.7.1.3.0:source=Object-instance enterprises.x.x.x.7.1.4.0:typ1 enterprises.x.x.x.7.1.5.0:2018/11/28 - 12:02:54Z enterprises.x.x.x.7.1.6.0:\\(1)Cause1;\\(2)Cause2;\\(3)Cause3. enterprises.x.x.x.7.1.7.0:Critical enterprises.x.x.x.7.1.8.0:detail enterprises.x.x.x.7.1.9.0: additional info enterprises.x.x.x.7.1.10.0:Recovery enterprises.x.x.x.7.1.11.0:type enterprises.x.x.x.7.1.12.0:0.0.0.0 enterprises.x.x.x.7.1.13.0:12579266 enterprises.x.x.x.7.1.14.0: enterprises.2011.2.15.1.7.1.15.0:3147990.-1.6.1.50.1.-1.-1 enterprises.x.x.x.7.1.24.0:Alarm-1 enterprises.x.x.x.7.1.25.0:235 enterprises.x.x.x.7.1.26.0:235 enterprises.x.x.x.7.1.27.0:1955 enterprises.x.x.x.7.1.28.0: enterprises.x.x.x.7.1.29.0:0 enterprises.x.x.x.7.1.30.0:268374017 enterprises.x.x.x.7.1.31.0:0 enterprises.x.x.x.7.1.32.0:"
Are there any solution to solve the problems? would any one help me in the regard?