15 lines
381 B
Bash
Executable file
15 lines
381 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "$1" = "config" ]; then
|
|
|
|
echo 'host_name web'
|
|
echo 'graph_category wiki'
|
|
echo 'graph_title Nombres de pages'
|
|
echo 'graph_args --base 1000 --lower-limit 0'
|
|
echo 'graph_vlabel nombre de pages'
|
|
echo 'total.label Total'
|
|
echo 'total.draw AREA'
|
|
exit 0
|
|
fi
|
|
|
|
echo "total.value" `find /var/local/wiki/data/pages/ -name current -mindepth 2 -maxdepth 2 | wc -l`
|