forked from ports/contrib
nagios-nrpe: initial import
This commit is contained in:
parent
b8c127ce40
commit
3fc440d894
8
nagios-nrpe/.footprint
Normal file
8
nagios-nrpe/.footprint
Normal file
@ -0,0 +1,8 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxrwxr-x nagios/nagios etc/nagios/
|
||||
-rw-r--r-- nagios/nagios etc/nagios/nrpe.cfg
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/nrpe
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxrwxr-x nagios/nagios usr/bin/
|
||||
-rwxrwxr-x nagios/nagios usr/bin/nrpe
|
2
nagios-nrpe/.md5sum
Normal file
2
nagios-nrpe/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
e5176d9b258123ce9cf5872e33a77c1a nrpe-2.13.tar.gz
|
||||
9751315fa380e20d85c859d94187ef54 nrpe.rc
|
25
nagios-nrpe/Pkgfile
Normal file
25
nagios-nrpe/Pkgfile
Normal file
@ -0,0 +1,25 @@
|
||||
# Description: Nagios Remote Plugin Executor
|
||||
# URL: http://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-Nagios-Remote-Plugin-Executor/details
|
||||
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
||||
# Depends on: nagios
|
||||
|
||||
name=nagios-nrpe
|
||||
version=2.13
|
||||
release=1
|
||||
source=(http://downloads.sourceforge.net/sourceforge/nagios/nrpe-$version.tar.gz \
|
||||
nrpe.rc)
|
||||
|
||||
build () {
|
||||
cd nrpe-$version
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sysconfdir=/etc/nagios \
|
||||
--with-nagios-user=nagios \
|
||||
--with-nagios-group=nagios \
|
||||
--disable-nls
|
||||
|
||||
make nrpe
|
||||
make DESTDIR=$PKG install-daemon install-daemon-config
|
||||
install -D -m 0755 $SRC/nrpe.rc $PKG/etc/rc.d/nrpe
|
||||
}
|
23
nagios-nrpe/nrpe.rc
Executable file
23
nagios-nrpe/nrpe.rc
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/nrpe: start/stop nagios nrpe daemon
|
||||
#
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
/usr/bin/nrpe -c /etc/nagios/nrpe.cfg -d
|
||||
;;
|
||||
stop)
|
||||
killall -q /usr/bin/nrpe
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user