summaryrefslogtreecommitdiffstats
path: root/src/ipc.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-18 16:47:29 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-22 01:00:22 +0200
commit6c9f0d2d75ee95bcaa74eed9fd9192eb24de7120 (patch)
tree31f5d21aeabc8d21b3b655c85b590a982611a496 /src/ipc.c
parent31d02cfae33331b29d915dbe19e5baf3bfd72df8 (diff)
all internal plugins create chart at localhost except plugins.d that respects the host specified by the plugin
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 0d13d1ef93..e4403e0430 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -193,13 +193,17 @@ int do_ipc(int update_every, usec_t dt) {
// create the charts
semaphores = rrdset_find_localhost("system.ipc_semaphores");
if(!semaphores) {
- semaphores = rrdset_create("system", "ipc_semaphores", NULL, "ipc semaphores", NULL, "IPC Semaphores", "semaphores", 1000, rrd_update_every, RRDSET_TYPE_AREA);
+ semaphores = rrdset_create_localhost("system", "ipc_semaphores", NULL, "ipc semaphores", NULL
+ , "IPC Semaphores", "semaphores", 1000, rrd_update_every
+ , RRDSET_TYPE_AREA);
rrddim_add(semaphores, "semaphores", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE);
}
arrays = rrdset_find_localhost("system.ipc_semaphore_arrays");
if(!arrays) {
- arrays = rrdset_create("system", "ipc_semaphore_arrays", NULL, "ipc semaphores", NULL, "IPC Semaphore Arrays", "arrays", 1000, rrd_update_every, RRDSET_TYPE_AREA);
+ arrays = rrdset_create_localhost("system", "ipc_semaphore_arrays", NULL, "ipc semaphores", NULL
+ , "IPC Semaphore Arrays", "arrays", 1000, rrd_update_every
+ , RRDSET_TYPE_AREA);
rrddim_add(arrays, "arrays", NULL, 1, 1, RRD_ALGORITHM_ABSOLUTE);
}
}