Index: net-mgmt/check_snmp_pkgvuln/Makefile =================================================================== --- /dev/null +++ net-mgmt/check_snmp_pkgvuln/Makefile @@ -0,0 +1,29 @@ +# Created by: Jarrod Sayers +# $FreeBSD$ + +PORTNAME= check_snmp_pkgvuln +PORTVERSION= 0.02 +CATEGORIES= net-mgmt +PKGNAMEPREFIX= nagios- +PKGNAMESUFFIX= -plugin +MASTER_SITES= # none +DISTFILES= # none + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Security vulnerability plugin for Nagios + +RUN_DEPENDS= snmpwalk:${PORTSDIR}/net-mgmt/net-snmp + +NAGIOS_PLUGIN_DIR?= libexec/nagios + +NO_WRKSUBDIR= yes +NO_BUILD= yes + +PLIST_SUB+= NAGIOS_PLUGIN_DIR=${NAGIOS_PLUGIN_DIR} + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${NAGIOS_PLUGIN_DIR} + ${INSTALL_SCRIPT} ${FILESDIR}/check_snmp_pkgvuln \ + ${STAGEDIR}${PREFIX}/${NAGIOS_PLUGIN_DIR}/ + +.include Index: net-mgmt/check_snmp_pkgvuln/files/check_snmp_pkgvuln =================================================================== --- /dev/null +++ net-mgmt/check_snmp_pkgvuln/files/check_snmp_pkgvuln @@ -0,0 +1,110 @@ +#! /bin/sh +# +# Author: Clement Laforet +# +# Converted to pkg audit by Dan Langille +# +# This script is under beerware licence from Poul-Henning Kamp +# . +# +# ---------------------------------------------------------------------------- +# "THE BEER-WARE LICENSE" (Revision 42): +# wrote this file. As long as you retain this notice you +# can do whatever you want with this stuff. If we meet some day, and you think +# this stuff is worth it, you can buy me a beer in return. Clement Laforet +# ---------------------------------------------------------------------------- +# +# Changelog: +# - 20050715: v0.01 initial version. +# +# +HOME="/var/spool/nagios" +SED="/usr/bin/sed" +SNMPWALK="/usr/local/bin/snmpwalk" +PKGAUDIT="/usr/sbin/pkg audit -q" + +TMPDIR="/tmp" +MKTEMP="/usr/bin/mktemp" +PROGNAME=`/usr/bin/basename $0` +PROGPATH=`/usr/bin/dirname $0` +TMPFILE=`${MKTEMP} ${TMPDIR}/${PROGNAME}.XXXXX` || { + ${ECHO} "failed to created tmp file" + exit ${STATE_UNKNOWN} +} + +SNMP_COMMUNITY="public" +SNMP_VERSION="1" + +. $PROGPATH/utils.sh + +ERROR_RETCODE=${STATE_CRITICAL} + +usage() { + ${ECHO} "Usage: $PROGNAME -H [-c ] [-v ] [-E ]\n" + ${ECHO} "default community is \"public\"\n" + ${ECHO} "default version is 1\n" + ${ECHO} "default error code is 2 [critical]\n" +} + +exit_clean() { + rm -f ${TMPFILE} + exit ${1} +} + +if [ ${#} -lt 1 ]; then + usage + exit_clean ${STATE_UNKNOWN} +fi + +while getopts "H:c:v:E:h" option +do + case $option in + H) + HOSTNAME=${OPTARG} + ;; + h) + usage + exit_clean ${STATE_OK} + ;; + c) + SNMP_COMMUNITY=${OPTARG} + ;; + v) + SNMP_VERSION=${OPTARG} + ;; + E) + ERROR_RETCODE=${OPTARG} + ;; + *) + echo "Unknown argument: $1" + usage + exit_clean ${STATE_UNKNOWN} + ;; + esac +done +shift $(($OPTIND - 1)) + + +if [ "x${HOSTNAME}" = "x" ]; then + ${ECHO} "you need a hostname" + exit_clean ${STATE_UNKNOWN} +fi + +${SNMPWALK} -v ${SNMP_VERSION} -c ${SNMP_COMMUNITY} ${HOSTNAME} \ + HOST-RESOURCES-MIB::hrSWInstalledName > ${TMPFILE} || {\ + exit_clean ${STATE_UNKNOWN} + } + +PKGS=`${SED} -e 's/.*"\(.*\)"$/\1/' ${TMPFILE}` +RESULT=`${PKGAUDIT} ${PKGS}` + +if [ "$?" -ne "0" ] +then + SPACES=`echo $RESULT | tr -cd ' ' | wc -c` + PKGCOUNT=$((SPACES + 1)) + echo ${PKGCOUNT} vulnerable packages: ${RESULT} + exit_clean ${ERROR_RETCODE} +else + echo ${RESULT} + exit_clean ${STATE_OK} +fi Index: net-mgmt/check_snmp_pkgvuln/pkg-descr =================================================================== --- /dev/null +++ net-mgmt/check_snmp_pkgvuln/pkg-descr @@ -0,0 +1,6 @@ +check_snmp_pkgvuln is a Nagios plugin that detects hosts that are running +vulnerable ports based on the database of security vulnerabilities +provided by portaudit. The plugin communicates with the host via SNMP +using the HOST-RESOURCES-MIB::hrSWInstalledName MIB. + +WWW: https://gist.github.com/dlangille/aec6af1179debd99cd6c Index: net-mgmt/check_snmp_pkgvuln/pkg-plist =================================================================== --- /dev/null +++ net-mgmt/check_snmp_pkgvuln/pkg-plist @@ -0,0 +1,2 @@ +%%NAGIOS_PLUGIN_DIR%%/check_snmp_pkgvuln +@dir %%NAGIOS_PLUGIN_DIR%% Index: net-mgmt/nagios-check_bacula/Makefile =================================================================== --- net-mgmt/nagios-check_bacula/Makefile +++ net-mgmt/nagios-check_bacula/Makefile @@ -20,8 +20,7 @@ CONFIGURE_ARGS= --enable-client-only \ --disable-build-dird \ --disable-build-stored \ - --disable-nls \ - --disable-xatt + --disable-nls OPTIONS_DEFINE= # OPTIONS_DEFAULT=# Index: textproc/elasticsearch/files/elasticsearch.in =================================================================== --- textproc/elasticsearch/files/elasticsearch.in +++ textproc/elasticsearch/files/elasticsearch.in @@ -17,7 +17,7 @@ # Set it to required group. # elasticsearch_config (path): Set to /usr/local/etc/elasticsearch/elasticsearch.yml by default. # Set it to the config file location. -# elasticsearch_min_mem (num): Minumum JVM heap size, 256m by default. +# elasticsearch_min_mem (num): Minimum JVM heap size, 256m by default. # elasticsearch_max_mem (num): Maximum JVM heap size, 1g by default. # elasticsearch_props (args): Additional java properties or arguments. # elasticsearch_tmp (path): Set to /var/tmp/elasticsearch by default. @@ -33,7 +33,7 @@ : ${elasticsearch_user:=%%SEARCHUSER%%} : ${elasticsearch_group:=%%SEARCHGROUP%%} : ${elasticsearch_config:="%%PREFIX%%/etc/elasticsearch/elasticsearch.yml"} -: ${elasticsearch_min_mem:="256m"} +: ${elasticsearch_min_mem:="1g"} : ${elasticsearch_max_mem:="1g"} : ${elasticsearch_props:=""} : ${elasticsearch_tmp:="/var/tmp/elasticsearch"} Index: www/bacula-web/Makefile =================================================================== --- www/bacula-web/Makefile +++ www/bacula-web/Makefile @@ -3,11 +3,11 @@ PORTNAME= bacula-web DISTVERSION= 6.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www sysutils MASTER_SITES= http://www.bacula-web.org/files/bacula-web.org/downloads/ -MAINTAINER= dan@langille.org +MAINTAINER= dvl@FreeBSD.org COMMENT= Bacula-web provides a summarized output of Bacula jobs LICENSE= GPLv2 Index: www/bacula-web/pkg-plist =================================================================== --- www/bacula-web/pkg-plist +++ www/bacula-web/pkg-plist @@ -26,6 +26,7 @@ %%BASE%%/application/models/pools.model.php %%BASE%%/application/models/volumes.model.php %%BASE%%/application/view/backupjob-report.tpl +@dir(www,www,) %%BASE%%/application/view/cache %%BASE%%/application/view/cache/README %%BASE%%/application/view/client-report.tpl %%BASE%%/application/view/footer.tpl