mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-28 20:39:18 +02:00
* 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
20 lines
355 B
Bash
Executable File
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
|
|
|