aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nagios-statd
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2003-12-14 05:53:50 +0800
committersergei <sergei@FreeBSD.org>2003-12-14 05:53:50 +0800
commitce20883177f78cf641152f6b02002ee39a12f605 (patch)
treee7fbb1c6bf33f90ea77cbe1975b3d3af0cb5a5b3 /sysutils/nagios-statd
parentbe02488d8a7b21883a26467eb22b3456a55c8bef (diff)
downloadfreebsd-ports-graphics-ce20883177f78cf641152f6b02002ee39a12f605.tar.gz
freebsd-ports-graphics-ce20883177f78cf641152f6b02002ee39a12f605.tar.zst
freebsd-ports-graphics-ce20883177f78cf641152f6b02002ee39a12f605.zip
Add nagios-statd 3.09, daemon/client to check remote host information.
Nagios-statd is an addon to the Nagios (formerly netsaint) program. It is a Python daemon and scripts that plug-in to Nagios and allow you to check remote host information (such as load, users, filesystems, etc.) Released under the BSD license. Author: Nick Reinking WWW: http://www.twoevils.org/html/files.php PR: 59029 Submitted by: Jim Shewmaker <jim@bluenotch.com>
Diffstat (limited to 'sysutils/nagios-statd')
-rw-r--r--sysutils/nagios-statd/Makefile33
-rw-r--r--sysutils/nagios-statd/distinfo1
-rw-r--r--sysutils/nagios-statd/files/nagios-statd.sh.sample21
-rw-r--r--sysutils/nagios-statd/pkg-descr9
-rw-r--r--sysutils/nagios-statd/pkg-plist4
5 files changed, 68 insertions, 0 deletions
diff --git a/sysutils/nagios-statd/Makefile b/sysutils/nagios-statd/Makefile
new file mode 100644
index 00000000000..a9e760ffcd5
--- /dev/null
+++ b/sysutils/nagios-statd/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: nagios-statd
+# Date created: 2003-11-06
+# Whom: Jim Shewmaker
+#
+# $FreeBSD$
+#
+
+PORTNAME= nagios-statd
+PORTVERSION= 3.09
+CATEGORIES= sysutils python
+MASTER_SITES= http://www.twoevils.org/files/netsaint_statd/
+
+MAINTAINER= jims@bluenotch.com
+COMMENT= Daemon/client to check remote host information for Nagios
+
+USE_PYTHON= yes
+USE_REINPLACE= yes
+
+MAN1= nagios-stat.1
+MAN8= nagios-statd.8
+
+do-build:
+ ${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/bin/env python,' \
+ ${WRKSRC}/bin/* ${WRKSRC}/sbin/*
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/nagios-stat ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/sbin/nagios-statd ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${FILESDIR}/nagios-statd.sh.sample ${PREFIX}/etc/rc.d
+ ${INSTALL_MAN} ${WRKSRC}/share/man1/nagios-stat.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/share/man8/nagios-statd.8 ${PREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/sysutils/nagios-statd/distinfo b/sysutils/nagios-statd/distinfo
new file mode 100644
index 00000000000..fd95f212afd
--- /dev/null
+++ b/sysutils/nagios-statd/distinfo
@@ -0,0 +1 @@
+MD5 (nagios-statd-3.09.tar.gz) = 634a63a1fb8b33ac312f733bafa2e2d3
diff --git a/sysutils/nagios-statd/files/nagios-statd.sh.sample b/sysutils/nagios-statd/files/nagios-statd.sh.sample
new file mode 100644
index 00000000000..1d0978a129f
--- /dev/null
+++ b/sysutils/nagios-statd/files/nagios-statd.sh.sample
@@ -0,0 +1,21 @@
+#!/bin/sh
+# $FreeBSD$
+
+case "${1}" in
+start)
+ nagios-statd
+ echo -n " nagios-statd"
+ ;;
+stop)
+ /usr/bin/killall nagios-statd
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: $0 {start|stop|restart}"
+ ;;
+esac
+
+exit 0
diff --git a/sysutils/nagios-statd/pkg-descr b/sysutils/nagios-statd/pkg-descr
new file mode 100644
index 00000000000..36fe97534e8
--- /dev/null
+++ b/sysutils/nagios-statd/pkg-descr
@@ -0,0 +1,9 @@
+Nagios-statd is an addon to the Nagios (formerly netsaint) program.
+It is a Python daemon and scripts that plug-in to Nagios
+and allow you to check remote host information
+(such as load, users, filesystems, etc.)
+Released under the BSD license.
+
+Author: Nick Reinking
+WWW: http://www.twoevils.org/html/files.php
+
diff --git a/sysutils/nagios-statd/pkg-plist b/sysutils/nagios-statd/pkg-plist
new file mode 100644
index 00000000000..2fb37af965e
--- /dev/null
+++ b/sysutils/nagios-statd/pkg-plist
@@ -0,0 +1,4 @@
+@comment $FreeBSD$
+bin/nagios-stat
+sbin/nagios-statd
+etc/rc.d/nagios-statd.sh.sample