Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Generic Trap Receiver – Logexporting

Solved523 views30th April 2024
0
Christoph Amrein [DevOps Member]87 17th April 2024 0 Comments

Hello everyone,

In recent months, I've been working on API integrations and SNMP monitoring. So far, I've been successful in monitoring devices, applications, and workflows reliably, triggering alarms accordingly. Now, I've received a new task where I need to filter a specific line in local log files of an application. Once this line appears, I'm supposed to trigger an alarm in the data miner.

Unfortunately, the log file isn't on any share, and we don't have a central logging tool like Loki, Graylog, etc. Therefore, I thought I could write a PowerShell script to check the log files for new entries, and as soon as the corresponding entry appears, I could trigger an SNMP trap via PowerShell.

The log entry has the following structure:

05.04.2024 14:23:24 105ms Change Trunk Navigator Mode from "Active" to "Undefined !!"

Would this be possible with the Generic Trap Receiver? Unfortunately, I haven't had any experience with SNMP traps so far, and there's a possibility that I might misunderstand something here.

With the command below, an example trap should be triggered:

snmptrap -v 2c -c public $trap_rec 1.3.6.1.4.1.1234.1.0.1 s "Test trap" 1.3.6.1.4.1.1234.2.0.1 i 42

When I execute the command, unfortunately, I don't see anything in the stream viewer, even if I specify the port in the address. Could someone perhaps give me a hint whether I'm on the right track here or if I should look for another solution?

Thank you very much. Christoph

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th April 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Miguel Obregon [SLC] [DevOps Catalyst]18.56K Posted 19th April 2024 2 Comments

Hi Christoph,

As far as I know, you will not be able to see the SNMP trap through the Stream Viewer.

The connector Generic Trap Receiver should be able to capture the trap. The main parameter that you need to check is the Trap Source IP Address. This parameter should point to the IP address where the trap is being sent.

For debugging purposes, the first thing that you could check is if the trap arrives the server where the DMA is running. You could use Wireshark to capture the traffic and confirm that the SNMP trap arrives the server.

The next step is to check the logging of the SLSNMPManager process. You could check this log file in Cube (System Center -> Logging -> Tab 'DataMiner '-> SNMP Manager. In order to see the traps you will need to override the log levels to 5 (Log Everything). More information can be found in DataMiner Docs (DataMiner logging)

If you are able to see the trap in the log file, then we are sure that the DMA is able to receive successfully the SNMP trap. If the trap is not displayed in the 'Trap table', please check the element log file to troubleshoot trap processing issues.

Hope it helps.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th April 2024
Christoph Amrein [DevOps Member] commented 29th April 2024

Hello Miguel,

Just wanted to drop you a quick note to say thanks for your fantastic input. We’ve decided to go with User Defined APIs for now, as they seem to fit the bill perfectly. Appreciate your support!

Miguel Obregon [SLC] [DevOps Catalyst] commented 29th April 2024

You’re welcome!

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin