pandorafms/pandora_server/util/pandora_count.sh
slerena 3431910977 2010-08-04 Sancho Lerena <slerena@artica.es>
* pandora_server.redhat.spec: Specific spec for redhat/centos.

        * util/pandora_count.sh: Script to measure how fast dataserver
        process XML files.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3094 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-08-04 15:01:09 +00:00

20 lines
355 B
Bash
Executable File

#!/bin/bash
echo "Small tool to measure data processing throughput for a Pandora FMS data server"
echo "(c) 2010 Sancho Lerena, slerena@gmail.com"
ANT=0
while [ 1 ]
do
ACT=`find /var/spool/pandora/data_in | wc -l`
if [ $ANT != 0 ]
then
RES=`expr $ANT - $ACT`
RES2=`expr $RES / 10`
echo $RES2 xmlfiles per second
fi
ANT=$ACT
sleep 10
done