How to send an SNMP Trap notification to non XI user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
msmulpuri
Posts: 27
Joined: Thu Sep 22, 2016 7:40 am

How to send an SNMP Trap notification to non XI user

Post by msmulpuri »

Hello,

Does any body know or come across setting up an SNMP Trap e-mail notification send to a non XI user meaning send to an email distro based on the Trap alert severity. If configured XI users automatically receive the notifications. I am trying to send the Trap notification for example like to a processing team distro. I am not sure if this can be setup within the snmptt.conf file under the EXEC statement. Any guidance is greatly appreciated. We have currently enabled SNMP Traps for Broadsoft servers. Below is an example of the snmptt.conf snippet that I currently have after adding all the Broadsoft Server MIBS.

EVENT bwNetworkRoutingServiceRouteExhaustion .1.3.6.1.4.1.6431.1.1.1.3553 "Status Events" Normal
FORMAT Indicates that all routes have been exhausted to route a call. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Indicates that all routes have been exhausted to route a call. $*"
MATCH $5: 0
SDESC
Indicates that all routes have been exhausted to route a call.
@severity:high-critical
@subcomponent:callp
Variables:
1: identifier
2: timeStamp
3: alarmName
4: systemName
5: severity
6: component
7: subcomponent
8: problemText
9: recommendedActionsText
10: npReason
EDESC


EVENT bwNetworkRoutingServiceRouteExhaustion .1.3.6.1.4.1.6431.1.1.1.3553 "Status Events" Warning
FORMAT Indicates that all routes have been exhausted to route a call. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Indicates that all routes have been exhausted to route a call. $*"
MATCH $5: 1


EVENT bwNetworkRoutingServiceRouteExhaustion .1.3.6.1.4.1.6431.1.1.1.3553 "Status Events" Critical
FORMAT Indicates that all routes have been exhausted to route a call. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Indicates that all routes have been exhausted to route a call. $*"
MATCH $5: 2
MATCH $5: 3

Thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to send an SNMP Trap notification to non XI user

Post by dwhitfield »

That EXEC line will run anything the user that runs that file has access to. You could send mail using any of the commands in https://tecadmin.net/ways-to-send-email ... mand-line/ if you set it up properly.

You may need to talk to your email administrator to get things set up properly.
Locked