From 6fc99676f7a45d12bbca86fbefcec9bdbfb51a5d Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 1 Oct 2021 12:19:38 +0200 Subject: [PATCH] alte samba* plugins entfernt --- extern/samba_locked | 40 --------------------------------------- extern/samba_users | 46 --------------------------------------------- 2 files changed, 86 deletions(-) delete mode 100644 extern/samba_locked delete mode 100644 extern/samba_users diff --git a/extern/samba_locked b/extern/samba_locked deleted file mode 100644 index 2f1ab9a..0000000 --- a/extern/samba_locked +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# -# Plugin to monitor the number of Samba locked files on the machine. -# -# Parameters: -# -# config (required) -# autoconf (optional - used by munin-config) -# -# $Log$ -# Revision 1.0 2007/04/16 Jon Higgs -# Initial Release - Adapted from jimmyo's processes plugin. -# -# Magick markers (optional - used by munin-config and some installation -# scripts): -#%# family=auto -#%# capabilities=autoconf - -if [ "$1" = "autoconf" ]; then - echo yes - exit 0 -fi - -if [ "$1" = "config" ]; then - - echo 'graph_title Samba Locked Files' - echo 'graph_args --base 1000 -l 0 ' - echo 'graph_vlabel number of locked files' - echo 'graph_category fs' - echo 'graph_info This graph shows the number locked Samba Files.' - echo 'samba_locked.label Locked Files' - echo 'samba_locked.draw LINE2' - echo 'samba_locked.info The current number of locked files.' - exit 0 -fi - -echo "samba_locked.value $(smbstatus -L 2> /dev/null | grep -c DENY_)" - -# If here, always return OK -exit 0 diff --git a/extern/samba_users b/extern/samba_users deleted file mode 100644 index 6aafd06..0000000 --- a/extern/samba_users +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -# -# Plugin to monitor the number of Samba users on the machine. -# -# Parameters: -# -# config (required) -# autoconf (optional - used by munin-config) -# -# $Log$ -# Revision 1.0 2007/04/16 Jon Higgs -# Initial Release - Adapted from jimmyo's processes plugin. -# -# Revision 1.1 2014/07/24 MangaII -# Add exit 0 -# WARNING : Samba 3.6 and newer block access to smbstatus for no root user -# On Debian make a "chmod a+w /run/samba/sessionid.tdb" -# smbstatus must open this file with RW option -# -# Magick markers (optional - used by munin-config and some installation -# scripts): -#%# family=auto -#%# capabilities=autoconf - -if [ "$1" = "autoconf" ]; then - echo yes - exit 0 -fi - -if [ "$1" = "config" ]; then - - echo 'graph_title Samba Users' - echo 'graph_args --base 1000 -l 0 ' - echo 'graph_vlabel number of Samba users.' - echo 'graph_category fs' - echo 'graph_info This graph shows the number Samba users.' - echo 'samba_users.label Samba Users' - echo 'samba_users.draw LINE2' - echo 'samba_users.info The current number of Samba users.' - exit 0 -fi - -echo -n "samba_users.value " -smbstatus -b 2> /dev/null | grep -c -v -e "^Samba" -e "^---" -e "^PID" -e ^$ - -exit 0