Ad Widget

Collapse

Monitoring Jenkins, Template Autodiscovery not working - Timeout

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • muelli
    Member
    • Jun 2021
    • 68

    #1

    Monitoring Jenkins, Template Autodiscovery not working - Timeout

    Hello forum,

    I am trying to monitor failed Jenkins jobs by using the official template.
    So far I can get the metrics data, that looks fine.
    But both auto discoveries are not working, I receive a timeout after 3s while trying to connect to the Jenkins host.
    {$JENKINS.URL} is correct, I use https://jenkins.internal and on the terminal via curl I can get the job list.
    curl -k https://jenkins.internal/api/json
    shows me all my jobs.
    I am using a self signed cert (that is why curl -k is used) for my jenkins and I have a feeling, that might be the problem but I am unsure.

    Does anybody have hint on how o get it working?
    Any help is appreciated!
    Thanks!

  • Answer selected by Markku at 25-06-2022, 13:06.
    muelli
    Member
    • Jun 2021
    • 68

    Answering myself: As I have anonymous read access, I disabled the Basic Auth via Username/Token and Token and voila, working like a charm now!

    Comment

    • muelli
      Member
      • Jun 2021
      • 68

      #2
      Answering myself: As I have anonymous read access, I disabled the Basic Auth via Username/Token and Token and voila, working like a charm now!

      Comment

      Working...