summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 81a3ec1)
raw | patch | inline | side by side (parent: 81a3ec1)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 17 Jun 2006 18:33:18 +0000 (20:33 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 17 Jun 2006 18:33:18 +0000 (20:33 +0200) |
Mostly to play with the merging of git, though ;)
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index fae1c2d02536cb4fc9387d0fb3c40832968ae3bb..dba29eff628c5d058e02b5f14e9d658fbda96b73 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
blocked) >= BUFSIZE)
return;
+ DBG ("running = %i; sleeping = %i; zombies = %i; stopped = %i; paging = %i; blocked = %i;",
+ running, sleeping, zombies, stopped, paging, blocked);
+
plugin_submit (MODULE_NAME, "-", buf);
}
if ((fh = fopen (filename, "r")) == NULL)
{
- syslog (LOG_ERR, "Cannot open `%s': %s", filename, strerror (errno));
+ syslog (LOG_NOTICE, "Cannot open `%s': %s", filename,
+ strerror (errno));
continue;
}
if (fgets (buf, BUFSIZE, fh) == NULL)
{
+ syslog (LOG_NOTICE, "Unable to read from `%s': %s",
+ filename, strerror (errno));
fclose (fh);
continue;
}
fclose (fh);
if (strsplit (buf, fields, BUFSIZE) < 3)
+ {
+ DBG ("Line has less than three fields.");
continue;
+ }
switch (fields[2][0])
{
}
}
- closedir(proc);
+ closedir (proc);
ps_submit (running, sleeping, zombies, stopped, paging, blocked);
#endif /* KERNEL_LINUX */