diverse nagios plugins
This commit is contained in:
		
							
								
								
									
										135
									
								
								net-analyzer/nagios-nrpe/ChangeLog
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										135
									
								
								net-analyzer/nagios-nrpe/ChangeLog
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,135 @@ | ||||
| # ChangeLog for net-analyzer/nagios-nrpe | ||||
| # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.36 2007/02/20 00:07:20 jokey Exp $ | ||||
|  | ||||
|   20 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog: | ||||
|   Redigest for Manifest2 | ||||
|  | ||||
|   21 Oct 2006; Thomas Cort <tcort@gentoo.org> nagios-nrpe-2.5.2-r1.ebuild: | ||||
|   Added ~alpha keyword wrt Bug #110130. | ||||
|  | ||||
| *nagios-nrpe-2.5.2-r1 (18 Sep 2006) | ||||
|  | ||||
|   18 Sep 2006; Benjamin Smee <strerror@gentoo.org> | ||||
|   +nagios-nrpe-2.5.2-r1.ebuild: | ||||
|   fix for revdep-rebuild issues bug #146667 | ||||
|  | ||||
|   17 Aug 2006; Gustavo Zacarias <gustavoz@gentoo.org> | ||||
|   nagios-nrpe-2.5.1.ebuild: | ||||
|   Stable on sparc | ||||
|  | ||||
|   06 Jul 2006; Markus Rothe <corsair@gentoo.org> nagios-nrpe-2.5.1.ebuild: | ||||
|   Stable on ppc64 | ||||
|  | ||||
|   04 Jul 2006; Lance Albertson <ramereth@gentoo.org> +files/nrpe-2.5.2: | ||||
|   * Add init script (forgot it before!) | ||||
|  | ||||
| *nagios-nrpe-2.5.2 (04 Jul 2006) | ||||
|  | ||||
|   04 Jul 2006; Lance Albertson <ramereth@gentoo.org> -files/nrpe-2.0, | ||||
|   -files/nrpe-2.0.cfg, -nagios-nrpe-2.0.ebuild, -nagios-nrpe-2.0-r1.ebuild, | ||||
|   nagios-nrpe-2.5.1.ebuild, +nagios-nrpe-2.5.2.ebuild: | ||||
|   * Version bump | ||||
|   * Marked 2.5.1 stable on x86 | ||||
|   * Removed old ebuilds/files | ||||
|  | ||||
|   07 May 2006; Markus Rothe <corsair@gentoo.org> nagios-nrpe-2.3.ebuild: | ||||
|   Stable on ppc64 | ||||
|  | ||||
|   05 May 2006; Gustavo Zacarias <gustavoz@gentoo.org> | ||||
|   nagios-nrpe-2.3.ebuild: | ||||
|   Stable on sparc wrt security #132159 | ||||
|  | ||||
| *nagios-nrpe-2.5.1 (27 Apr 2006) | ||||
|  | ||||
|   27 Apr 2006; Lance Albertson <ramereth@gentoo.org> +files/nrpe-2.5.1, | ||||
|   nagios-nrpe-2.3.ebuild, +nagios-nrpe-2.5.1.ebuild: | ||||
|   * Version bump | ||||
|   * Added reload to init script (2.5.1 added this feature) | ||||
|   * Stable on x86 (2.3) | ||||
|  | ||||
|   07 Feb 2006; Simon Stelling <blubb@gentoo.org> nagios-nrpe-2.0-r1.ebuild: | ||||
|   stable on amd64 | ||||
|  | ||||
| *nagios-nrpe-2.3 (04 Feb 2006) | ||||
|  | ||||
|   04 Feb 2006; Lance Albertson <ramereth@gentoo.org> +files/nrpe-2.3, | ||||
|   metadata.xml, +nagios-nrpe-2.3.ebuild: | ||||
|   * Version bump | ||||
|  | ||||
|   20 Nov 2005; Lance Albertson <ramereth@gentoo.org> | ||||
|   nagios-nrpe-2.0-r1.ebuild: | ||||
|   * Clean up how the binaries are installed in the ebuild | ||||
|  | ||||
|   07 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> | ||||
|   nagios-nrpe-2.0-r1.ebuild: | ||||
|   Stable on sparc | ||||
|  | ||||
|   09 Sep 2005; Lance Albertson <ramereth@gentoo.org> | ||||
|   nagios-nrpe-2.0-r1.ebuild: | ||||
|   * Marked stable on x86 | ||||
|  | ||||
| *nagios-nrpe-2.0-r1 (10 Jul 2005) | ||||
|  | ||||
|   10 Jul 2005; Lance Albertson <ramereth@gentoo.org> | ||||
|   +nagios-nrpe-2.0-r1.ebuild: | ||||
|   * Added configure option for command-args | ||||
|   * Added nrpe_check_control from contrib | ||||
|  | ||||
|   03 May 2005; Eldad Zack <eldad@gentoo.org> nagios-nrpe-1.8-r1.ebuild, | ||||
|   nagios-nrpe-2.0.ebuild: | ||||
|   Changed perms for check_nrpe and nrpe to 0750. | ||||
|  | ||||
|   13 Apr 2005; Eldad Zack <eldad@gentoo.org> nagios-nrpe-1.8-r1.ebuild, | ||||
|   nagios-nrpe-2.0.ebuild: | ||||
|   tighter perms for /etc/nagios/nrpe.cfg. Thanks to Romang <zataz@zataz.net>. | ||||
|   Bug #88937. | ||||
|  | ||||
|   20 Mar 2005; Eldad Zack <eldad@gentoo.org> nagios-nrpe-2.0.ebuild: | ||||
|   Generate the dh.h header file for better security. | ||||
|  | ||||
|   11 Dec 2004; Benjamin Schindler <config@gentoo.org> | ||||
|   nagios-nrpe-2.0.ebuild: | ||||
|   Stable on amd64 | ||||
|  | ||||
|   30 Nov 2004; Sven Wegener <swegener@gentoo.org> nagios-nrpe-2.0.ebuild: | ||||
|   Fixed invalid atoms in *DEPEND. | ||||
|  | ||||
|   25 Oct 2004; Eldad Zack <eldad@gentoo.org> nagios-nrpe-2.0.ebuild: | ||||
|   Now featuring SSL useflag, as suggested by Christian Theune <ct@gocept.com>. | ||||
|   Closes #68704. | ||||
|  | ||||
|   24 Oct 2004; Jason Wever <weeve@gentoo.org> nagios-nrpe-2.0.ebuild: | ||||
|   Stable on sparc. | ||||
|  | ||||
|   18 Mar 2004; Philip Walls <malverian@gentoo.org> nagios-nrpe-2.0.ebuild | ||||
|   Stable on x86 and amd64 | ||||
|  | ||||
| *nagios-nrpe-2.0 (10 Mar 2004) | ||||
|   10 Mar 2004; Philip Walls <malverian@gentoo.org> nagios-nrpe-2.0.ebuild | ||||
|   Version bump. Removed old nrpe init script and nrpe.cfg. Added metadata | ||||
|  | ||||
| *nagios-nrpe-1.8-r1	(17 Jun 2003) | ||||
|   06 Dec 2003; Heinrich Wendel <lanius@gentoo.org> nagios-nrpe-1.8-r1.ebuild: | ||||
|   bug 34355 | ||||
|  | ||||
|   17 Jun 2003; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.8-r1 : | ||||
|   Fix for bugs #17885 and #19539, updated sample conf also. | ||||
|  | ||||
|   28 Feb 2003; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.8 : | ||||
|   Moved to x86 stable | ||||
|  | ||||
| *nagios-nrpe-1.8 | ||||
|   09 Feb 2003; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.8 : | ||||
|   Version bump | ||||
|  | ||||
|   15 Jan 2003; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.7 : | ||||
|   Changed ~x86 to x86 and added ~sparc and ~ppc keywords | ||||
|  | ||||
| *nagios-nrpe-1.7	(13 Jan 2003) | ||||
|   13 Jan 2003; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.7 : | ||||
|   Updated to version 1.7. | ||||
|  | ||||
| *nagios-nrpe-1.5	(1 Nov 2002) | ||||
|   1 Nov 2002; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.5 : | ||||
|   Initial import. Ebuild submitted by Dean Bailey <alron@gentoo.org>. | ||||
							
								
								
									
										77
									
								
								net-analyzer/nagios-nrpe/Manifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								net-analyzer/nagios-nrpe/Manifest
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,77 @@ | ||||
| -----BEGIN PGP SIGNED MESSAGE----- | ||||
| Hash: SHA1 | ||||
|  | ||||
| AUX nrpe-1.8 462 RMD160 00f49ef6b7c795cf9d02b8dd4e93b65fbfcb202c SHA1 b91dbfedda11eab9afb49adca3e294269bfa3ae3 SHA256 2453bf826b428777736c9a04a605c83cdc774765372e0525704e73116045fff7 | ||||
| MD5 1ea034ce9ade9210fa8c4ade4d51d132 files/nrpe-1.8 462 | ||||
| RMD160 00f49ef6b7c795cf9d02b8dd4e93b65fbfcb202c files/nrpe-1.8 462 | ||||
| SHA256 2453bf826b428777736c9a04a605c83cdc774765372e0525704e73116045fff7 files/nrpe-1.8 462 | ||||
| AUX nrpe-1.8.cfg 3501 RMD160 dd41f8c3bbd7d1891b41b5ee40540ef6f8cb270f SHA1 b4b0b7a92d16d9bde1c10a18cdb32cb191e162e5 SHA256 7149773365ef36afc4d1adef78cde5eb22aaa7aa6d9a10d2c17cc29a643c797f | ||||
| MD5 3c91382446609ec78fa98d94509539dd files/nrpe-1.8.cfg 3501 | ||||
| RMD160 dd41f8c3bbd7d1891b41b5ee40540ef6f8cb270f files/nrpe-1.8.cfg 3501 | ||||
| SHA256 7149773365ef36afc4d1adef78cde5eb22aaa7aa6d9a10d2c17cc29a643c797f files/nrpe-1.8.cfg 3501 | ||||
| AUX nrpe-2.3 462 RMD160 00f49ef6b7c795cf9d02b8dd4e93b65fbfcb202c SHA1 b91dbfedda11eab9afb49adca3e294269bfa3ae3 SHA256 2453bf826b428777736c9a04a605c83cdc774765372e0525704e73116045fff7 | ||||
| MD5 1ea034ce9ade9210fa8c4ade4d51d132 files/nrpe-2.3 462 | ||||
| RMD160 00f49ef6b7c795cf9d02b8dd4e93b65fbfcb202c files/nrpe-2.3 462 | ||||
| SHA256 2453bf826b428777736c9a04a605c83cdc774765372e0525704e73116045fff7 files/nrpe-2.3 462 | ||||
| AUX nrpe-2.5.1 591 RMD160 27dec27f122cc022215e1c049b8749cc75746150 SHA1 08c79e7a2e0458c2e896e1470fe6de1591095881 SHA256 795470c9bce54145e54879b22ae9a1a3c288c87418bc45e4b9f5420112a27d5e | ||||
| MD5 42f690b8d27db81fc5ead027cad36202 files/nrpe-2.5.1 591 | ||||
| RMD160 27dec27f122cc022215e1c049b8749cc75746150 files/nrpe-2.5.1 591 | ||||
| SHA256 795470c9bce54145e54879b22ae9a1a3c288c87418bc45e4b9f5420112a27d5e files/nrpe-2.5.1 591 | ||||
| AUX nrpe-2.5.2 591 RMD160 27dec27f122cc022215e1c049b8749cc75746150 SHA1 08c79e7a2e0458c2e896e1470fe6de1591095881 SHA256 795470c9bce54145e54879b22ae9a1a3c288c87418bc45e4b9f5420112a27d5e | ||||
| MD5 42f690b8d27db81fc5ead027cad36202 files/nrpe-2.5.2 591 | ||||
| RMD160 27dec27f122cc022215e1c049b8749cc75746150 files/nrpe-2.5.2 591 | ||||
| SHA256 795470c9bce54145e54879b22ae9a1a3c288c87418bc45e4b9f5420112a27d5e files/nrpe-2.5.2 591 | ||||
| DIST nrpe-1.8.tar.gz 41347 RMD160 87f52d5618bb170d3372f6c5a5eab16acc7ccd28 SHA1 1ee720c92bb4f542485def9fea853b82743dd26b SHA256 bcf2cfc830bc9a6e3c80ffcd1369dc466b964b59940d6d181e5c35f3b98a7ad6 | ||||
| DIST nrpe-2.3.tar.gz 97586 RMD160 b366e1bb4209921002079c8cf75414bb9cf25cd7 SHA1 03231fecaf5dbbde1d56ba95b0ad77b30106df0c SHA256 c961a21feff2995df39ee18478bc1b1a38ab8da0e5fe62b31fafc234de58f248 | ||||
| DIST nrpe-2.5.1.tar.gz 100382 RMD160 757eb92cde878d8a0d3e483149d8969728ed7e03 SHA1 1beab9dc5fe77b722a12161b23b536ac5e28a6a4 SHA256 a23a0a37d81900d03884898bd0ae9b9da95348cc4a08695a4c229337c83fbe5e | ||||
| DIST nrpe-2.5.2.tar.gz 100637 RMD160 79eb2486ebe81e520b4092d91f44e4c1ad0fd44e SHA1 e0fe51474d0d08fa6fc4b09ceab9adcc2585ddac SHA256 701fa133cffaaab9bce826b076d689f3216fd472585307ab1302b3e469a367b8 | ||||
| EBUILD nagios-nrpe-1.8-r1.ebuild 1562 RMD160 62e21be8bdc8ac1750f406a812eef141751cf3e7 SHA1 41726d2140d4b283502a8bfa1fb8ef5f23ee9541 SHA256 7c37c99999f410703a38b01173edf18229eea73f7486df0b284e0b42b5903eb9 | ||||
| MD5 9d91fabf9f7f1bda0b75ba5280521932 nagios-nrpe-1.8-r1.ebuild 1562 | ||||
| RMD160 62e21be8bdc8ac1750f406a812eef141751cf3e7 nagios-nrpe-1.8-r1.ebuild 1562 | ||||
| SHA256 7c37c99999f410703a38b01173edf18229eea73f7486df0b284e0b42b5903eb9 nagios-nrpe-1.8-r1.ebuild 1562 | ||||
| EBUILD nagios-nrpe-2.3.ebuild 2365 RMD160 bdb91218370052616e4f89d7fce0dddb38f9f206 SHA1 a420fb4bfd5121db33aab792cfff406356a8d839 SHA256 46d3c359ab38c55c53c6092753f4a1b25ec58067ba751c257bf11c4e2ce66504 | ||||
| MD5 8c195340e31b09e23d889daa5df292de nagios-nrpe-2.3.ebuild 2365 | ||||
| RMD160 bdb91218370052616e4f89d7fce0dddb38f9f206 nagios-nrpe-2.3.ebuild 2365 | ||||
| SHA256 46d3c359ab38c55c53c6092753f4a1b25ec58067ba751c257bf11c4e2ce66504 nagios-nrpe-2.3.ebuild 2365 | ||||
| EBUILD nagios-nrpe-2.5.1.ebuild 2368 RMD160 28185d6d19b9abe2642dcf27a4ab13c0b8d5f206 SHA1 892f17b7788920624d5e2d775700443bb5d8c128 SHA256 a538b92b429c26015a586399c2d48464d2bab65093315023dc6a48c213f2b4d6 | ||||
| MD5 bfb8abbd7f94154c3866bd3edc22b243 nagios-nrpe-2.5.1.ebuild 2368 | ||||
| RMD160 28185d6d19b9abe2642dcf27a4ab13c0b8d5f206 nagios-nrpe-2.5.1.ebuild 2368 | ||||
| SHA256 a538b92b429c26015a586399c2d48464d2bab65093315023dc6a48c213f2b4d6 nagios-nrpe-2.5.1.ebuild 2368 | ||||
| EBUILD nagios-nrpe-2.5.2-r1.ebuild 2529 RMD160 dfdc273f8e7e4875020787fc1a586559752401f6 SHA1 7d6923e1f1488a983c8301d2420f66adab2bf436 SHA256 aaee3cb2028cef0291019a8d1b713731410e2a5b3102fbc6c76aef081a55ea13 | ||||
| MD5 7e894314057bf230faac03f76dc341c6 nagios-nrpe-2.5.2-r1.ebuild 2529 | ||||
| RMD160 dfdc273f8e7e4875020787fc1a586559752401f6 nagios-nrpe-2.5.2-r1.ebuild 2529 | ||||
| SHA256 aaee3cb2028cef0291019a8d1b713731410e2a5b3102fbc6c76aef081a55ea13 nagios-nrpe-2.5.2-r1.ebuild 2529 | ||||
| EBUILD nagios-nrpe-2.5.2.ebuild 2371 RMD160 84037d7b1f8f5f349496ca41d900bd6421cb2a65 SHA1 2f12632e8bbcb4b76570f1168533e6f058538514 SHA256 4cd77ee1d1645c3695cdd244ce1d33dd9eb942e5a79afe951894a941c7db6d8c | ||||
| MD5 30eaef707a3a90b513e6abd69f88ff9d nagios-nrpe-2.5.2.ebuild 2371 | ||||
| RMD160 84037d7b1f8f5f349496ca41d900bd6421cb2a65 nagios-nrpe-2.5.2.ebuild 2371 | ||||
| SHA256 4cd77ee1d1645c3695cdd244ce1d33dd9eb942e5a79afe951894a941c7db6d8c nagios-nrpe-2.5.2.ebuild 2371 | ||||
| MISC ChangeLog 4545 RMD160 4134b789263ee42e75d2cfca5a8a70f6c910f3aa SHA1 58a6aee32599c62876ded04ed762291e5d9e827e SHA256 c30e7eeab1f4dfb9f106549b945a73e66770a7894d8194652833fac52fbb3f8d | ||||
| MD5 0295a22393bdfaf775b80cd4e7c2d998 ChangeLog 4545 | ||||
| RMD160 4134b789263ee42e75d2cfca5a8a70f6c910f3aa ChangeLog 4545 | ||||
| SHA256 c30e7eeab1f4dfb9f106549b945a73e66770a7894d8194652833fac52fbb3f8d ChangeLog 4545 | ||||
| MISC metadata.xml 483 RMD160 17cbf2c8c726024d7ab5d9856f417ecfb6c8624a SHA1 57c75f6469598a3ad0828022b36db734752a6170 SHA256 20e6427e87ba3ff8ed5a3df13c3a5c4ac9e1e36fec8e14bc63fdb3e80d0743d9 | ||||
| MD5 56c82d2c8a7e7500f3fec23e5bc43cf1 metadata.xml 483 | ||||
| RMD160 17cbf2c8c726024d7ab5d9856f417ecfb6c8624a metadata.xml 483 | ||||
| SHA256 20e6427e87ba3ff8ed5a3df13c3a5c4ac9e1e36fec8e14bc63fdb3e80d0743d9 metadata.xml 483 | ||||
| MD5 3549abf701ee6bcc96cc0f8dc0625f4b files/digest-nagios-nrpe-1.8-r1 223 | ||||
| RMD160 722ca4a1a2793fcb8a9a0cd1e52f780abc00d729 files/digest-nagios-nrpe-1.8-r1 223 | ||||
| SHA256 5fce83d7aafa1254b4dee982d897e792d63fb284c373f61175dad4cf22476c7f files/digest-nagios-nrpe-1.8-r1 223 | ||||
| MD5 fdd1a27a02fad4c0f569bb8482ce0208 files/digest-nagios-nrpe-2.3 223 | ||||
| RMD160 1a9e2b61fbbd073046c65962346ec16d92c91f15 files/digest-nagios-nrpe-2.3 223 | ||||
| SHA256 69e6c6029caf44d643a499d72eaf01de4b085d3846bd75af5f5c14671f08ae63 files/digest-nagios-nrpe-2.3 223 | ||||
| MD5 bca0c3464d4185576338950243fc75ee files/digest-nagios-nrpe-2.5.1 232 | ||||
| RMD160 f0ebfd3f6d4f9e798b0fa3ebfc6640fce8b0bac0 files/digest-nagios-nrpe-2.5.1 232 | ||||
| SHA256 f1a60ba0f4b225ada804d2d49c56f25edccfd51291c8b03ed7dba60dcf311189 files/digest-nagios-nrpe-2.5.1 232 | ||||
| MD5 310907b9fcd3cc8c8fdf4f61c4025c5d files/digest-nagios-nrpe-2.5.2 232 | ||||
| RMD160 1ffdb4206729412896ab41cd6acd0f04665e6cec files/digest-nagios-nrpe-2.5.2 232 | ||||
| SHA256 234b64d0371546d8665a25e680911d6fe7a482abdcae45b2daddd660dcd8574b files/digest-nagios-nrpe-2.5.2 232 | ||||
| MD5 310907b9fcd3cc8c8fdf4f61c4025c5d files/digest-nagios-nrpe-2.5.2-r1 232 | ||||
| RMD160 1ffdb4206729412896ab41cd6acd0f04665e6cec files/digest-nagios-nrpe-2.5.2-r1 232 | ||||
| SHA256 234b64d0371546d8665a25e680911d6fe7a482abdcae45b2daddd660dcd8574b files/digest-nagios-nrpe-2.5.2-r1 232 | ||||
| -----BEGIN PGP SIGNATURE----- | ||||
| Version: GnuPG v2.0.1 (GNU/Linux) | ||||
|  | ||||
| iD8DBQFF2ju5z974XjDVpbkRAu4vAKCV2duoTCEDXaY1lYQHtSH17IuT5ACfZLxh | ||||
| bVvfsxW6SltHlT3Z/8ZcveI= | ||||
| =sudn | ||||
| -----END PGP SIGNATURE----- | ||||
							
								
								
									
										28
									
								
								net-analyzer/nagios-nrpe/files/nrpe-1.8
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										28
									
								
								net-analyzer/nagios-nrpe/files/nrpe-1.8
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nrpe" | ||||
| 	start-stop-daemon --start --quiet --name nrpe \ | ||||
| 	--startas /usr/nagios/bin/nrpe \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -c /etc/nagios/nrpe.cfg \ | ||||
| 		--daemon | ||||
| 	eend $? "Failed to Start nrpe" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nrpe" | ||||
| 	start-stop-daemon --stop --quiet -n nrpe | ||||
| 	eend $? "Failed to Stop nrpe" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nrpe" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nrpe" | ||||
| } | ||||
							
								
								
									
										109
									
								
								net-analyzer/nagios-nrpe/files/nrpe-1.8.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										109
									
								
								net-analyzer/nagios-nrpe/files/nrpe-1.8.cfg
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,109 @@ | ||||
| ############################################################################# | ||||
| # Sample NRPE Config File  | ||||
| # Written by: Ethan Galstad (nagios@nagios.org) | ||||
| #  | ||||
| # Last Modified: 12-30-2002 | ||||
| # | ||||
| # NOTES: | ||||
| # This is a sample configuration file for the NRPE daemon.  It needs to be | ||||
| # located on the remote host that is running the NRPE daemon, not the host | ||||
| # from which the check_nrpe client is being executed. | ||||
| ############################################################################# | ||||
|  | ||||
|  | ||||
|  | ||||
| # PORT NUMBER | ||||
| # Port number we should wait for connections on. | ||||
| # NOTE: This must be a non-priviledged port (i.e. > 1024). | ||||
| # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||||
|  | ||||
| server_port=5666 | ||||
|  | ||||
|  | ||||
|  | ||||
| # SERVER ADDRESS | ||||
| # Address that nrpe should bind to in case there are more than one interface | ||||
| # and you do not want nrpe to bind on all interfaces. | ||||
| # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||||
|  | ||||
| #server_address=192.168.1.1 | ||||
|  | ||||
|  | ||||
|  | ||||
| # ALLOWED HOST ADDRESSES | ||||
| # This is a comma-delimited list of IP address of hosts that are allowed | ||||
| # to talk to the NRPE daemon. | ||||
| # | ||||
| # NOTE: The daemon only does rudimentary checking of the client's IP | ||||
| #       address.  I would highly recommend adding entries in your | ||||
| #	/etc/hosts.allow file to allow only the specified host to connect | ||||
| #	to the port you are running this daemon on. | ||||
| # | ||||
| # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||||
|  | ||||
| allowed_hosts=127.0.0.1 | ||||
|  | ||||
|  | ||||
|  | ||||
| # NRPE USER | ||||
| # This determines the effective user that the NRPE daemon should run as.   | ||||
| # You can either supply a username or a UID. | ||||
| #  | ||||
| # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||||
|  | ||||
| nrpe_user=nagios | ||||
|  | ||||
|  | ||||
|  | ||||
| # NRPE GROUP | ||||
| # This determines the effective group that the NRPE daemon should run as.   | ||||
| # You can either supply a group name or a GID. | ||||
| #  | ||||
| # NOTE: This option is ignored if NRPE is running under either inetd or xinetd | ||||
|  | ||||
| nrpe_group=nagios | ||||
|  | ||||
|  | ||||
|  | ||||
| # DEBUGGING OPTION | ||||
| # This option determines whether or not debugging messages are logged to the | ||||
| # syslog facility. | ||||
| # Values: 0=debugging off, 1=debugging on | ||||
|  | ||||
| debug=0 | ||||
|  | ||||
|  | ||||
|  | ||||
| # COMMAND TIMEOUT | ||||
| # This specifies the maximum number of seconds that the NRPE daemon will | ||||
| # allow plugins to finish executing before killing them off. | ||||
|  | ||||
| command_timeout=60 | ||||
|  | ||||
|  | ||||
|  | ||||
| # COMMAND DEFINITIONS | ||||
| # Command definitions that this daemon will run.  Definitions | ||||
| # are in the following format: | ||||
| # | ||||
| # command[<command_name>]=<command_line> | ||||
| # | ||||
| # When the daemon receives a request to return the results of <command_name> | ||||
| # it will execute the command specified by the <command_line> argument. | ||||
| # | ||||
| # Unlike Nagios, the command line cannot contain macros - it must be | ||||
| # typed exactly as it should be executed. | ||||
| # | ||||
| # Note: Any plugins that are used in the command lines must reside | ||||
| # on the machine that this daemon is running on!  The examples below | ||||
| # assume that you have plugins installed in a /usr/nagios/libexec | ||||
| # directory.  Also note that you will have to modify the definitions below | ||||
| # to match the argument format the plugins expect.  Remember, these are | ||||
| # examples only! | ||||
|  | ||||
| command[check_users]=/usr/nagios/libexec/check_users -w 5 -c 10 | ||||
| command[check_load]=/usr/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 | ||||
| command[check_disk1]=/usr/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 | ||||
| command[check_disk2]=/usr/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 | ||||
| command[check_zombie_procs]=/usr/nagios/libexec/check_procs -w 5 -c 10 -s Z | ||||
| command[check_total_procs]=/usr/nagios/libexec/check_procs -w 150 -c 200  | ||||
							
								
								
									
										28
									
								
								net-analyzer/nagios-nrpe/files/nrpe-2.3
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								net-analyzer/nagios-nrpe/files/nrpe-2.3
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nrpe" | ||||
| 	start-stop-daemon --start --quiet --name nrpe \ | ||||
| 	--startas /usr/nagios/bin/nrpe \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -c /etc/nagios/nrpe.cfg \ | ||||
| 		--daemon | ||||
| 	eend $? "Failed to Start nrpe" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nrpe" | ||||
| 	start-stop-daemon --stop --quiet -n nrpe | ||||
| 	eend $? "Failed to Stop nrpe" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nrpe" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nrpe" | ||||
| } | ||||
							
								
								
									
										36
									
								
								net-analyzer/nagios-nrpe/files/nrpe-2.5.1
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								net-analyzer/nagios-nrpe/files/nrpe-2.5.1
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| opts="${opts} reload" | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nrpe" | ||||
| 	start-stop-daemon --start --quiet --name nrpe \ | ||||
| 	--startas /usr/nagios/bin/nrpe \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -c /etc/nagios/nrpe.cfg \ | ||||
| 		--daemon | ||||
| 	eend $? "Failed to Start nrpe" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nrpe" | ||||
| 	start-stop-daemon --stop --quiet -n nrpe | ||||
| 	eend $? "Failed to Stop nrpe" | ||||
| } | ||||
|  | ||||
| reload() { | ||||
| 	ebegin "Reloading nrpe" | ||||
| 	kill -HUP `pgrep nrpe | head -1` | ||||
| 	eend $? "Failed to reload nrpe" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nrpe" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nrpe" | ||||
| } | ||||
							
								
								
									
										36
									
								
								net-analyzer/nagios-nrpe/files/nrpe-2.5.2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								net-analyzer/nagios-nrpe/files/nrpe-2.5.2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| opts="${opts} reload" | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nrpe" | ||||
| 	start-stop-daemon --start --quiet --name nrpe \ | ||||
| 	--startas /usr/nagios/bin/nrpe \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -c /etc/nagios/nrpe.cfg \ | ||||
| 		--daemon | ||||
| 	eend $? "Failed to Start nrpe" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nrpe" | ||||
| 	start-stop-daemon --stop --quiet -n nrpe | ||||
| 	eend $? "Failed to Stop nrpe" | ||||
| } | ||||
|  | ||||
| reload() { | ||||
| 	ebegin "Reloading nrpe" | ||||
| 	kill -HUP `pgrep nrpe | head -1` | ||||
| 	eend $? "Failed to reload nrpe" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nrpe" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nrpe" | ||||
| } | ||||
							
								
								
									
										16
									
								
								net-analyzer/nagios-nrpe/metadata.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								net-analyzer/nagios-nrpe/metadata.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||||
| <pkgmetadata> | ||||
| <herd>netmon</herd> | ||||
| <maintainer> | ||||
| 	<email>malverian@gentoo.org</email> | ||||
| </maintainer> | ||||
| <maintainer> | ||||
| 	<email>ramereth@gentoo.org</email> | ||||
| 	<name>Lance Albertson</name> | ||||
| </maintainer>  | ||||
| <longdescription> | ||||
| 	A daemon for allowing Nagios to connect directly to servers and  | ||||
| 	execute commands defined in a centralized configuration file. | ||||
| </longdescription> | ||||
| </pkgmetadata> | ||||
							
								
								
									
										58
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| # Copyright 1999-2005 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild,v 1.10 2005/12/19 08:36:15 corsair Exp $ | ||||
| inherit eutils | ||||
|  | ||||
| DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" | ||||
| HOMEPAGE="http://www.nagios.org/" | ||||
| SRC_URI="mirror://sourceforge/nagios/nrpe-1.8.tar.gz" | ||||
| LICENSE="GPL-2" | ||||
| SLOT="0" | ||||
| KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc x86" | ||||
| IUSE="" | ||||
| DEPEND=">=net-analyzer/nagios-plugins-1.3.0" | ||||
| S="${WORKDIR}/nrpe-1.8" | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup nagios | ||||
| 	enewuser nagios -1 /bin/bash /dev/null nagios | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	./configure \ | ||||
| 		--host=${CHOST} \ | ||||
| 		--prefix=/usr/nagios \ | ||||
| 		--localstatedir=/var/nagios \ | ||||
| 		--sysconfdir=/etc/nagios \ | ||||
| 		--with-nrpe-user=nagios \ | ||||
| 		--with-nrpe-grp=nagios \ | ||||
| 		--infodir=/usr/share/info \ | ||||
| 		--mandir=/usr/share/man || die "./configure failed" | ||||
| 	emake all || die | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dodoc LEGAL Changelog README | ||||
|  | ||||
| 	insinto /etc/nagios | ||||
| 	newins ${FILESDIR}/nrpe-1.8.cfg nrpe.cfg | ||||
| 	fowners root:nagios /etc/nagios/nrpe.cfg | ||||
| 	fperms 0640 /etc/nagios/nrpe.cfg | ||||
|  | ||||
| 	exeinto /usr/nagios/bin | ||||
| 	doexe src/nrpe | ||||
| 	fowners nagios:nagios /usr/nagios/bin/nrpe | ||||
| 	exeinto /usr/nagios/libexec | ||||
| 	doexe src/check_nrpe | ||||
| 	fowners nagios:nagios /usr/nagios/libexec/check_nrpe | ||||
| 	exeinto /etc/init.d | ||||
| 	newexe ${FILESDIR}/nrpe-1.8 nrpe | ||||
|  | ||||
| 	fperms 0750 /usr/nagios/libexec/check_nrpe /usr/nagios/bin/nrpe | ||||
| } | ||||
| pkg_postinst() { | ||||
| 	einfo | ||||
| 	einfo "If you are using the nrpe daemon, remember to edit" | ||||
| 	einfo "the config file /etc/nagios/nrpe.cfg" | ||||
| 	einfo | ||||
| } | ||||
							
								
								
									
										86
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.3.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.3.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,86 @@ | ||||
| # Copyright 1999-2006 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.3.ebuild,v 1.4 2006/05/07 20:15:57 corsair Exp $ | ||||
|  | ||||
| inherit eutils toolchain-funcs | ||||
|  | ||||
| DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" | ||||
| HOMEPAGE="http://www.nagios.org/" | ||||
| SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" | ||||
|  | ||||
| RESTRICT="nomirror" | ||||
| LICENSE="GPL-2" | ||||
| SLOT="0" | ||||
|  | ||||
| KEYWORDS="~amd64 ~ppc ppc64 sparc x86" | ||||
|  | ||||
| IUSE="ssl command-args" | ||||
| DEPEND=">=net-analyzer/nagios-plugins-1.3.0 | ||||
| 	ssl? ( dev-libs/openssl )" | ||||
| S="${WORKDIR}/nrpe-${PV}" | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup nagios | ||||
| 	enewuser nagios -1 /bin/bash /dev/null nagios | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	local myconf | ||||
|  | ||||
| 	myconf="${myconf} `use_enable ssl` \ | ||||
| 					  `use_enable command-args`" | ||||
|  | ||||
| 	# Generate the dh.h header file for better security (2005 Mar 20 eldad) | ||||
| 	if useq ssl ; then | ||||
| 		openssl dhparam -C 512 | sed -n '1,/BEGIN DH PARAMETERS/p' | grep -v "BEGIN DH PARAMETERS" > ${S}/src/dh.h | ||||
| 	fi | ||||
|  | ||||
| 	./configure ${myconf} \ | ||||
| 		--host=${CHOST} \ | ||||
| 		--prefix=/usr/nagios \ | ||||
| 		--localstatedir=/var/nagios \ | ||||
| 		--sysconfdir=/etc/nagios \ | ||||
| 		--with-nrpe-user=nagios \ | ||||
| 		--with-nrpe-grp=nagios \ | ||||
| 		--infodir=/usr/share/info \ | ||||
| 		--mandir=/usr/share/man || die "./configure failed" | ||||
| 	emake all || die | ||||
| 	# Add nifty nrpe check tool | ||||
| 	cd contrib | ||||
| 	$(tc-getCC) ${CFLAGS} -o nrpe_check_control	nrpe_check_control.c | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dodoc LEGAL Changelog README SECURITY README.SSL \ | ||||
| 		contrib/README.nrpe_check_control | ||||
|  | ||||
| 	insinto /etc/nagios | ||||
| 	newins ${S}/sample-config/nrpe.cfg nrpe.cfg | ||||
| 	fowners root:nagios /etc/nagios/nrpe.cfg | ||||
| 	fperms 0640 /etc/nagios/nrpe.cfg | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/bin | ||||
| 	doexe src/nrpe | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/libexec | ||||
| 	doexe src/check_nrpe contrib/nrpe_check_control | ||||
|  | ||||
| 	exeinto /etc/init.d | ||||
| 	newexe ${FILESDIR}/nrpe-${PV} nrpe | ||||
| } | ||||
| pkg_postinst() { | ||||
| 	einfo | ||||
| 	einfo "If you are using the nrpe daemon, remember to edit" | ||||
| 	einfo "the config file /etc/nagios/nrpe.cfg" | ||||
| 	einfo | ||||
|  | ||||
| 	if useq command-args ; then | ||||
| 		ewarn "You have enabled command-args for NRPE. This enables" | ||||
| 		ewarn "the ability for clients to supply arguments to commands" | ||||
| 		ewarn "which should be run. " | ||||
| 		ewarn "THIS IS CONSIDERED A SECURITY RISK!" | ||||
| 		ewarn "Please read /usr/share/doc/${PF}/SECURITY.gz for more info" | ||||
| 	fi | ||||
| } | ||||
							
								
								
									
										86
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.5.1.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.5.1.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,86 @@ | ||||
| # Copyright 1999-2006 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.5.1.ebuild,v 1.4 2006/08/17 20:59:44 gustavoz Exp $ | ||||
|  | ||||
| inherit eutils toolchain-funcs | ||||
|  | ||||
| DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" | ||||
| HOMEPAGE="http://www.nagios.org/" | ||||
| SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" | ||||
|  | ||||
| RESTRICT="nomirror" | ||||
| LICENSE="GPL-2" | ||||
| SLOT="0" | ||||
|  | ||||
| KEYWORDS="~amd64 ~ppc ppc64 sparc x86" | ||||
|  | ||||
| IUSE="ssl command-args" | ||||
| DEPEND=">=net-analyzer/nagios-plugins-1.3.0 | ||||
| 	ssl? ( dev-libs/openssl )" | ||||
| S="${WORKDIR}/nrpe-${PV}" | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup nagios | ||||
| 	enewuser nagios -1 /bin/bash /dev/null nagios | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	local myconf | ||||
|  | ||||
| 	myconf="${myconf} `use_enable ssl` \ | ||||
| 					  `use_enable command-args`" | ||||
|  | ||||
| 	# Generate the dh.h header file for better security (2005 Mar 20 eldad) | ||||
| 	if useq ssl ; then | ||||
| 		openssl dhparam -C 512 | sed -n '1,/BEGIN DH PARAMETERS/p' | grep -v "BEGIN DH PARAMETERS" > ${S}/src/dh.h | ||||
| 	fi | ||||
|  | ||||
| 	./configure ${myconf} \ | ||||
| 		--host=${CHOST} \ | ||||
| 		--prefix=/usr/nagios \ | ||||
| 		--localstatedir=/var/nagios \ | ||||
| 		--sysconfdir=/etc/nagios \ | ||||
| 		--with-nrpe-user=nagios \ | ||||
| 		--with-nrpe-grp=nagios \ | ||||
| 		--infodir=/usr/share/info \ | ||||
| 		--mandir=/usr/share/man || die "./configure failed" | ||||
| 	emake all || die | ||||
| 	# Add nifty nrpe check tool | ||||
| 	cd contrib | ||||
| 	$(tc-getCC) ${CFLAGS} -o nrpe_check_control	nrpe_check_control.c | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dodoc LEGAL Changelog README SECURITY README.SSL \ | ||||
| 		contrib/README.nrpe_check_control | ||||
|  | ||||
| 	insinto /etc/nagios | ||||
| 	newins ${S}/sample-config/nrpe.cfg nrpe.cfg | ||||
| 	fowners root:nagios /etc/nagios/nrpe.cfg | ||||
| 	fperms 0640 /etc/nagios/nrpe.cfg | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/bin | ||||
| 	doexe src/nrpe | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/libexec | ||||
| 	doexe src/check_nrpe contrib/nrpe_check_control | ||||
|  | ||||
| 	exeinto /etc/init.d | ||||
| 	newexe ${FILESDIR}/nrpe-${PV} nrpe | ||||
| } | ||||
| pkg_postinst() { | ||||
| 	einfo | ||||
| 	einfo "If you are using the nrpe daemon, remember to edit" | ||||
| 	einfo "the config file /etc/nagios/nrpe.cfg" | ||||
| 	einfo | ||||
|  | ||||
| 	if useq command-args ; then | ||||
| 		ewarn "You have enabled command-args for NRPE. This enables" | ||||
| 		ewarn "the ability for clients to supply arguments to commands" | ||||
| 		ewarn "which should be run. " | ||||
| 		ewarn "THIS IS CONSIDERED A SECURITY RISK!" | ||||
| 		ewarn "Please read /usr/share/doc/${PF}/SECURITY.gz for more info" | ||||
| 	fi | ||||
| } | ||||
							
								
								
									
										94
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.5.2-r1.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										94
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.5.2-r1.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,94 @@ | ||||
| # Copyright 1999-2006 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.5.2-r1.ebuild,v 1.2 2006/10/21 22:13:35 tcort Exp $ | ||||
|  | ||||
| inherit eutils toolchain-funcs | ||||
|  | ||||
| DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" | ||||
| HOMEPAGE="http://www.nagios.org/" | ||||
| SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" | ||||
|  | ||||
| RESTRICT="nomirror" | ||||
| LICENSE="GPL-2" | ||||
| SLOT="0" | ||||
|  | ||||
| KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" | ||||
|  | ||||
| IUSE="ssl command-args" | ||||
| DEPEND=">=net-analyzer/nagios-plugins-1.3.0 | ||||
| 	ssl? ( dev-libs/openssl )" | ||||
| S="${WORKDIR}/nrpe-${PV}" | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup nagios | ||||
| 	enewuser nagios -1 /bin/bash /dev/null nagios | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	local myconf | ||||
|  | ||||
| 	myconf="${myconf} `use_enable ssl` \ | ||||
| 					  `use_enable command-args`" | ||||
|  | ||||
| 	# Generate the dh.h header file for better security (2005 Mar 20 eldad) | ||||
| 	if useq ssl ; then | ||||
| 		openssl dhparam -C 512 | sed -n '1,/BEGIN DH PARAMETERS/p' | grep -v "BEGIN DH PARAMETERS" > ${S}/src/dh.h | ||||
| 	fi | ||||
|  | ||||
| 	./configure ${myconf} \ | ||||
| 		--host=${CHOST} \ | ||||
| 		--prefix=/usr/nagios \ | ||||
| 		--localstatedir=/var/nagios \ | ||||
| 		--sysconfdir=/etc/nagios \ | ||||
| 		--with-nrpe-user=nagios \ | ||||
| 		--with-nrpe-grp=nagios \ | ||||
| 		--infodir=/usr/share/info \ | ||||
| 		--mandir=/usr/share/man || die "./configure failed" | ||||
| 	emake all || die | ||||
| 	# Add nifty nrpe check tool | ||||
| 	cd contrib | ||||
| 	$(tc-getCC) ${CFLAGS} -o nrpe_check_control	nrpe_check_control.c | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dodoc LEGAL Changelog README SECURITY README.SSL \ | ||||
| 		contrib/README.nrpe_check_control | ||||
|  | ||||
| 	insinto /etc/nagios | ||||
| 	newins ${S}/sample-config/nrpe.cfg nrpe.cfg | ||||
| 	fowners root:nagios /etc/nagios/nrpe.cfg | ||||
| 	fperms 0640 /etc/nagios/nrpe.cfg | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/bin | ||||
| 	doexe src/nrpe | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/libexec | ||||
| 	doexe src/check_nrpe contrib/nrpe_check_control | ||||
|  | ||||
| 	exeinto /etc/init.d | ||||
| 	newexe ${FILESDIR}/nrpe-${PV} nrpe | ||||
|  | ||||
| 	cat << EOF > ${T}/55-nagios-revdep | ||||
| SEARCH_DIRS="/usr/nagios/bin /usr/nagios/libexec" | ||||
| EOF | ||||
|  | ||||
| 	insinto /etc/revdep-rebuild | ||||
| 	doins ${T}/55-nagios-revdep | ||||
| } | ||||
|  | ||||
| pkg_postinst() { | ||||
| 	einfo | ||||
| 	einfo "If you are using the nrpe daemon, remember to edit" | ||||
| 	einfo "the config file /etc/nagios/nrpe.cfg" | ||||
| 	einfo | ||||
|  | ||||
| 	if useq command-args ; then | ||||
| 		ewarn "You have enabled command-args for NRPE. This enables" | ||||
| 		ewarn "the ability for clients to supply arguments to commands" | ||||
| 		ewarn "which should be run. " | ||||
| 		ewarn "THIS IS CONSIDERED A SECURITY RISK!" | ||||
| 		ewarn "Please read /usr/share/doc/${PF}/SECURITY.gz for more info" | ||||
| 	fi | ||||
| } | ||||
							
								
								
									
										86
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.5.2.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								net-analyzer/nagios-nrpe/nagios-nrpe-2.5.2.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,86 @@ | ||||
| # Copyright 1999-2006 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.5.2.ebuild,v 1.1 2006/07/04 20:01:23 ramereth Exp $ | ||||
|  | ||||
| inherit eutils toolchain-funcs | ||||
|  | ||||
| DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" | ||||
| HOMEPAGE="http://www.nagios.org/" | ||||
| SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" | ||||
|  | ||||
| RESTRICT="nomirror" | ||||
| LICENSE="GPL-2" | ||||
| SLOT="0" | ||||
|  | ||||
| KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" | ||||
|  | ||||
| IUSE="ssl command-args" | ||||
| DEPEND=">=net-analyzer/nagios-plugins-1.3.0 | ||||
| 	ssl? ( dev-libs/openssl )" | ||||
| S="${WORKDIR}/nrpe-${PV}" | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup nagios | ||||
| 	enewuser nagios -1 /bin/bash /dev/null nagios | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	local myconf | ||||
|  | ||||
| 	myconf="${myconf} `use_enable ssl` \ | ||||
| 					  `use_enable command-args`" | ||||
|  | ||||
| 	# Generate the dh.h header file for better security (2005 Mar 20 eldad) | ||||
| 	if useq ssl ; then | ||||
| 		openssl dhparam -C 512 | sed -n '1,/BEGIN DH PARAMETERS/p' | grep -v "BEGIN DH PARAMETERS" > ${S}/src/dh.h | ||||
| 	fi | ||||
|  | ||||
| 	./configure ${myconf} \ | ||||
| 		--host=${CHOST} \ | ||||
| 		--prefix=/usr/nagios \ | ||||
| 		--localstatedir=/var/nagios \ | ||||
| 		--sysconfdir=/etc/nagios \ | ||||
| 		--with-nrpe-user=nagios \ | ||||
| 		--with-nrpe-grp=nagios \ | ||||
| 		--infodir=/usr/share/info \ | ||||
| 		--mandir=/usr/share/man || die "./configure failed" | ||||
| 	emake all || die | ||||
| 	# Add nifty nrpe check tool | ||||
| 	cd contrib | ||||
| 	$(tc-getCC) ${CFLAGS} -o nrpe_check_control	nrpe_check_control.c | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dodoc LEGAL Changelog README SECURITY README.SSL \ | ||||
| 		contrib/README.nrpe_check_control | ||||
|  | ||||
| 	insinto /etc/nagios | ||||
| 	newins ${S}/sample-config/nrpe.cfg nrpe.cfg | ||||
| 	fowners root:nagios /etc/nagios/nrpe.cfg | ||||
| 	fperms 0640 /etc/nagios/nrpe.cfg | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/bin | ||||
| 	doexe src/nrpe | ||||
|  | ||||
| 	exeopts -m0750 -o nagios -g nagios | ||||
| 	exeinto /usr/nagios/libexec | ||||
| 	doexe src/check_nrpe contrib/nrpe_check_control | ||||
|  | ||||
| 	exeinto /etc/init.d | ||||
| 	newexe ${FILESDIR}/nrpe-${PV} nrpe | ||||
| } | ||||
| pkg_postinst() { | ||||
| 	einfo | ||||
| 	einfo "If you are using the nrpe daemon, remember to edit" | ||||
| 	einfo "the config file /etc/nagios/nrpe.cfg" | ||||
| 	einfo | ||||
|  | ||||
| 	if useq command-args ; then | ||||
| 		ewarn "You have enabled command-args for NRPE. This enables" | ||||
| 		ewarn "the ability for clients to supply arguments to commands" | ||||
| 		ewarn "which should be run. " | ||||
| 		ewarn "THIS IS CONSIDERED A SECURITY RISK!" | ||||
| 		ewarn "Please read /usr/share/doc/${PF}/SECURITY.gz for more info" | ||||
| 	fi | ||||
| } | ||||
		Reference in New Issue
	
	Block a user