root/trunk/tool/check.sh @ 31

Revision 31, 0.8 KB (checked in by andreu, 16 years ago)

now, only subnets rrd files from routers who are seeing will be created - new scripts in tool

  • Property svn:eol-style set to native
Line 
1#!/bin/sh
2
3num=`ps ax |grep -i "renetcol" | grep -v grep | grep -v defunct |wc -l`
4
5if [ 4 -gt $num ]
6then 
7  killall renetcolSender
8  sleep 1
9  killall renetcolAgg
10  sleep 1
11  /home/maintenance/renetcol-0.0.8/src/renetcolMsgCtl /home/maintenance/renetcol-0.0.8/src/renetcol
12  echo "renetcolMsgCtl started"
13  sleep 5
14  /home/maintenance/renetcol-0.0.8/src/renetcol /home/maintenance/renetcol-0.0.8/src/info_routeur_netflow.txt /home/maintenance/renetcol-0.0.8/src/donneesblocsadresses2 /home/maintenance/renetcol-0.0.8/src/rules.txt
15  echo "renetcol restarted"
16  /home/maintenance/renetcol-0.0.8/src/renetcolSender /home/maintenance/renetcol-0.0.8/src/renetcol 1 /home/maintenance/renetcol-0.0.8/src/rules.txt
17  echo "renetcolSender restarted"
18  /home/maintenance/renetcol-0.0.8/src/renetcolAgg
19else
20  echo "All is up"
21fi
Note: See TracBrowser for help on using the browser.