X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fvserver.c;h=3a77961bbb3089ff6bb259593c671f46f81a1592;hb=2cea8075c666a6c6c7d6e1b4f95e1bee6f3803ac;hp=d47957399a59bd3931312f79dafab24963d84413;hpb=8d9b00298d5dd8c6e4f3315aa2a0ae4d3684f55d;p=collectd.git diff --git a/src/vserver.c b/src/vserver.c index d4795739..3a77961b 100644 --- a/src/vserver.c +++ b/src/vserver.c @@ -49,7 +49,7 @@ static char *rrd_inet6 = "vserver-%s/traffic-inet6.rrd"; static char *rrd_other = "vserver-%s/traffic-other.rrd"; static char *rrd_unspec = "vserver-%s/traffic-unspec.rrd"; -static char *rrd_thread = "vserver-%s/threads.rrd"; +static char *rrd_thread = "vserver-%s/vs_threads.rrd"; static char *rrd_load = "vserver-%s/load.rrd"; @@ -343,11 +343,17 @@ static void vserver_read (void) DIR *proc; struct dirent *dent; /* 42 */ + static complain_t complain_obj; + errno = 0; - if (NULL == (proc = opendir (PROCDIR))) { - syslog (LOG_ERR, "Cannot open '%s': %s", PROCDIR, strerror (errno)); + if (NULL == (proc = opendir (PROCDIR))) + { + plugin_complain (LOG_ERR, &complain_obj, "vserver plugin: " + "fopen (%s) failed: %s", PROCDIR, strerror (errno)); return; } + plugin_relief (LOG_NOTICE, &complain_obj, "vserver plugin: " + "fopen (%s) succeeded.", PROCDIR); while (NULL != (dent = readdir (proc))) { int len;