Bug 253696

Summary: sysutils/node_exporter: add SMART support
Product: Ports & Packages Reporter: Lapo Luchini <lapo>
Component: Individual Port(s)Assignee: Mateusz Piotrowski <0mp>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: 0mp, dor.bsd, freebsd, ygy
Priority: --- Flags: bugzilla: maintainer-feedback? (dor.bsd)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
/usr/local/sbin/smartmon_exporter none

Description Lapo Luchini 2021-02-19 16:29:41 UTC
Created attachment 222642 [details]
/usr/local/sbin/smartmon_exporter

I suggest installing this script as part of the standard port, so that if the user wants to have smartd reports inside the normal node_exporter output, it just needs to do something like this:

printf "*/1\t*\t*\t*\t*\troot\t/usr/local/sbin/smartmon_exporter\n" >> /etc/crontab
Comment 1 Lapo Luchini 2021-03-09 18:41:24 UTC
PS: I'm using it with success with this Grafana dashboard:
https://grafana.com/grafana/dashboards/10530
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2021-12-07 10:51:17 UTC
The script itself could indeed be useful in some cases to. However, it seems like it would be much better to just have it in the ports collection as a separate port. There is no good reason to install it as a part of node_exporter.

Please create a new port if you'd like to have this script in the ports collection.

Cheers!
Comment 3 Mateusz Piotrowski freebsd_committer freebsd_triage 2021-12-07 10:56:20 UTC
BTW, this exporter is a part of this repo: https://github.com/prometheus-community/node-exporter-textfile-collector-scripts