uawdijnntqw1x1x1
IP : 216.73.216.226
Hostname : www.vorobey-market.ru
Kernel : Linux www.vorobey-market.ru 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
usr
/
src
/
..
/
libexec
/
..
/
src
/
..
/
src
/
..
/
src
/
..
/
src
/
..
/
src
/
..
/
share
/
munin
/
plugins
/
samba
/
/
#!/usr/bin/sh # -*- sh -*- : << =cut =head1 NAME samba - Plugin to monitor number of files held open by the CIFS clients =head1 CONFIGURATION This plugin uses the following configuration variables [samba] env.smbstatus - Path to "smbstatus" executable env.ignoreipcshare - Set this variable to ignore IPC$ when counting shares. =head1 AUTHOR Unknown author =head1 LICENSE GPLv2 =head1 MAGIC MARKERS #%# family=contrib #%# capabilities=autoconf =cut SMBSTATUS=${smbstatus:-`which smbstatus`} SMBSTATUS=${SMBSTATUS:-/usr/bin/smbstatus} if [ "$1" = "autoconf" ]; then if [ -x $SMBSTATUS ]; then echo yes exit 0 else echo no '(smbstatus not found)' exit 0 fi fi if [ "$1" = "config" ]; then echo 'graph_title Samba status' echo 'graph_args -l 0' echo 'graph_vlabel number' echo 'graph_category samba' echo 'proc.label processes' echo 'lock.label locked files' echo 'share.label Open shares' # Bug pointed out by kozik: there is no max field. # echo 'max.warning 900' # echo 'max.critical 960' exit 0 fi $SMBSTATUS -p 2>/dev/null | awk 'BEGIN {lines=0} $1 ~ /^[0-9]+/ {lines++} END {print "proc.value " lines}' $SMBSTATUS -L 2>/dev/null | awk 'BEGIN {lines=0} $1 ~ /^[0-9]+/ {lines++} END {print "lock.value " lines}' if [ -n "$ignoreipcshare" ]; then IGNORE='$1=="IPC$" {next}' fi $SMBSTATUS -S 2>/dev/null | awk ' BEGIN {lines=0;state=0} $1=="Service"&&state==0 {state=1;next} /^--*$/&&state==1 {state=2;next} state<2 {next} /^$/ {next} '"$IGNORE"' {lines++} END {print "share.value " lines}'
/home/../usr/src/../libexec/../src/../src/../src/../src/../src/../share/munin/plugins/samba