Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/samba/samba_users | ||
|---|---|---|
| 8 | 8 |
# autoconf (optional - used by munin-config) |
| 9 | 9 |
# |
| 10 | 10 |
# $Log$ |
| 11 |
# Revision 1.0 2007/04/16 Jon Higgs
|
|
| 12 |
# Initial Release - Adapted from jimmyo's processses plugin.
|
|
| 11 |
# Revision 1.0 2007/04/16 Jon Higgs |
|
| 12 |
# Initial Release - Adapted from jimmyo's processses plugin. |
|
| 13 | 13 |
# |
| 14 | 14 |
# Revision 1.1 2014/07/24 MangaII |
| 15 | 15 |
# Add exit 0 |
| 16 | 16 |
# WARNING : Samba 3.6 and newer block access to smbstatus for no root user |
| 17 |
# On Debian make a "chmod a+w /run/samba/sessionid.tdb"
|
|
| 17 |
# On Debian make a "chmod a+w /run/samba/sessionid.tdb" |
|
| 18 | 18 |
# smbstatus must open this file with RW option |
| 19 | 19 |
# |
| 20 | 20 |
# Magick markers (optional - used by munin-config and som installation |
| ... | ... | |
| 23 | 23 |
#%# capabilities=autoconf |
| 24 | 24 |
|
| 25 | 25 |
if [ "$1" = "autoconf" ]; then |
| 26 |
echo yes
|
|
| 26 |
echo yes |
|
| 27 | 27 |
exit 0 |
| 28 | 28 |
fi |
| 29 | 29 |
|
| ... | ... | |
| 31 | 31 |
|
| 32 | 32 |
echo 'graph_title Samba Users' |
| 33 | 33 |
echo 'graph_args --base 1000 -l 0 ' |
| 34 |
echo 'graph_vlabel number of Samba users.'
|
|
| 34 |
echo 'graph_vlabel number of Samba users.' |
|
| 35 | 35 |
echo 'graph_category fs' |
| 36 | 36 |
echo 'graph_info This graph shows the number Samba users.' |
| 37 | 37 |
echo 'samba_users.label Samba Users' |
Formats disponibles : Unified diff