icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading SNMP Splunk MA App for Netcool
SHA256 checksum (snmp-splunk-ma-app-for-netcool_410.tgz) 26afdad9ad9b4b9f722c3d33b60a331ceaae0232bc52111f8795419d54a01f08 SHA256 checksum (snmp-splunk-ma-app-for-netcool_30.tgz) b0a5c9ed3765057f7081cf2fa32cdc6fc47031bb925bfb55d582017f0657c7ad SHA256 checksum (snmp-splunk-ma-app-for-netcool_20.tgz) ddbbff94dc288f6aae38b944c7823a3323961946b77419c04250ff3f6bc9e34d SHA256 checksum (snmp-splunk-ma-app-for-netcool_10.tgz) fd4d484a997ac5421b206f1886aae6cd868d9ee268bd3bebe8d92b9411ef482e
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

SNMP Splunk MA App for Netcool

Splunk Labs
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
The Splunk SNMP Modular Alert App is designed to have custom alerts sent as SNMP Traps from Splunk to the Netcool Application using Splunk variables. This app can also send traps to any SNMP Trap receiving device.

Configuration

To use this add-on, manually configure the Splunk Alert with the following properties

1. Configure the search for the alert
2. List the alert to "Add to Triggered Alerts"
3. List another alert action to include "Netcool Custom Modular Alert"
    1. Server IP : Specify the SNMP Server IP Address and Port numbers as per the below format
        "IP_Address_1:Port_Number_1;IP_Address_2:Port_Number_2"
    2. Community : Specify the SNMP Community, Ex : Public
    3. Host Name : Specify the host field from Splunk search like $result.splunk_field_name$. Note that 
        any field listed here must be part of the result from the search powering the alert.
    4. Custom Text : Specify any text you would like to send over in the trap.
    5. Alert Message : Use $result.splunk_field_name$ to pass in fields from Splunk search to create your 
       custom Alert Message
    6. Severity : Specify severity as a value from 0-5 / Specify type in the text $result.splunk_field_name$ to
       pass in the field name from Splunk Search
        0 : Clear; 1 : Intermediate; 2 : Warning; 3 : Minor; 4 : Major; 5 : Critical
    7. Escalation : Specify the escalation parameter as the group to which you'd like to send the trap to
    8. Alert Key : Specify a Unique Alert Key. Can be a combination of fields from splunk search. Reference the
       fields as $result.splunk_field_name$
    9. Enterprise OID : This is unique to the company that uses the Netcool Tool. This field can be used to
       enter the Enterprise Specific OID to send netcool traps.
    10. Specific OID : This field combined with the Enterprise OID forms the unique identifier to send in the
        traps over SNMP. 
    11. Specific Trap ID : This field combined with the Enterprise OID forms part of the message delivered to
        Netcool sent over SNMP.

=== Netcool Configuration File ===
On the netcool end, please configure in the below format:
case ".1.2.3.4.5.6.7.8":
switch($specific-trap) { //In the Sample Alert Configuration, the $specific-trap matches the value entered in Specific Trap ID, i.e, 10.
case "0": ###-Splunk Alert
$hostname = $1
$customtext = $2
$alertkey = $3
$alertmessage = $4
$splunkapp = $5 //This is the app in which the alert was setup
$severity = $6
$escalation = $7
$splunksearch = $8 //This is the name of the alert that was setup to send SNMP Traps in Splunk

=== Sample Alert Configuration ===

Search : sourcetype=pan:traffic| top limit=20 bytes, host, user, _time
List in Triggered Alerts : Enabled
Alert type : Real Time
Alert Mode : Once Per Result
Trigger Actions : Add to Triggered Alerts ; Severity : High
Trigger Actions : Netcool Custom Modular Alert
    Server IP : 172.16.235.129:10162;192.168.0.18:10152
    Community : public
    Host Name : $result.host$
    Custom Text : $result.host$ is the custom Text
    Alert Message : $result.host$ is the alert Message
    Severity : 0
    Escalation : Linux Admins
    Alert Key : UniqueKey
    Enterprise OID : 1.2.3.4.5.6.7.8
    Specific OID : 9
    Specific Trap ID : 10

Once the above alert has been configured, I had installed PRTG Monitor on my windows machines (IP : 172.16.235.129 and 192.168.0.18) to view the traps on their specific ports. A sensor probe called SNMP Trap Monitor was configured to listen in on my MAC IP Address for SNMP Traps. As soon as alerts start to trigger, the traps collect on the PRTG Monitor Message board.

Here is a quick way to find out if your traps are being sent and a single point view to the errors:

  1. While setting up your alert, make sure to “Add to Triggered Alerts”, for testing purposes.
  2. As soon as you see events coming in the Triggered Alerts page, put in this search string in your search bar : index=_internal source="*/log/splunk/netcool_custom_modular_alert.log"
  3. Select “Last 5 minutes” as your time range. This will give you the most recent logs.
  4. An ideal log would show you your trap.
  5. Error events from here would help you get to debugging the actual issue faster.

Release Notes

Version 4.1.0
Oct. 14, 2022

Updated for Python 3

Version 3.0
April 4, 2019

Fixes the issue around the community field's interpretation in the traps.

Version 2.0
July 10, 2017
Version 1.0
May 26, 2017

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.