Giter Club home page Giter Club logo

Comments (8)

kYwzor avatar kYwzor commented on June 29, 2024

Hey, @ilyam8 could you please clarify why this issue is being closed? Do you need any more info?

from netdata.

ilyam8 avatar ilyam8 commented on June 29, 2024

Hi. smartd_log (python version) was deprecated in favor of go.d/smartctl, see v1.46.0 deprecation notice.

  • New installations don't have smartd_log.
  • Existing installations (upgrade, your case) still have it. If you need it for some reason - you can still enable it in python.d.conf.

from netdata.

kYwzor avatar kYwzor commented on June 29, 2024

@ilyam8 thanks for the clarification. My issue is that no alternative seems to have been enabled, so I currently have no SMART logging regardless of collector. Do I need to somehow manually activate go.d/smartctl? The docs seem to imply it will be active as long as the necessary setup is in place (which it is).

from netdata.

ilyam8 avatar ilyam8 commented on June 29, 2024

If you need it for some reason - you can still enable it in python.d.conf.

I was wrong, it is not disabled by default in python.d.conf. So it works for existing installations (upgrade). If you have problems with it, you can still debug them like any other python.d module using the debug mode.

Do I need to somehow manually activate go.d/smartctl?

No. It should work if the prerequisites are met.


To troubleshoot issues: debug mode.

Where is your smartctl located? Should be in /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin. If you have it in a different directory, create a symlink to (for example) usr/local/bin and restart Netdata.

from netdata.

kYwzor avatar kYwzor commented on June 29, 2024

smartctl is at /usr/sbin/smartctl, so that wasn't the issue.

I figured it out: I had an empty file at go.d/smartctl.conf which apparently causes the collector to not do anything. After removing it the logging started working correctly. I am a bit perplexed though, because I do not recall creating this file. The upgrade was done automatically via unattended-upgrades about 2 days ago, and I didn't even notice the missing SMART stuff until today. Looking back at the logs of the past two days, SMART wasn't being logged anywhere until I fixed it now.

Well, regardless, thanks for your work on the new collector!

from netdata.

ilyam8 avatar ilyam8 commented on June 29, 2024

an empty file at go.d/smartctl.conf

That is strange! The stock configuration file is not empty.

Can you please check python.d/smartd_log.conf? The fact that python.d/smartd_log stopped working for you is also strange.

from netdata.

ilyam8 avatar ilyam8 commented on June 29, 2024

an empty file at go.d/smartctl.conf which apparently causes the collector to not do anything

Yes, that is how it works. If the file is empty, no jobs will be created. This is why a stock configuration file typically includes at least one job by default.

from netdata.

kYwzor avatar kYwzor commented on June 29, 2024

Frankly, I may have created the empty file today by mistake while trying to debug the issue, but that still wouldn't explain why nothing was logging right after the upgrade. This is a bit of a head-scratcher. I also manually set smartctl: yes on go.d.conf while trying to fix it, which shouldn't make a difference as that should be the default, but who knows.

I just confirmed I do not have anything inside python.d/.

from netdata.

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.