mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
Category Tree: Reduce number of categories
power5 -> cpu directories for different ftp servers
This commit is contained in:
parent
68bb709de6
commit
c3e309c6a5
15 changed files with 9 additions and 9 deletions
|
@ -1,46 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
#
|
||||
# Script to show pureftp counts.
|
||||
# Logs are searched in /var/log/pure-ftpd/transfer.log by default.
|
||||
# Logs must be in w3c format:
|
||||
# pure-ftpd --altlog w3c:/var/log/pure-ftpd/transfer.log
|
||||
#
|
||||
# Parameters understood:
|
||||
#
|
||||
# config (required)
|
||||
# autoconf (optional - used by munin-config)
|
||||
#
|
||||
#
|
||||
# Magic markers (optional - used by munin-config and installation
|
||||
# scripts):
|
||||
#
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
|
||||
MAXLABEL=20
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
||||
echo 'graph_title FTP Server'
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel Daily FTP Operations'
|
||||
echo 'graph_category FTP'
|
||||
echo 'graph_period second'
|
||||
echo 'ftp_put.type GAUGE'
|
||||
echo 'ftp_get.type GAUGE'
|
||||
echo 'ftp_put.label Files PUT'
|
||||
echo 'ftp_get.label Files GET'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo -en "ftp_put.value "
|
||||
echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:space:]]\\[\\]created[[:space:]] | wc -l)
|
||||
echo -n
|
||||
echo -en "ftp_get.value "
|
||||
echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:space:]]\\[\\]sent[[:space:]] | wc -l)
|
Loading…
Add table
Add a link
Reference in a new issue