1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

mrtg-mysq-load is a small Perl script which is meant

to be run by mrtg. It will fetch the total number of queries
and slow queries handled by a mysql server.

Author:	Carsten H. Pedersen <mysqlfaq@bitbybit.dk>
WWW:	http://www.bitbybit.dk/mysqlfaq/mrtg-mysql-load/

PR:		ports/65325
Submitted by:	Piet Delport <pjd@303.za.net>
This commit is contained in:
Pav Lucistnik 2004-05-02 19:25:11 +00:00
parent 3718d819cf
commit 270a21b5b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108190
6 changed files with 53 additions and 0 deletions

View File

@ -77,6 +77,7 @@
SUBDIR += mergeant
SUBDIR += metakit
SUBDIR += mird
SUBDIR += mrtg-mysql-load
SUBDIR += msql
SUBDIR += mtop
SUBDIR += myodbc

View File

@ -0,0 +1,36 @@
# New ports collection makefile for: mrtg-mysql-load
# Date created: 2004-04-08
# Whom: Piet Delport <pjd@303.za.net>
#
# $FreeBSD$
#
PORTNAME= mrtg-mysql-load
PORTVERSION= 1.02
CATEGORIES= databases net-mgmt
MASTER_SITES= http://www.bitbybit.dk/mysqlfaq/mrtg-mysql-load/
MAINTAINER= ports@FreeBSD.org
COMMENT= A MySQL load analysis fetcher for MRTG
RUN_DEPENDS= mrtg:${PORTSDIR}/net-mgmt/mrtg \
mysqladmin:${PORTSDIR}/databases/mysql40-client
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_PERL5_RUN= yes
USE_REINPLACE= yes
MAN1= ${PORTNAME}.1
post-patch:
@${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|' ${WRKSRC}/${PORTNAME}
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${MKDIR} ${PREFIX}/etc/mrtg
@${INSTALL_DATA} ${WRKSRC}/mrtg-cfg.example ${PREFIX}/etc/mrtg/mrtg.cfg-mysql-load.example
@${INSTALL_DATA} ${WRKSRC}/mysql-load-cfg.example ${PREFIX}/etc/mrtg/mysql-load-cfg.example
@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (mrtg-mysql-load-1.02.tar.gz) = 74ff08053d992b7bdef2b8678c5ac9f7
SIZE (mrtg-mysql-load-1.02.tar.gz) = 21761

View File

@ -0,0 +1,5 @@
--- mrtg-mysql-load.orig Mon Feb 18 11:03:52 2002
+++ mrtg-mysql-load Thu Apr 8 14:24:57 2004
@@ -1 +1 @@
-#!/usr/local/bin/perl -w
+#!%%PERL%% -w

View File

@ -0,0 +1,6 @@
mrtg-mysq-load is a small Perl script which is meant
to be run by mrtg. It will fetch the total number of queries
and slow queries handled by a mysql server.
Author: Carsten H. Pedersen <mysqlfaq@bitbybit.dk>
WWW: http://www.bitbybit.dk/mysqlfaq/mrtg-mysql-load/

View File

@ -0,0 +1,3 @@
bin/mrtg-mysql-load
etc/mrtg/mrtg.cfg-mysql-load.example
etc/mrtg/mysql-load-cfg.example