<div>Hi,</div>
<div> </div>
<div>Question about the INTERVAL setting in clientlaunch.cfg:</div>
<div> </div>
<div>Per the man page (for hobbitlaunch.cfg)</div>
<div> </div>
<div>The <b>INTERVAL</b> keyword defines how often this command is executed. {...} Intervals can be specified in seconds (if you just put a number there), or in minutes (5m), hours (2h), or days (1d). </div>
<div> </div>
<div>So I was trying to get netstat -s working every second. This should be possible with the client script:</div>
<div>
<p>#!/bin/sh<br> netstat -s > /tmp/hiflow_net.txt<br> $BB $BBDISP "status $MACHINE.HiFlowNet green `date`<br> `cat /tmp/hiflow_net.txt`<br> "</p>
<p> exit 0<br><br>Measuring the time it takes for this to complete:<br> <br># time hiflow_net<br><br> real 0m0.04s<br>user 0m0.00s<br>sys 0m0.01s<br><br>Running every second is workable.</p>
<p>Following the man page, I did the following with my clientlaunch.cfg:<br></p>
<p>[client]<br> ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg<br> CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh<br> LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log<br> INTERVAL 5m</p>
<p>[hiflow_net]<br> ENVFILE /usr/local/hobbit/client/etc/hobbitclient.cfg<br> CMD /usr/local/hobbit/client/ext/hiflow_net<br> LOGFILE=/tmp/hilog<br> INTERVAL 1<br></p>
<p>The data does arrive at the hobbit server, however, not every second. I get a weird behavior from hobbit. <br>I did a:<br><br>while true; do<br>ps -ef | grep netstat | grep -v grep<br>done<br><br>And this is what I see:
<br><br>hobbit 70112 24322 0 23:30:53 - 0:00 [netstat]<br> hobbit 57350 15788 1 23:31:03 - 0:00 netstat -s<br> hobbit 28558 63650 0 23:31:08 - 0:00 [netstat]<br> hobbit 14486 23038 0 23:31:18 - 0:00 [netstat]
<br> hobbit 16646 60686 0 23:31:33 - 0:00 netstat -s<br> hobbit 28568 64464 0 23:31:43 - 0:00 [netstat]<br> hobbit 20928 63544 1 23:31:53 - 0:00 netstat -s<br> hobbit 53638 58900 0 23:31:58 - 0:00 [netstat]
<br> hobbit 64280 14410 0 23:32:03 - 0:00 netstat -s<br><br>Any thoughts (Besides the running debate on the need for 1 second vs 5 minute periods)?<br><br>-Jeff<br></p></div>