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
    • Courses
    • Tutorials
    • Certification
      • DataMiner Operator
      • DataMiner Administrator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
    • Video Library
    • Books We Like
    • Third-party Courses
    • DevOps Enablement Services
    • Quizzes
  • RESOURCES
  • 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)
  • Expert Hubs
    • DataMiner DevOps Professional Program
    • DataMiner
      • DataMiner Releases & Updates
      • System Architecture
      • Integration Studio
      • Visual Overview
      • Security
    • Technologies
      • Converged Interconnect Networks
      • DOCSIS 3.1 / DAA
      • Kubernetes
      • Telemetry / Flow Monitoring
      • PTP
      • SDN / ST2110 / NMOS
    • Business
      • Software Business models
      • Perpetual Use or Usage-based Services
      • Storage as a Service (STaaS)
  • Discover
    • Markets
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Solutions
    • Use Case Library
    • DataMiner Dashboards
    • DataMiner Downloads
    • DataMiner Modules
      • Core features
      • SRM features
    • DataMiner Apps
    • Professional Services
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • Pricing
  • More
    • Feature Suggestions
    • Online DataMiner Systems
    • Leaderboard
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
    • Verify a certificate
  • >> Go to dataminer.services

Correlation rules – Alarm and clear messages.

178 views27th October 2023
0
Håvard Helberg4 26th October 2023 0 Comments

Hi,

I want to execute a script + "send mail" for the triggering alarm, and I want to execute a script + "send mail" for the CLEAR of the alarm.

The reason for this is because I want to have different text/details in alarm and clear messages.

Is it possible?

The way "execute on clear" works now is that it also sends clear message when alarm is triggered + when the alarm is cleared. I want "execute on clear" to work only when clear happens.

I.e. on this picture:

If I choose "Execute on clear" on both script and mail, it will send clear message when alarm triggers + when alarm clears. But since I make a "custom" message both in the script (for sms) and mail, I want it ONLY triggered on clear - not "also".

Vikas Choudhary [DevOps Enabler] Answered question 27th October 2023

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Miguel Obregon [SLC] [DevOps Catalyst]9.34K Posted 26th October 2023 1 Comment

Hi Havard,

I believe in this case a possible option will be sending the email notification in the script:

  • In the correlation rule, create a single action 'Run Script'. You will need to select the option 'Execute on clear'
  • In the script you could perform the following actions (using a C# script block):
    • Read the severity of the alarm that triggered the correlation rule. You could use a snippet available in DataMiner Help (How do I parse Correlation Alarm Info Data?)
    • When reading the severity, you can define a condition that depends of the severity of the alarm. If the alarm severity is 'Normal', this means that the alarm was cleared. You can send an email using the method SendMail (via script). If the alarm severity is different than 'Normal', this means that the alarm was raised. Similar as previous case, you could also send an email via script

Hope it helps.

Wouter Demuynck [SLC] [DevOps Enabler] Posted new comment 27th October 2023
Wouter Demuynck [SLC] [DevOps Enabler] commented 27th October 2023

Alternatively, once could also use the script input parameter to detect whether this is a newly triggered (“up”) or a cleared correlation action (“down”).
( https://docs.dataminer.services/user-guide/Advanced_Modules/Automation_module/Special_parameters_available_in_DMS_Automation_scripts.html )

0
Vikas Choudhary [DevOps Enabler]372 Posted 27th October 2023 0 Comments

I think you can apply filter base on your requirement. you can apply status Cleared filter for that correlation rule.

Vikas Choudhary [DevOps Enabler] Answered question 27th October 2023
0
Vikas Choudhary [DevOps Enabler]372 Posted 26th October 2023 1 Comment

Hello Dear,

may be below link you will get information, how you can setup action for the alarm and can trigger script to send different messages.

Executing scripts from the Alarm Console

Håvard Helberg Posted new comment 26th October 2023
Håvard Helberg commented 26th October 2023

Hi – and thanks for answering. But I’m afraid that didn’t help any. I’ve updated my question with a screenshot + some more text.

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

My Dojo Points

0 Credits
0 Reputation

Question Tag Cloud

adl2099 (58) Alarm Console (55) alarms (73) alarm template (63) Automation (155) automation scipt (74) Automation script (105) backup (55) C++ (40) Cassandra (150) cloud (38) Connector (48) Correlation (42) Cube (120) Dashboard (142) Dashboards (142) database (67) DataMiner Cube (42) DIS (57) DMS (49) DOM (82) driver (52) DVE (45) Elastic (76) Elasticsearch (100) elements (53) Failover (91) GQI (65) HTTP (50) IDP (59) low code app (82) low code apps (50) lowcodeapps (39) MySQL (52) protocol (153) QAction (61) resources (36) security (74) SNMP (61) SRM (287) SRM resources (39) trending (70) upgrade (48) Visio (395) Visual Overview (302)
Privacy Policy • Terms & Conditions • Contact

© 2023 Skyline Communications. All rights reserved.

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