1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Use UNIX line breaks

- using DOS line breaks introduced syntax errors
This commit is contained in:
Stig Sandbeck Mathisen 2014-10-04 19:05:06 +02:00
parent ac2e2fda07
commit db1228b35d

View file

@ -1,40 +1,40 @@
#!/bin/sh #!/bin/sh
# #
# Plugin to monitor the number of Samba locked files on the machine. # Plugin to monitor the number of Samba locked files on the machine.
# #
# Parameters: # Parameters:
# #
# config (required) # config (required)
# autoconf (optional - used by munin-config) # autoconf (optional - used by munin-config)
# #
# $Log$ # $Log$
# Revision 1.0 2007/04/16 Jon Higgs # Revision 1.0 2007/04/16 Jon Higgs
# Initial Release - Adapated from jimmyo's processses plugin. # Initial Release - Adapated from jimmyo's processses plugin.
# #
# Magick markers (optional - used by munin-config and som installation # Magick markers (optional - used by munin-config and som installation
# scripts): # scripts):
#%# family=auto #%# family=auto
#%# capabilities=autoconf #%# capabilities=autoconf
if [ "$1" = "autoconf" ]; then if [ "$1" = "autoconf" ]; then
echo yes echo yes
exit 0 exit 0
fi fi
if [ "$1" = "config" ]; then if [ "$1" = "config" ]; then
echo 'graph_title Samba Locked Files' echo 'graph_title Samba Locked Files'
echo 'graph_args --base 1000 -l 0 ' echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel number of locked files' echo 'graph_vlabel number of locked files'
echo 'graph_category Samba' echo 'graph_category Samba'
echo 'graph_info This graph shows the number locked Samba Files.' echo 'graph_info This graph shows the number locked Samba Files.'
echo 'samba_locked.label Locked Files' echo 'samba_locked.label Locked Files'
echo 'samba_locked.draw LINE2' echo 'samba_locked.draw LINE2'
echo 'samba_locked.info The current number of locked files.' echo 'samba_locked.info The current number of locked files.'
exit 0 exit 0
fi fi
echo "samba_locked.value $(smbstatus -L 2> /dev/null | grep -c DENY_)" echo "samba_locked.value $(smbstatus -L 2> /dev/null | grep -c DENY_)"
# If here, always return OK # If here, always return OK
exit 0 exit 0