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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • 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
    • 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
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Issues with https request to Prometheus server when request object is returned from “before” QAction

Solved992 views16th May 2024
1
Mark Smith82 25th April 2024 0 Comments

I am trying to get the Prometheus driver working with a Prometheus server that is listening on port 443 using https. Because it is an internal company system the certificate is self signed. The connection is failing with Error : 12030. [ERROR_WINHTTP_CONNECTION_ERROR].

I have been trying to debug the driver and it looks like the http query is being constructed in an object that is returned from a "before" Qaction:
object[] httpCommand = new object[] { "http", new[] { requestType, sIp, credentials[0], credentials[1], httpheaders, timeoutMs }, new[] { httpcommand } };

return httpCommand;
so I can see how it is being built, however I cannot see any code that is sending the request to the prometheus server as I'm not sure how the mechanism that sends the returned object from the Qaction works. I suspect it may be failing due to not ignoring warnings about self signed certificates, but not sure how to debug any further. If this is the case then I am hoping that there will be a flag that can be set in the httpCommand object to ignore the warning. Does anybody know how I can get this information or get more debug info on the failure?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 16th May 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 25th April 2024 0 Comments

Hi Mark,

HTTP communication in the connector is implemented using multithreaded timers. How that works is explained here: https://docs.dataminer.services/develop/devguide/Connector/AdvancedMultithreadedTimersHttp.html.

I'm not aware of a way to bypass the certificate check when using HTTPS. That would probably also be very insecure.

You mentioned that you are using self-signed certificates. What you could try to do is importing it on the DataMiner server that is hosting the element, so that it becomes trusted by that system. The following page explains how you can do that: https://techcommunity.microsoft.com/t5/windows-server-essentials-and/installing-a-self-signed-certificate-as-a-trusted-root-ca-in/ba-p/396105.

If it still doesn't work you could try to debug this further using Wireshark to see what the device actually responds and where exactly it fails.

Tom Waterbley [SLC] [DevOps Catalyst] Edited answer 25th April 2024
You are viewing 1 out of 2 answers, click here to view all answers.
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
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