diverse nagios plugins
This commit is contained in:
		
							
								
								
									
										28
									
								
								net-analyzer/nagios-nsca/Manifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								net-analyzer/nagios-nsca/Manifest
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| AUX nsca 449 RMD160 354925fc12039215b4d32315fc57b548401d9b14 SHA1 85f27c4b4a8cd03a03622685ed275b82ee73e98f SHA256 e1e0d2c945cc7f3757849ac554cf79da5a214cc3659ed32008fa676ecc9334f2 | ||||
| MD5 218223213e92b553a8b48303099e8074 files/nsca 449 | ||||
| RMD160 354925fc12039215b4d32315fc57b548401d9b14 files/nsca 449 | ||||
| SHA256 e1e0d2c945cc7f3757849ac554cf79da5a214cc3659ed32008fa676ecc9334f2 files/nsca 449 | ||||
| AUX nsca-2.3 462 RMD160 7117f616fccce5d29037b9c289f977ce39de71ae SHA1 0f142fcfd411d4572b2c18bd5f2be05dd87ba9a8 SHA256 bcc5c40899b5524b9c14149c1253a1ff8e41ec31ad5b019bcc5e728542a3e255 | ||||
| MD5 529c269b478256730d697c47a66c084e files/nsca-2.3 462 | ||||
| RMD160 7117f616fccce5d29037b9c289f977ce39de71ae files/nsca-2.3 462 | ||||
| SHA256 bcc5c40899b5524b9c14149c1253a1ff8e41ec31ad5b019bcc5e728542a3e255 files/nsca-2.3 462 | ||||
| AUX nsca-2.6 602 RMD160 4fba5e20992238beff1db5899ba9a65ab9f659c5 SHA1 3d400bd1e0307f8125d7095f221c1e788a2a240b SHA256 414029258ebcf70d66bde6890e3e5c17e018f61c52702e5ad6f74b1282be8598 | ||||
| MD5 60ed8374582c8dfbca1d45b58e8ee195 files/nsca-2.6 602 | ||||
| RMD160 4fba5e20992238beff1db5899ba9a65ab9f659c5 files/nsca-2.6 602 | ||||
| SHA256 414029258ebcf70d66bde6890e3e5c17e018f61c52702e5ad6f74b1282be8598 files/nsca-2.6 602 | ||||
| AUX nsca.cfg 4960 RMD160 0bcf00e89199c507c92c2104918fcfe6af016bc0 SHA1 16fed5874443e629a68e80e4e85c202626fd4ef7 SHA256 b121a6d18d608fc8b45cf70015cf7bd9ab738877cee44078e3997f59eac38c07 | ||||
| MD5 8b86cb8a22eb4b17001fbabccdcb815b files/nsca.cfg 4960 | ||||
| RMD160 0bcf00e89199c507c92c2104918fcfe6af016bc0 files/nsca.cfg 4960 | ||||
| SHA256 b121a6d18d608fc8b45cf70015cf7bd9ab738877cee44078e3997f59eac38c07 files/nsca.cfg 4960 | ||||
| AUX send_nsca.cfg 1628 RMD160 8895a57e593df3403526a6f19dc79c942e3942da SHA1 a5c976ce39a29bbb544a1b76a58dadef10f16b09 SHA256 515e14db40782e655ab748cb5ed8ea357c1346f36e028b73fbe96f2d15aaa781 | ||||
| MD5 76939517175739a4759384705421d632 files/send_nsca.cfg 1628 | ||||
| RMD160 8895a57e593df3403526a6f19dc79c942e3942da files/send_nsca.cfg 1628 | ||||
| SHA256 515e14db40782e655ab748cb5ed8ea357c1346f36e028b73fbe96f2d15aaa781 files/send_nsca.cfg 1628 | ||||
| DIST nsca-2.6.tar.gz 101341 RMD160 a1305b0ea0ceff2725a30ad70b7283125e96e9b6 SHA1 7fea1336a44e8d7ff59a73494494bb8386cd4512 SHA256 6b12781537e5301bf2c902e9fa9961cb95f624856f3d89d72416d3cca734e05a | ||||
| EBUILD nagios-nsca-2.6.ebuild 1411 RMD160 7de7ee612be18f36ebff64a35380a1740fa7feb5 SHA1 495b636db07973fc3fca991ab937960bcd6bc8b4 SHA256 412b923325e802a67808e683fd5410971e90c3e0850a081ccf18a41fa91ca397 | ||||
| MD5 7b89112c4778b5398d635fdf90ca21c2 nagios-nsca-2.6.ebuild 1411 | ||||
| RMD160 7de7ee612be18f36ebff64a35380a1740fa7feb5 nagios-nsca-2.6.ebuild 1411 | ||||
| SHA256 412b923325e802a67808e683fd5410971e90c3e0850a081ccf18a41fa91ca397 nagios-nsca-2.6.ebuild 1411 | ||||
| MD5 bcdb8406e3113f2d7e42302fef8719f5 files/digest-nagios-nsca-2.6 226 | ||||
| RMD160 d8f6d9e21fa4af2d63fe947bceb3481c042e35ee files/digest-nagios-nsca-2.6 226 | ||||
| SHA256 533ba6d51573b822e5e8012efbca229c64868da659551ff62afbcbde839cbf85 files/digest-nagios-nsca-2.6 226 | ||||
							
								
								
									
										3
									
								
								net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.6
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.6
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| MD5 d526a3ac3c29648c729c5fb4fb332488 nsca-2.6.tar.gz 101341 | ||||
| RMD160 a1305b0ea0ceff2725a30ad70b7283125e96e9b6 nsca-2.6.tar.gz 101341 | ||||
| SHA256 6b12781537e5301bf2c902e9fa9961cb95f624856f3d89d72416d3cca734e05a nsca-2.6.tar.gz 101341 | ||||
							
								
								
									
										27
									
								
								net-analyzer/nagios-nsca/files/nsca
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										27
									
								
								net-analyzer/nagios-nsca/files/nsca
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nsca" | ||||
| 	start-stop-daemon --start --quiet --name nsca \ | ||||
| 	--startas /usr/nagios/bin/nsca \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -d /etc/nagios/nsca.cfg | ||||
| 	eend $? "Failed to Start nsca" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nsca" | ||||
| 	start-stop-daemon --stop --quiet -n nsca | ||||
| 	eend $? "Failed to Stop nsca" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nsca" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nsca" | ||||
| } | ||||
							
								
								
									
										28
									
								
								net-analyzer/nagios-nsca/files/nsca-2.3
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										28
									
								
								net-analyzer/nagios-nsca/files/nsca-2.3
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nsca" | ||||
| 	start-stop-daemon --start --quiet --name nsca \ | ||||
| 	--startas /usr/nagios/bin/nsca \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -c /etc/nagios/nsca.cfg \ | ||||
| 		--daemon | ||||
| 	eend $? "Failed to Start nsca" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nsca" | ||||
| 	start-stop-daemon --stop --quiet -n nsca | ||||
| 	eend $? "Failed to Stop nsca" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nsca" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nsca" | ||||
| } | ||||
							
								
								
									
										36
									
								
								net-analyzer/nagios-nsca/files/nsca-2.6
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										36
									
								
								net-analyzer/nagios-nsca/files/nsca-2.6
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| #!/sbin/runscript | ||||
|  | ||||
| opts="${opts} reload" | ||||
|  | ||||
| depend() { | ||||
| 	need net | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting nsca" | ||||
| 	start-stop-daemon --start --quiet --name nsca \ | ||||
| 	--startas /usr/nagios/bin/nsca \ | ||||
| 		-c nagios:nagios \ | ||||
| 		-- -c /etc/nagios/nsca.cfg \ | ||||
| 		--daemon | ||||
| 	eend $? "Failed to Start nsca" | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping nsca" | ||||
| 	start-stop-daemon --stop --quiet -n nsca | ||||
| 	eend $? "Failed to Stop nsca" | ||||
| } | ||||
|  | ||||
| reload() { | ||||
|         ebegin "Reloading nsca" | ||||
|         kill -HUP `pgrep nsca` | ||||
|         eend $? "Failed to reload nsca" | ||||
| } | ||||
|  | ||||
| restart() { | ||||
| 	ebegin "Restarting nsca" | ||||
| 	svc_stop | ||||
| 	svc_start | ||||
| 	eend $? "Failed to Restart nsca" | ||||
| } | ||||
							
								
								
									
										182
									
								
								net-analyzer/nagios-nsca/files/nsca.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										182
									
								
								net-analyzer/nagios-nsca/files/nsca.cfg
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,182 @@ | ||||
| #################################################### | ||||
| # Sample NSCA Daemon Config File  | ||||
| # Written by: Ethan Galstad (nagios@nagios.org) | ||||
| #  | ||||
| # Last Modified: 06-10-2002 | ||||
| #################################################### | ||||
|  | ||||
|  | ||||
|  | ||||
| # PORT NUMBER | ||||
| # Port number we should wait for connections on. | ||||
| # This must be a non-priveledged port (i.e. > 1024). | ||||
|  | ||||
| server_port=5667 | ||||
|  | ||||
|  | ||||
|  | ||||
| # SERVER ADDRESS | ||||
| # Address that nrpe has to bind to in case there are | ||||
| # more as one interface and we do not want nrpe to bind | ||||
| # (thus listen) on all interfaces. | ||||
|  | ||||
| #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 NSCA daemon. | ||||
| # | ||||
| # Note: The daemon only does rudimentary checking of the client's IP | ||||
| # address.  I would highly recommend running as a service under | ||||
| # inetd instead of as a standalone daemon and using TCP wrappers to | ||||
| # limit access. | ||||
|  | ||||
| allowed_hosts=127.0.0.1 | ||||
|  | ||||
|  | ||||
|  | ||||
| # NSCA USER | ||||
| # This determines the effective user that the NSCA daemon should run as.   | ||||
| # You can either supply a username or a UID. | ||||
| #  | ||||
| # NOTE: This option is ignored if NSCA is running under either inetd or xinetd | ||||
|  | ||||
| nsca_user=nagios | ||||
|  | ||||
|  | ||||
|  | ||||
| # NSCA GROUP | ||||
| # This determines the effective group that the NSCA daemon should run as.   | ||||
| # You can either supply a group name or a GID. | ||||
| #  | ||||
| # NOTE: This option is ignored if NSCA is running under either inetd or xinetd | ||||
|  | ||||
| nsca_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 FILE | ||||
| # This is the location of the Nagios command file that the daemon | ||||
| # should write all service check results that it receives. | ||||
|  | ||||
| command_file=/var/nagios/rw/nagios.cmd | ||||
|  | ||||
|  | ||||
| # ALTERNATE DUMP FILE | ||||
| # This is used to specify an alternate file the daemon should | ||||
| # write service check results to in the event the command file | ||||
| # does not exist.  It is important to note that the command file | ||||
| # is implemented as a named pipe and only exists when Nagios is | ||||
| # running.  You may want to modify the startup script for Nagios | ||||
| # to dump the contents of this file into the command file after | ||||
| # it starts Nagios.  Or you may simply choose to ignore any | ||||
| # check results received while Nagios was not running... | ||||
|  | ||||
| alternate_dump_file=/var/nagios/rw/nsca.dump | ||||
|  | ||||
|  | ||||
|  | ||||
| # AGGREGATED WRITES OPTION | ||||
| # This option determines whether or not the nsca daemon will | ||||
| # aggregate writes to the external command file for client | ||||
| # connections that contain multiple check results.  If you | ||||
| # are queueing service check results on remote hosts and | ||||
| # sending them to the nsca daemon in bulk, you will probably | ||||
| # want to enable bulk writes, as this will be a bit more | ||||
| # efficient. | ||||
| # Values: 0 = do not aggregate writes, 1 = aggregate writes | ||||
|  | ||||
| aggregate_writes=0 | ||||
|  | ||||
|  | ||||
|  | ||||
| # APPEND TO FILE OPTION | ||||
| # This option determines whether or not the nsca daemon will | ||||
| # will open the external command file for writing or appending. | ||||
| # This option should almost *always* be set to 0! | ||||
| # Values: 0 = open file for writing, 1 = open file for appending | ||||
|  | ||||
| append_to_file=0 | ||||
|  | ||||
|  | ||||
|  | ||||
| # MAX PACKET AGE OPTION | ||||
| # This option is used by the nsca daemon to determine when client | ||||
| # data is too old to be valid.  Keeping this value as small as | ||||
| # possible is recommended, as it helps prevent the possibility of | ||||
| # "replay" attacks.  This value needs to be at least as long as | ||||
| # the time it takes your clients to send their data to the server. | ||||
| # Values are in seconds.  The max packet age cannot exceed 15 | ||||
| # minutes (900 seconds). | ||||
|  | ||||
| max_packet_age=30 | ||||
|  | ||||
|  | ||||
|  | ||||
| # DECRYPTION PASSWORD | ||||
| # This is the password/passphrase that should be used to descrypt the | ||||
| # incoming packets.  Note that all clients must encrypt the packets | ||||
| # they send using the same password! | ||||
| # IMPORTANT: You don't want all the users on this system to be able | ||||
| # to read the password you specify here, so make sure to set | ||||
| # restrictive permissions on this config file! | ||||
|  | ||||
| #password= | ||||
|  | ||||
|  | ||||
|  | ||||
| # DECRYPTION METHOD | ||||
| # This option determines the method by which the nsca daemon will | ||||
| # decrypt the packets it receives from the clients.  The decryption | ||||
| # method you choose will be a balance between security and performance, | ||||
| # as strong encryption methods consume more processor resources. | ||||
| # You should evaluate your security needs when choosing a decryption | ||||
| # method. | ||||
| # | ||||
| # Note: The decryption method you specify here must match the | ||||
| #       encryption method the nsca clients use (as specified in | ||||
| #       the send_nsca.cfg file)!! | ||||
| # Values: | ||||
| # | ||||
| # 	0 = None	(Do NOT use this option) | ||||
| #       1 = Simple XOR  (No security, just obfuscation, but very fast) | ||||
| # | ||||
| #       2 = DES | ||||
| #       3 = 3DES (Triple DES) | ||||
| #	4 = CAST-128 | ||||
| #	5 = CAST-256 | ||||
| #	6 = xTEA | ||||
| #	7 = 3WAY | ||||
| #	8 = BLOWFISH | ||||
| #	9 = TWOFISH | ||||
| #	10 = LOKI97 | ||||
| #	11 = RC2 | ||||
| #	12 = ARCFOUR | ||||
| # | ||||
| #	14 = RIJNDAEL-128 | ||||
| #	15 = RIJNDAEL-192 | ||||
| #	16 = RIJNDAEL-256 | ||||
| # | ||||
| #	19 = WAKE | ||||
| #	20 = SERPENT | ||||
| # | ||||
| #	22 = ENIGMA (Unix crypt) | ||||
| #	23 = GOST | ||||
| #	24 = SAFER64 | ||||
| #	25 = SAFER128 | ||||
| #	26 = SAFER+ | ||||
| # | ||||
|  | ||||
| decryption_method=1 | ||||
|  | ||||
							
								
								
									
										63
									
								
								net-analyzer/nagios-nsca/files/send_nsca.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								net-analyzer/nagios-nsca/files/send_nsca.cfg
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,63 @@ | ||||
| #################################################### | ||||
| # Sample NSCA Client Config File  | ||||
| # Written by: Ethan Galstad (nagios@nagios.org) | ||||
| #  | ||||
| # Last Modified: 02-21-2002 | ||||
| #################################################### | ||||
|  | ||||
|  | ||||
| # ENCRYPTION PASSWORD | ||||
| # This is the password/passphrase that should be used to encrypt the | ||||
| # outgoing packets.  Note that the nsca daemon must use the same  | ||||
| # password when decrypting the packet! | ||||
| # IMPORTANT: You don't want all the users on this system to be able | ||||
| # to read the password you specify here, so make sure to set | ||||
| # restrictive permissions on this config file! | ||||
|  | ||||
| #password= | ||||
|  | ||||
|  | ||||
|  | ||||
| # ENCRYPTION METHOD | ||||
| # This option determines the method by which the send_nsca client will | ||||
| # encrypt the packets it sends to the nsca daemon.  The encryption | ||||
| # method you choose will be a balance between security and performance, | ||||
| # as strong encryption methods consume more processor resources. | ||||
| # You should evaluate your security needs when choosing an encryption | ||||
| # method. | ||||
| # | ||||
| # Note: The encryption method you specify here must match the | ||||
| #       decryption method the nsca daemon uses (as specified in | ||||
| #       the nsca.cfg file)!! | ||||
| # Values: | ||||
| # 	0 = None	(Do NOT use this option) | ||||
| #       1 = Simple XOR  (No security, just obfuscation, but very fast) | ||||
| # | ||||
| #       2 = DES | ||||
| #       3 = 3DES (Triple DES) | ||||
| #	4 = CAST-128 | ||||
| #	5 = CAST-256 | ||||
| #	6 = xTEA | ||||
| #	7 = 3WAY | ||||
| #	8 = BLOWFISH | ||||
| #	9 = TWOFISH | ||||
| #	10 = LOKI97 | ||||
| #	11 = RC2 | ||||
| #	12 = ARCFOUR | ||||
| # | ||||
| #	14 = RIJNDAEL-128 | ||||
| #	15 = RIJNDAEL-192 | ||||
| #	16 = RIJNDAEL-256 | ||||
| # | ||||
| #	19 = WAKE | ||||
| #	20 = SERPENT | ||||
| # | ||||
| #	22 = ENIGMA (Unix crypt) | ||||
| #	23 = GOST | ||||
| #	24 = SAFER64 | ||||
| #	25 = SAFER128 | ||||
| #	26 = SAFER+ | ||||
| # | ||||
|  | ||||
| encryption_method=1 | ||||
|  | ||||
							
								
								
									
										50
									
								
								net-analyzer/nagios-nsca/nagios-nsca-2.6.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								net-analyzer/nagios-nsca/nagios-nsca-2.6.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| # Copyright 1999-2006 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/nagios-nsca-2.6.ebuild,v 1.5 2006/10/21 22:12:38 tcort Exp $ | ||||
|  | ||||
| DESCRIPTION="Nagios NSCA  - Nagios Service Check Acceptor" | ||||
| HOMEPAGE="http://www.nagios.org/" | ||||
| SRC_URI="mirror://sourceforge/nagios/nsca-${PV}.tar.gz" | ||||
|  | ||||
| LICENSE="GPL-2" | ||||
| SLOT="0" | ||||
| KEYWORDS="~alpha ~amd64 ~ppc ppc64 sparc x86" | ||||
| IUSE="" | ||||
|  | ||||
| DEPEND=">=net-analyzer/nagios-plugins-1.3.1 | ||||
| 	>=dev-libs/libmcrypt-2.5.1-r4" | ||||
| S="${WORKDIR}/nsca-${PV}" | ||||
|  | ||||
| src_compile() { | ||||
| 	./configure \ | ||||
| 		--host=${CHOST} \ | ||||
| 		--prefix=/usr/nagios \ | ||||
| 		--localstatedir=/var/nagios \ | ||||
| 		--sysconfdir=/etc/nagios \ | ||||
| 		--with-nsca-user=nagios \ | ||||
| 		--with-nsca-grp=nagios \ | ||||
| 		--infodir=/usr/share/info \ | ||||
| 		--mandir=/usr/share/man || die "./configure failed" | ||||
| 	emake all || die "emake failed" | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dodoc LEGAL Changelog README SECURITY | ||||
| 	insinto /etc/nagios | ||||
| 	doins ${S}/sample-config/nsca.cfg | ||||
| 	doins ${S}/sample-config/send_nsca.cfg | ||||
| 	exeinto /usr/nagios/bin | ||||
| 	doexe src/nsca | ||||
| 	fowners nagios:nagios /usr/nagios/bin/nsca | ||||
| 	exeinto /usr/nagios/libexec | ||||
| 	doexe src/send_nsca | ||||
| 	fowners nagios:nagios /usr/nagios/libexec/send_nsca | ||||
| 	exeinto /etc/init.d | ||||
| 	newexe ${FILESDIR}/nsca-${PV} nsca | ||||
| } | ||||
| pkg_postinst() { | ||||
| 	einfo | ||||
| 	einfo "If you are using the nsca daemon, remember to edit" | ||||
| 	einfo "the config file /etc/nagios/nsca.cfg" | ||||
| 	einfo | ||||
| } | ||||
		Reference in New Issue
	
	Block a user