diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-03-30 21:23:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 14:23:16 -0400 |
commit | ec5c038f2ca3f665490887f6c690445e93c27a33 (patch) | |
tree | bd44227780aec6ae4cbe778f31010c74781b850d /collectors/proc.plugin | |
parent | e7f4e6120c1725e0388f068de72d4c72955a5ea0 (diff) |
fix double host prefix when reading ZFS pools state (#14840)
fix double host prefix when reading zfs pools state
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/proc_spl_kstat_zfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/collectors/proc.plugin/proc_spl_kstat_zfs.c b/collectors/proc.plugin/proc_spl_kstat_zfs.c index 0db9970c36..f54ba3c528 100644 --- a/collectors/proc.plugin/proc_spl_kstat_zfs.c +++ b/collectors/proc.plugin/proc_spl_kstat_zfs.c @@ -366,8 +366,7 @@ int do_proc_spl_kstat_zfs_pool_state(int update_every, usec_t dt) pool->unavail = 0; char filename[FILENAME_MAX + 1]; - snprintfz( - filename, FILENAME_MAX, "%s%s/%s/state", netdata_configured_host_prefix, dirname, de->d_name); + snprintfz(filename, FILENAME_MAX, "%s/%s/state", dirname, de->d_name); char state[STATE_SIZE + 1]; int ret = read_file(filename, state, STATE_SIZE); |