Giter Club home page Giter Club logo

Comments (7)

powersj avatar powersj commented on June 4, 2024

In 1.29.4, I am no longer receiving any metrics.

To be clear, you are not getting any results from this plugin? Can you please provide the output from [[outputs.file]] output you see no x509_cert metrics generated?

Can you also provide your full telegraf logs?

You debug output appears to be identical except for the addition of the location field.

from telegraf.

shawn3231 avatar shawn3231 commented on June 4, 2024

telegraf.log

from telegraf.

shawn3231 avatar shawn3231 commented on June 4, 2024

We don't appear to be using [[outputs.file]] in our conf file. Is this needed for x509_cert plugin? Yes I noticed the only difference between telegraf 1.25.3 and 1.29.4 is the one extra line about location.

from telegraf.

powersj avatar powersj commented on June 4, 2024

Is this needed for x509_cert plugin?

It is not, but it would help understand what is getting produced. The x509 plugin does not return early and produces metrics even on errors. I'd like to eliminate an issue with your outputs and see if the plugin is in fact generating metrics or not.

from telegraf.

shawn3231 avatar shawn3231 commented on June 4, 2024

ok, I think I found my issue, in my conf files both x509 include:
[inputs.x509_cert.tags]
type = "RDP_Cert" or "SSL_Cert" to differentiate and make it easier to find. It looks like in one of the newer versions, x509_plugin added a metric of type which conflicts and overwrites the type I defined.

1.29.4:
x509_cert,host={Servername},type=root expiry=8031952i,enddate=1720099223i 1712067270000000000
x509_cert,host={Servername},type=leaf expiry=1055741i,enddate=1713123012i 1712067270000000000

1.25.3:
x509_cert,host={Servername},type=RDP_Cert expiry=8031712i,enddate=1720099223i 1712067510000000000
x509_cert,host={Servername},type=SSL_Cert enddate=1713123012i,expiry=1055501i 1712067510000000000

from telegraf.

shawn3231 avatar shawn3231 commented on June 4, 2024

Confirmed, after making the change and adjusting my query:
[inputs.x509_cert.tags]
certtype = "RDP_Cert" or "SSL_Cert"

Output reports:
x509_cert,certtype=RDP_Cert,host={Servername} expiry=8030902i,enddate=1720099223i 1712068320000000000
x509_cert,certtype=SSL_Cert,host={Servername} expiry=1054691i,enddate=1713123012i 1712068320000000000

from telegraf.

powersj avatar powersj commented on June 4, 2024

Confirmed, after making the change and adjusting my query:

Thanks for confirming!

from telegraf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.