2008-03-17 14:35:33 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# bodik@civ.zcu.cz
|
|
|
|
# aragorn@civ.zcu.cz
|
|
|
|
# * 03/2008 - init
|
|
|
|
# * 03/2008 - stripped total users, because of graph scaling
|
|
|
|
|
|
|
|
SITEANALYZERLOG="/opt/WebSphere/SiteAnalyzer/sa.log"
|
|
|
|
|
|
|
|
if [ "$1" = "config" ]; then
|
|
|
|
echo 'graph_title WebSphere Portal online users'
|
2017-02-23 02:46:23 +01:00
|
|
|
echo 'graph_category appserver'
|
2008-03-17 14:35:33 +01:00
|
|
|
# echo 'graph_order total actual'
|
|
|
|
echo 'graph_order actual'
|
|
|
|
echo 'graph_vlabel Users'
|
|
|
|
echo 'graph_scale no'
|
|
|
|
# echo 'total.label Total logged'
|
|
|
|
# echo 'total.draw LINE2'
|
|
|
|
# echo 'total.colour DDDDDD'
|
|
|
|
echo 'actual.label Logged in'
|
|
|
|
echo 'actual.draw LINE2'
|
|
|
|
echo 'actual.colour FF0000'
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
total=`grep '/Command/Login HTTP' $SITEANALYZERLOG | wc -l`
|
|
|
|
foobar=`grep Logout $SITEANALYZERLOG | wc -l`
|
|
|
|
actual=$((total-foobar))
|
|
|
|
|
|
|
|
#echo "total.value ${total}"
|
|
|
|
echo "actual.value $actual"
|