summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1ca485e)
raw | patch | inline | side by side (parent: 1ca485e)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 3 Jul 2003 16:49:14 +0000 (16:49 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 3 Jul 2003 16:49:14 +0000 (16:49 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@585 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_procs.c | patch | blob | history |
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 737a87b1654b2fc3e320b0b45502f445f2870902..ccf0891d13322c61a6710c7621a6a46673851eba 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
/* Zombie processes do not give a procprog command */
if ( cols == 6 && strstr(procstat, zombie) ) {
cols = 7;
+ /* Set some value for procargs for the strip command further below
+ Seen to be a problem on some Solaris 7 and 8 systems */
+ input_buffer[pos] = '\n';
+ input_buffer[pos+1] = 0x0;
}
if ( cols >= 7 ) {
resultsum = 0;
asprintf (&procargs, "%s", input_buffer + pos);
- strip (procargs);
+ strip (procargs);
if ((options & STAT) && (strstr (statopts, procstat)))
resultsum |= STAT;