[Pkg-nagios-devel] [Nagiosplug-devel] patch against check_ssh

folkert folkert at vanheusden.com
Sat Jul 10 19:24:31 UTC 2010


Wrong: using fperfdata, should be perfdata.
Fixed:

--- nagios-plugins-1.4.14/plugins/check_procs.c	2009-02-20 00:55:23.000000000 +0100
+++ nagios-plugins-1.4.14.new/plugins/check_procs.c	2010-07-10 21:23:48.000000000 +0200
@@ -301,6 +301,14 @@
 	if ( verbose >= 1 && strcmp(fails,"") )
 		printf (" [%s]", fails);
 
+	printf("|%s",   
+			perfdata ("procs", procs, "",
+			FALSE, 0,
+			FALSE, 0,
+			FALSE, 0,
+			FALSE, 0)
+		);
+
 	printf ("\n");
 	return result;
 }

On Sat, Jul 10, 2010 at 09:22:10PM +0200, folkert wrote:
> check_procs patch
> 
> --- nagios-plugins-1.4.14/plugins/check_procs.c	2009-02-20 00:55:23.000000000 +0100
> +++ nagios-plugins-1.4.14.new/plugins/check_procs.c	2010-07-10 21:21:21.000000000 +0200
> @@ -301,6 +301,14 @@
>  	if ( verbose >= 1 && strcmp(fails,"") )
>  		printf (" [%s]", fails);
>  
> +	printf("|%s",   
> +			fperfdata ("procs", procs, "",
> +			FALSE, 0,
> +			FALSE, 0,
> +			FALSE, 0,
> +			FALSE, 0)
> +		);
> +
>  	printf ("\n");
>  	return result;
>  }
> 
> Folkert van Heusden
> 
> -- 
> MultiTail is een flexibele tool voor het volgen van logfiles en
> uitvoer van commando's. Filteren, van kleur voorzien, mergen,
> 'diff-view', etc. http://www.vanheusden.com/multitail/
> ----------------------------------------------------------------------
> Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


Folkert van Heusden

-- 
MultiTail na wan makriki wrokosani fu tan luku den logfile nanga san
den commando spiti puru. Piki puru spesrutu sani, wroko nanga difrenti
kroru, tya kon makandra, nanga wan lo moro.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the Pkg-nagios-devel mailing list