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. --- ...10386-nagios-plugins-check_procs-procprog-fix.diff | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff (limited to 'web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff') diff --git a/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff b/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff new file mode 100644 index 0000000..6eb498e --- /dev/null +++ b/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff @@ -0,0 +1,19 @@ +*** nagios-plugins-1.4.5/plugins/check_procs.c Sun Oct 22 17:03:31 2006 +--- nagios-plugins-1.4.5/plugins/check_procs.c.new Mon Jan 8 14:28:10 2007 +*************** +*** 193,199 **** + strip (procargs); + + /* Some ps return full pathname for command. This removes path */ +! procprog = base_name(procprog); + + /* we need to convert the elapsed time to seconds */ + procseconds = convert_to_seconds(procetime); +--- 193,199 ---- + strip (procargs); + + /* Some ps return full pathname for command. This removes path */ +! strcpy(procprog, base_name(procprog)); + + /* we need to convert the elapsed time to seconds */ + procseconds = convert_to_seconds(procetime); -- cgit v1.2.3-74-g34f1