- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
