From db1228b35d8de6c9d6a9666c341585637308ff1d Mon Sep 17 00:00:00 2001 From: Stig Sandbeck Mathisen Date: Sat, 4 Oct 2014 19:05:06 +0200 Subject: [PATCH] Use UNIX line breaks - using DOS line breaks introduced syntax errors --- plugins/samba/samba_locked | 80 +++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/plugins/samba/samba_locked b/plugins/samba/samba_locked index c9958c3b..787de0c6 100755 --- a/plugins/samba/samba_locked +++ b/plugins/samba/samba_locked @@ -1,40 +1,40 @@ -#!/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 - Adapated from jimmyo's processses plugin. -# -# Magick markers (optional - used by munin-config and som 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 Samba' - 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 +#!/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 - Adapated from jimmyo's processses plugin. +# +# Magick markers (optional - used by munin-config and som 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 Samba' + 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