X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=96ffc54957aae84a8fb548e3df352307a9a9d168;hb=78921c3ef847d9209657234e4c0d9025ea10cc78;hp=2edba6d1b68d4abc803b06145d6b2f5376503eca;hpb=38d06a8f868293466f4eee943555c65457a5e560;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 2edba6d1..96ffc549 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -99,7 +99,7 @@ static int za_read_derive (kstat_t *ksp, const char *kstat_value, tmp = get_zfs_value (ksp, (char *)kstat_value); if (tmp == -1LL) { - ERROR ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value); + WARNING ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value); return (-1); } @@ -117,7 +117,7 @@ static int za_read_gauge (kstat_t *ksp, const char *kstat_value, tmp = get_zfs_value (ksp, (char *)kstat_value); if (tmp == -1LL) { - ERROR ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value); + WARNING ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value); return (-1); } @@ -161,9 +161,11 @@ static int za_read (void) za_read_gauge (ksp, "l2_size", "cache_size", "L2"); /* Operations */ - za_read_derive (ksp, "allocated","cache_operation", "allocated"); za_read_derive (ksp, "deleted", "cache_operation", "deleted"); +#if __FreeBSD__ + za_read_derive (ksp, "allocated","cache_operation", "allocated"); za_read_derive (ksp, "stolen", "cache_operation", "stolen"); +#endif /* Issue indicators */ za_read_derive (ksp, "mutex_miss", "mutex_operations", "miss");