#include <smart_collector.h>
Platform-specific SMART data collector implementation
Definition at line 74 of file smart_collector.h.
◆ smart_info_collector() [1/3]
| kcenon::monitoring::smart_info_collector::smart_info_collector |
( |
| ) |
|
◆ ~smart_info_collector()
| kcenon::monitoring::smart_info_collector::~smart_info_collector |
( |
| ) |
|
◆ smart_info_collector() [2/3]
◆ smart_info_collector() [3/3]
◆ collect_smart_metrics()
Collect SMART metrics for a specific disk
- Parameters
-
- Returns
- SMART disk metrics
◆ enumerate_disks()
| std::vector< disk_info > kcenon::monitoring::smart_info_collector::enumerate_disks |
( |
| ) |
|
Enumerate all disks that may have SMART data
- Returns
- Vector of disk info
◆ execute_command()
| std::string kcenon::monitoring::smart_info_collector::execute_command |
( |
const std::string & | command | ) |
const |
|
private |
◆ is_smartctl_available()
| bool kcenon::monitoring::smart_info_collector::is_smartctl_available |
( |
| ) |
const |
Check if smartctl is available on the system
- Returns
- True if smartctl can be executed
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ parse_smartctl_json()
| smart_disk_metrics kcenon::monitoring::smart_info_collector::parse_smartctl_json |
( |
const std::string & | json_output, |
|
|
const disk_info & | info ) const |
|
private |
◆ mutex_
| std::mutex kcenon::monitoring::smart_info_collector::mutex_ |
|
mutableprivate |
◆ smartctl_available_
| bool kcenon::monitoring::smart_info_collector::smartctl_available_ {false} |
|
mutableprivate |
◆ smartctl_checked_
| bool kcenon::monitoring::smart_info_collector::smartctl_checked_ {false} |
|
mutableprivate |
The documentation for this class was generated from the following file: