mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #505 from OOPmaster/patch-1
exit 0 and some notices ...
This commit is contained in:
commit
120d1521b9
@ -11,6 +11,12 @@
|
|||||||
# 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.
|
||||||
#
|
#
|
||||||
|
# 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 som installation
|
# Magick markers (optional - used by munin-config and som installation
|
||||||
# scripts):
|
# scripts):
|
||||||
#%# family=auto
|
#%# family=auto
|
||||||
@ -36,3 +42,5 @@ fi
|
|||||||
|
|
||||||
echo -n "samba_users.value "
|
echo -n "samba_users.value "
|
||||||
smbstatus -b 2> /dev/null | grep -c -v -e "^Samba" -e "^---" -e "^PID" -e ^$
|
smbstatus -b 2> /dev/null | grep -c -v -e "^Samba" -e "^---" -e "^PID" -e ^$
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user