Jump to content

doctortt

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by doctortt

  1. After doing further research, i think my issue is that I need to add the line below in /etc/default/smartmontools. However, as shown below, there is no smartmontools file in that path. smartd_opts="-A /var/log/smartd/ -i 600 Is it /etc/smartd.conf I should be adding that line to?
  2. I've been scratching my head for a few days and need some help with Netdata to monitor disk temperature using the smartd / smartmontool. I'm not sure if this is just me or what. By default, my Netdata app doesn't show any disk temperature. I researched on Netdata's website and got hddtemp plugin to work, but the hddtemp project has not been maintained for so long and it just doesn't work that well in Netdata (i.e. hddtemp is picking up no temp for some drives and say they're sleeping when they're not). This is when I found out that smartd / smartmontool is a better plugin because it has disk temperature, SMART data, etc., I researched on the web extensively on how to get this to work in Unraid but no luck. The Unraid OS already has smartd / smartmontool, so I'm not sure if the debug log below indicates that (i) there it cannot find smartmontool or that (ii) it cannot access the logs. I thought the issue was related to mounting the path to Netdata so that It can see the log path. However, when I go into /var/log/ and /var/lib/ in Unraid's console, there are no smartd nor smartmontools folders, respectively. / # cd /usr/libexec/netdata/plugins.d/ /usr/libexec/netdata/plugins.d # ./python.d.plugin smartd_log debug trace 2023-05-31 01:36:10: python.d INFO: plugin[main] : using python v3 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : looking for '/etc/netdata/python.d.conf' 2023-05-31 01:36:10: python.d INFO: plugin[main] : '/etc/netdata/python.d.conf' was not found 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : looking for '/usr/lib/netdata/conf.d/python.d.conf' 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : '/usr/lib/netdata/conf.d/python.d.conf' is loaded 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : looking for 'pythond-jobs-statuses.json' in /var/lib/netdata 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : loading '/var/lib/netdata/pythond-jobs-statuses.json' 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : '/var/lib/netdata/pythond-jobs-statuses.json' is loaded 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : [smartd_log] loaded module source : '/usr/libexec/netdata/python.d/smartd_log.chart.py' 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : [smartd_log] looking for 'smartd_log.conf' in ['/etc/netdata/python.d', '/usr/lib/netdata/conf.d/python.d'] 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : [smartd_log] loading '/usr/lib/netdata/conf.d/python.d/smartd_log.conf' 2023-05-31 01:36:10: python.d DEBUG: plugin[main] : [smartd_log] '/usr/lib/netdata/conf.d/python.d/smartd_log.conf' is loaded 2023-05-31 01:36:10: python.d INFO: plugin[main] : [smartd_log] built 2 job(s) configs 2023-05-31 01:36:10: python.d DEBUG: smartd_log[custom] : scanning /var/log/smartd/ 2023-05-31 01:36:10: python.d WARNING: plugin[main] : smartd_log[custom] : unhandled exception on check : FileNotFoundError(2, 'No such file or directory'), skipping the job 2023-05-31 01:36:10: python.d DEBUG: smartd_log[debian] : scanning /var/lib/smartmontools/ 2023-05-31 01:36:10: python.d WARNING: plugin[main] : smartd_log[debian] : unhandled exception on check : FileNotFoundError(2, 'No such file or directory'), skipping the job 2023-05-31 01:36:10: python.d INFO: plugin[main] : no jobs to serve 2023-05-31 01:36:10: python.d INFO: plugin[main] : exiting from main... /usr/libexec/netdata/plugins.d # drwxr-xr-x 11 root root 680 May 30 04:40 ./ drwxr-xr-x 14 root root 340 May 17 15:04 ../ -rw------- 1 root root 0 May 17 15:02 btmp -rw-r--r-- 1 root root 0 Apr 28 2021 cron -rw-r--r-- 1 root root 0 Apr 28 2021 debug -rw-r--r-- 1 root root 99524 May 29 19:55 dmesg -rw-r--r-- 1 root root 22905 May 30 02:09 docker.log -rw-r--r-- 1 root root 0 Feb 13 2021 faillog -rw-r--r-- 1 root root 0 Apr 7 2000 lastlog drwxr-xr-x 4 root root 140 May 29 19:57 libvirt/ -rw-r--r-- 1 root root 0 Apr 28 2021 maillog -rw-r--r-- 1 root root 0 May 29 19:55 mcelog -rw-r--r-- 1 root root 0 Apr 28 2021 messages drwxr-xr-x 2 root root 40 Aug 10 2022 nfsd/ drwxr-x--- 2 nobody root 60 May 29 19:55 nginx/ lrwxrwxrwx 1 root root 24 May 17 15:01 packages -> ../lib/pkgtools/packages/ drwxr-xr-x 5 root root 100 May 29 19:55 pkgtools/ drwxr-xr-x 2 root root 300 May 29 19:55 plugins/ drwxr-xr-x 2 root root 40 May 30 21:20 pwfail/ lrwxrwxrwx 1 root root 25 May 17 15:03 removed_packages -> pkgtools/removed_packages/ lrwxrwxrwx 1 root root 24 May 17 15:03 removed_scripts -> pkgtools/removed_scripts/ lrwxrwxrwx 1 root root 34 May 29 19:55 removed_uninstall_scripts -> pkgtools/removed_uninstall_scripts/ drwxr-xr-x 2 root root 40 Jan 30 13:03 sa/ drwxr-xr-x 3 root root 320 May 29 19:55 samba/ lrwxrwxrwx 1 root root 23 May 17 15:01 scripts -> ../lib/pkgtools/scripts/ -rw-r--r-- 1 root root 0 Apr 28 2021 secure lrwxrwxrwx 1 root root 21 May 17 15:01 setup -> ../lib/pkgtools/setup/ -rw-r--r-- 1 root root 0 Apr 28 2021 spooler drwxr-xr-x 3 root root 60 Sep 27 2022 swtpm/ -rw-r--r-- 1 root root 1063374 May 30 21:38 syslog -rw-r--r-- 1 root root 14145267 May 30 04:38 syslog.1 -rw-r--r-- 1 root root 0 May 29 19:54 vfio-pci -rw-r--r-- 1 root root 0 May 29 19:54 vfio-pci-errors -rw-rw-r-- 1 root utmp 6912 May 29 19:55 wtmp root@powernas:/var/log# drwxr-xr-x 15 root root 320 May 30 04:40 ./ drwxr-xr-x 14 root root 340 May 17 15:04 ../ drwxr-xr-x 2 root root 40 Feb 20 17:27 arpd/ drwxr-xr-x 2 messagebus root 60 May 29 19:55 dbus/ drwxr-x--- 2 root root 40 Aug 28 2022 dhcpcd/ drwx--x--- 1 root root 240 May 29 19:57 docker/ drwxr-xr-x 10 root root 220 May 17 15:03 libvirt/ -rw-r----- 1 root root 699 May 30 04:40 logrotate.status drwxr-xr-x 6 rpc rpc 220 May 29 19:57 nfs/ drwx------ 7 root root 140 May 29 19:55 nginx/ drwxrwxr-x 2 ntp ntp 60 May 30 19:55 ntp/ drwxrwx--- 2 root apache 160 May 30 21:50 php/ drwxr-xr-x 6 root root 160 May 17 15:03 pkgtools/ drwxr-xr-x 5 root root 220 May 29 19:57 samba/ drwxr-xr-x 2 root root 40 May 1 2022 swtpm-localca/ drwxr-xr-x 2 root root 60 Feb 7 15:09 xkb/ root@powernas:/var/lib#
×
×
  • Create New...