From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/54764-check_procs.c.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/attachments/54764-check_procs.c.diff (limited to 'web/attachments/54764-check_procs.c.diff') diff --git a/web/attachments/54764-check_procs.c.diff b/web/attachments/54764-check_procs.c.diff new file mode 100644 index 0000000..89171ae --- /dev/null +++ b/web/attachments/54764-check_procs.c.diff @@ -0,0 +1,16 @@ +Index: check_procs.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v +retrieving revision 1.15 +diff -u -3 -r1.15 check_procs.c +--- check_procs.c 11 Apr 2003 23:47:39 -0000 1.15 ++++ check_procs.c 2 Jul 2003 16:04:21 -0000 +@@ -204,6 +204,8 @@ + /* Zombie processes do not give a procprog command */ + if ( cols == 6 && strstr(procstat, zombie) ) { + cols = 7; ++ input_buffer[pos] = '\n'; ++ input_buffer[pos+1] = 0x0; + } + if ( cols >= 7 ) { + resultsum = 0; -- cgit v1.2.3-74-g34f1