mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
network/nagios: Use monitoring-plugins by default.
This commit is contained in:
parent
581a45f2a5
commit
c64a521ce7
2 changed files with 7 additions and 3 deletions
|
@ -19,7 +19,7 @@ This SlackBuild installs the basic nagios system in /var/www/htdocs/
|
|||
To change the location, set the DOCROOT variable:
|
||||
# DOCROOT=/your/docroot/dir ./nagios.SlackBuild
|
||||
|
||||
For a useful setup, you will want to have nagios-plugins installed.
|
||||
For a useful setup, you will want to have monitoring-plugins installed.
|
||||
|
||||
To configure nagios, some knowledge of httpd is required. Check the included
|
||||
'README.SLACKWARE' file for some basic setup instructions. The include file
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Slackware build script for nagios
|
||||
|
||||
# Copyright 2009-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
|
||||
# Copyright 2014, 2015 Mario Preksavec, Zagreb, HR
|
||||
# Copyright 2014, 2015 Mario Preksavec, Zagreb, Croatia
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=nagios
|
||||
VERSION=${VERSION:-4.0.8}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -128,6 +128,10 @@ make install-exfoliation
|
|||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# Use monitoring-plugins instead of nagios-plugins
|
||||
sed -i 's#\($USER1$=/usr/libexec/\)nagios#\1monitoring-plugins#' \
|
||||
$PKG/etc/nagios/resource.cfg
|
||||
|
||||
# Change configuration files to .new
|
||||
find $PKG/etc/$PRGNAM/ -name *.cfg | while read cfg ; do mv $cfg $cfg.new ; done
|
||||
mv $PKG/etc/httpd/extra/nagios.conf $PKG/etc/httpd/extra/nagios.conf.new
|
||||
|
|
Loading…
Reference in a new issue