mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Initial version
This commit is contained in:
parent
1e85a671bc
commit
8f0e3e45f5
1 changed files with 40 additions and 0 deletions
40
plugins/other/samba_locked
Executable file
40
plugins/other/samba_locked
Executable file
|
@ -0,0 +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 -n "samba_locked.value "
|
||||||
|
smbstatus -L 2> /dev/null | grep -c DENY_
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue