Deployment Architecture

Configure SNMP trap in UNIX

anirbanukil
Explorer

I went through the documentation at "http://docs.splunk.com/Documentation/Splunk/4.2.2/Admin/SendSNMPtrapstoothersystems" but unable to understand how "traphosts.pl" is going to execute "sendsnmptrap.pl"?
Moreoever, I am not sure how to test if my scripts are working fine.
My Splunk(4.2) installation is on Solaris 10.5.

Please help.

Tags (2)
0 Karma
1 Solution

anirbanukil
Explorer

Basically what I did is I ignored "traphosts.pl" and created a script "sendsnmptrap.pl" and executed it from Splunk alerts instead of "traphosts.pl" as mentioned in the document (which is misleading).

Please note: the '$cmd' and its contents should be in a single line otherwise you may not see the trap message details (as it happened in my case).

View solution in original post

0 Karma

anirbanukil
Explorer

Basically what I did is I ignored "traphosts.pl" and created a script "sendsnmptrap.pl" and executed it from Splunk alerts instead of "traphosts.pl" as mentioned in the document (which is misleading).

Please note: the '$cmd' and its contents should be in a single line otherwise you may not see the trap message details (as it happened in my case).

0 Karma

Takajian
Builder

You need to create just "traphosts.pl". The script "sendsnmptrap.pl" is just sample, you copy it and past it in "traphosts.pl".

Then, please test it by referring to the manual.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...