X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=cc988625b32178a005222befd9dccae0898270e5;hb=3496d684b96cb1bb87f67dfc7f2c7035042878f8;hp=046b7b02120953c65d66de9c27dd2ff5ac482e8c;hpb=1126617bebe569dffe6b7a5d3f0c400134b41d65;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 046b7b02..cc988625 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -63,7 +63,7 @@ static int za_read_derive (kstat_t *ksp, const char *kstat_value, tmp = get_kstat_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); } @@ -81,7 +81,7 @@ static int za_read_gauge (kstat_t *ksp, const char *kstat_value, tmp = get_kstat_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); } @@ -123,12 +123,14 @@ 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_operation", "miss"); + za_read_derive (ksp, "mutex_miss", "mutex_operations", "miss"); za_read_derive (ksp, "hash_collisions", "hash_collisions", ""); /* Evictions */