Great! Thanks for the explanation. The math now makes perfect sense.<br><br>If I could trouble you for one more thing. Is there a service script for this release? I've found a couple, but they don't do it well.<br>
<br>This one starts and stops, but the 'status' doesn't work and the restart/reload do the same thing.<br><br><pre class="bash" style="font-family:monospace"><span style="color:#666666;font-style:italic">#!/bin/bash</span>
<span style="color:#666666;font-style:italic">#</span>
<span style="color:#666666;font-style:italic"># chkconfig: 2345 80 05</span>
<span style="color:#666666;font-style:italic"># Description: Smokeping init.d script</span>
<span style="color:#666666;font-style:italic"># Hacked by : How2CentOS - <a href="http://www.how2centos.com">http://www.how2centos.com</a></span>
<span style="color:#666666;font-style:italic"># Get function from functions library</span>
. <span style="color:#000000;font-weight:bold">/</span>etc<span style="color:#000000;font-weight:bold">/</span>init.d<span style="color:#000000;font-weight:bold">/</span>functions
<span style="color:#666666;font-style:italic"># Start the service Smokeping</span>
start<span style="color:#7a0874;font-weight:bold">(</span><span style="color:#7a0874;font-weight:bold">)</span> <span style="color:#7a0874;font-weight:bold">{</span>
<span style="color:#7a0874;font-weight:bold">echo</span> <span style="color:#660033">-n</span> <span style="color:#ff0000">"Starting Smokeping: "</span>
<span style="color:#000000;font-weight:bold">/</span>opt<span style="color:#000000;font-weight:bold">/</span>smokeping<span style="color:#000000;font-weight:bold">/</span>bin<span style="color:#000000;font-weight:bold">/</span>smokeping <span style="color:#000000;font-weight:bold">>/</span>dev<span style="color:#000000;font-weight:bold">/</span>null <span style="color:#000000">2</span><span style="color:#000000;font-weight:bold">>&</span><span style="color:#000000">1</span>
<span style="color:#666666;font-style:italic">### Create the lock file ###</span>
<span style="color:#c20cb9;font-weight:bold">touch</span> <span style="color:#000000;font-weight:bold">/</span>var<span style="color:#000000;font-weight:bold">/</span>lock<span style="color:#000000;font-weight:bold">/</span>subsys<span style="color:#000000;font-weight:bold">/</span>smokeping
success $<span style="color:#ff0000">"Smokeping startup"</span>
<span style="color:#7a0874;font-weight:bold">echo</span>
<span style="color:#7a0874;font-weight:bold">}</span>
<span style="color:#666666;font-style:italic"># Restart the service Smokeping</span>
stop<span style="color:#7a0874;font-weight:bold">(</span><span style="color:#7a0874;font-weight:bold">)</span> <span style="color:#7a0874;font-weight:bold">{</span>
<span style="color:#7a0874;font-weight:bold">echo</span> <span style="color:#660033">-n</span> <span style="color:#ff0000">"Stopping Smokeping: "</span>
<span style="color:#c20cb9;font-weight:bold">kill</span> <span style="color:#660033">-9</span> <span style="color:#000000;font-weight:bold">`</span><span style="color:#c20cb9;font-weight:bold">ps</span> ax <span style="color:#000000;font-weight:bold">|</span> <span style="color:#c20cb9;font-weight:bold">grep</span> <span style="color:#ff0000">"/opt/smokeping/bin/smokeping"</span> <span style="color:#000000;font-weight:bold">|</span> <span style="color:#c20cb9;font-weight:bold">grep</span> <span style="color:#660033">-v</span> <span style="color:#c20cb9;font-weight:bold">grep</span> <span style="color:#000000;font-weight:bold">|</span> <span style="color:#c20cb9;font-weight:bold">awk</span> <span style="color:#ff0000">'{ print $1 }'</span><span style="color:#000000;font-weight:bold">`</span> <span style="color:#000000;font-weight:bold">>/</span>dev<span style="color:#000000;font-weight:bold">/</span>null <span style="color:#000000">2</span><span style="color:#000000;font-weight:bold">>&</span><span style="color:#000000">1</span> <span style="color:#000000;font-weight:bold">&&</span> <span style="color:#c20cb9;font-weight:bold">killall</span> speedy_backend
<span style="color:#666666;font-style:italic">### Now, delete the lock file ###</span>
<span style="color:#c20cb9;font-weight:bold">rm</span> <span style="color:#660033">-f</span> <span style="color:#000000;font-weight:bold">/</span>var<span style="color:#000000;font-weight:bold">/</span>lock<span style="color:#000000;font-weight:bold">/</span>subsys<span style="color:#000000;font-weight:bold">/</span>smokeping
success $<span style="color:#ff0000">"Smokeping shutdown"</span>
<span style="color:#7a0874;font-weight:bold">echo</span>
<span style="color:#7a0874;font-weight:bold">}</span>
<span style="color:#666666;font-style:italic">### main logic ###</span>
<span style="color:#000000;font-weight:bold">case</span> <span style="color:#ff0000">"$1"</span> <span style="color:#000000;font-weight:bold">in</span>
start<span style="color:#7a0874;font-weight:bold">)</span>
start
<span style="color:#000000;font-weight:bold">;;</span>
stop<span style="color:#7a0874;font-weight:bold">)</span>
stop
<span style="color:#000000;font-weight:bold">;;</span>
status<span style="color:#7a0874;font-weight:bold">)</span>
status Smokeping
<span style="color:#000000;font-weight:bold">;;</span>
restart<span style="color:#000000;font-weight:bold">|</span>reload<span style="color:#000000;font-weight:bold">|</span>condrestart<span style="color:#7a0874;font-weight:bold">)</span>
stop
start
<span style="color:#000000;font-weight:bold">;;</span>
<span style="color:#000000;font-weight:bold">*</span><span style="color:#7a0874;font-weight:bold">)</span>
<span style="color:#7a0874;font-weight:bold">echo</span> $<span style="color:#ff0000">"Usage: $0 {start|stop|restart|reload|status}"</span>
<span style="color:#7a0874;font-weight:bold">exit</span> <span style="color:#000000">1</span>
<span style="color:#000000;font-weight:bold">esac</span>
<span style="color:#7a0874;font-weight:bold">exit</span> <span style="color:#000000">0<br><br>Is there a start/stop script that comes with the smokeping package that works with CentOS 6.2?<br><br>Thanks! <br><br> -- Matt<br>
<br></span></pre><br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 11:20 PM, Gregory Sloop <span dir="ltr"><<a href="mailto:gregs@sloop.net">gregs@sloop.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<span style="font-family:'Courier New';font-size:9pt">I'm using the database section below as my starting point. Lets reproduce it here:<br>
---<div class="im"><br>
*** Database ***<br>
step = 30<br>
pings = 10<br>
<br>
# consfn mrhb steps total<br>
AVERAGE 0.5 1 1008<br>
AVERAGE 0.5 12 4320<br>
MIN 0.5 12 4320<br>
MAX 0.5 12 4320<br>
AVERAGE 0.5 144 720<br>
MAX 0.5 144 720<br>
MIN 0.5 144 720<br>
<br></div>
---<br>
So line 1: The "Total" line should be how many full resolution samples you want to keep.<br>
[i.e. 2880 is 24 hours of full res data (2/min * 60mins * 24 hours)] <br>
1008 would be 504 minutes of data, or just over 8 hours. [1008 samples, divided by 2 (samples per minute) divided by 60 = 8.4 hours]<br>
<br>
The next three lines are the second tier data. These will have x number of steps (or average/min/max) compressed to one. So, if you leave the "steps" to 12, it would then be a 6 minute average [30 secs per sample, 12:1 ratio = 1 sample every 6 minutes.] (6 minute data)<br>
<br>
To keep six months of six minute data: total col = 43200 [10 samples per hour * 24 hours * 30 days * 6 months = 43200]<br>
<br>
The last three are even lower res data. It will compress 144 full res steps into 1. [i.e. 72 minute data. You can keep as much as you'd like here, just keep as many minutes as you want history. 10000 in the total column would be 720000 minutes or 500 days worth.]<br>
<br>
(But you don't have to use 144 as the step value - perhaps you want your third tier data to be hour data, choose accordingly.)<br>
<br>
HTH<br>
<br>
-Greg<br>
<br>
</span><div><div class="h5"><table>
<tbody><tr>
<td width="12" bgcolor="#0000ff"><br>
</td>
<td width="1012"><span style="font-family:'courier new';font-size:9pt">More info...<br>
<br>
Based on earlier calculations, I come up with <br>
<br>
86400 (sec/day) X 180 days / 30 (step value) = 518400, but I'm not sure where to plug in this value.<br>
<br>
As for # of targets, right now it's around 50 in each location, so I'm not too worried about space at the moment.<br>
<br>
Thanks!<br>
<br>
-- Matt<br>
<br>
<br>
On Mon, Apr 9, 2012 at 9:37 PM, Matt Almgren <</span><a style="font-family:'courier new';font-size:9pt" href="mailto:almgren@gmail.com" target="_blank">almgren@gmail.com</a><span style="font-family:'courier new';font-size:9pt">> wrote:<br>
Hey guys, finally getting around to poking around with this...<br>
<br>
Here's my database section:<br>
<br>
*** Database ***<br>
<br>
step = 30<br>
pings = 10<br>
<br>
# consfn mrhb steps total<br>
<br>
AVERAGE 0.5 1 1008<br>
AVERAGE 0.5 12 4320<br>
MIN 0.5 12 4320<br>
MAX 0.5 12 4320<br>
AVERAGE 0.5 144 720<br>
MAX 0.5 144 720<br>
MIN 0.5 144 720<br>
<br>
<br>
I'm not too interested in seeing more than the default value of detailed information. What I am interested in is seeing up to 6 months of non-detailed data just to get trending information. Still a bit confused on the above values. Care to give me some numbers to punch in to a) keep the default detailed samples, but b) keep up to 6 months (non-detailed) archival data?<br>
<br>
Thanks!<br>
<br>
<span style="color:#888888"> -- Matt<br>
<br>
<br>
<br>
<span style="color:#000000">On Mon, Mar 5, 2012 at 8:57 AM, Gregory Sloop <</span></span></span><a style="font-family:'courier new';font-size:9pt" href="mailto:gregs@sloop.net" target="_blank">gregs@sloop.net</a><span style="font-family:'courier new';font-size:9pt">> wrote:<br>
GS> These aren't files - it's more that if you have hundreds or thousands<br>
GS> of devices you're sampling, there's a lot of them.<br>
<br>
Sorry Peter, I accidentally replied direct to you, as well as the<br>
list...<br>
<br>
Also, a typo above.<br>
<br>
These aren't *huge* files - it's more that if you have hundreds or thousands<br>
of devices you're sampling, there's a lot of them.<br>
<br>
And I'll clarify about I/O - with that much disk activity, - writing<br>
to thousands of files very often, your disk may not keep up. But you<br>
would have enough space to store everything, if it could...<br>
<br>
HTH<br>
<br>
-Greg<br>
<br>
<br>
_______________________________________________<br>
smokeping-users mailing list<br>
</span><a style="font-family:'courier new';font-size:9pt" href="mailto:smokeping-users@lists.oetiker.ch" target="_blank">smokeping-users@lists.oetiker.ch</a><br>
<a style="font-family:'courier new';font-size:9pt" href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a></td>
</tr>
</tbody></table>
<br><br>
</div></div><div class="im"><span style="font-family:'arial';color:#c0c0c0"><i>-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: <a href="tel:503.251.0452%20x82" value="+15032510452" target="_blank">503.251.0452 x82</a><br>
EMail: </i></span><a style="font-family:'arial'" href="mailto:gregs@sloop.net" target="_blank">gregs@sloop.net</a><br>
<a style="font-family:'arial'" href="http://www.sloop.net" target="_blank">http://www.sloop.net</a><br>
<span style="font-family:'arial';color:#c0c0c0"><i>---</i></span></div></div>
</blockquote></div><br>