diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-18 16:47:29 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-22 01:00:22 +0200 |
commit | 6c9f0d2d75ee95bcaa74eed9fd9192eb24de7120 (patch) | |
tree | 31f5d21aeabc8d21b3b655c85b590a982611a496 /src/ipc.c | |
parent | 31d02cfae33331b29d915dbe19e5baf3bfd72df8 (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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); } } |