<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>There is no bischeck command to delete the collected timeseries,
but it can be done using normal redis-cli command. Each
host-service-service-serviceitem metrics is stored in a redis
list. <br>
</p>
<p>So lets do an example. I have a bischeck configuration with
host->prodapi3, service->getparcelsregistration and a
serviceitem->count</p>
<p>$ redis-cli <br>
</p>
<p>127.0.0.1:6379> keys prodapi3-getparcelsregistration*<br>
1) "prodapi3-getparcelsregistration/W/max/weekend-count"<br>
2) "prodapi3-getparcelsregistration/M/max/weekend-count"<br>
3) "prodapi3-getparcelsregistration-count"<br>
4) "prodapi3-getparcelsregistration/D/max/weekend-count"<br>
5) "prodapi3-getparcelsregistration/H/max/weekend-count"<br>
</p>
<p><br>
</p>
<p>Above you see the metrics list for the collected metrics,
prodapi3-getparcelsregistration-count, and the additional lists if
you have configured aggregations.<br>
</p>
<p><br>
</p>
<p>To get the size of the list<br>
</p>
<p>127.0.0.1:6379> llen prodapi3-getparcelsregistration-count<br>
1000<br>
</p>
<p><br>
</p>
<p>You should now be able to delete the whole list just by doing:<br>
</p>
<p>127.0.0.1:6379> del prodapi3-getparcelsregistration-count<br>
(integer) 1</p>
<p><br>
</p>
<p>You may also like to remove the aggregations, depending on what
you like to achieve.<br>
</p>
<p><br>
</p>
<p>Next time bischeck need to insert into the list it will be
created<br>
</p>
<p><br>
</p>
<p>If you do not want to delete all data in the list you can check
out the ltrim command.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Before you do this MAKE a redis backup and test it on the backup
snapshot with bischeck on a different server.<br>
</p>
<p><br>
</p>
<p>DISCLAIMER - I take no responsibility if the above actions
destroy your data or functionality!!! <br>
</p>
<p><br>
</p>
<p>Hope this helps.<br>
</p>
<p><br>
</p>
<p><br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
</p>
<br>
<div class="moz-cite-prefix">On 03/02/2017 03:02 PM, Marco Scano
wrote:<br>
</div>
<blockquote
cite="mid:VI1PR02MB11518F16AAE019A93E33C0059F280@VI1PR02MB1151.eurprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi Anders,</p>
<p><br>
</p>
<p>Thank you for your reply.</p>
<p>Yes, I confirm that I need to delete the threshold cache of
one metric (out_traffic) of specific service (VlanXXX). <br>
</p>
<p>I am sending the graph to the provided account.</p>
<p><br>
</p>
<p>Marco<br>
</p>
<p><br>
</p>
<div id="Signature">--<br>
<br>
Marco Scano<br>
Skype: marco.scano83<br>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>Da:</b>
Bischeck-users
<a class="moz-txt-link-rfc2396E" href="mailto:bischeck-users-bounces+marco.scano=hotmail.it@monitoring-lists.org"><bischeck-users-bounces+marco.scano=hotmail.it@monitoring-lists.org></a>
per conto di Anders Håål <a class="moz-txt-link-rfc2396E" href="mailto:anders.haal@ingby.com"><anders.haal@ingby.com></a><br>
<b>Inviato:</b> giovedì 2 marzo 2017 12.26<br>
<b>A:</b> <a class="moz-txt-link-abbreviated" href="mailto:bischeck-users@monitoring-lists.org">bischeck-users@monitoring-lists.org</a><br>
<b>Oggetto:</b> Re: [ Bischeck 1.1.2 ] - Threshold cache
emptying</font>
<div> </div>
</div>
<div>
<p><br>
</p>
Hi Marco,<br>
When you say the threshold cache is it the data for some
metrics you have collected that you like to delete?<br>
//Anders <br>
PS - the graph did not get through on the list. You can send
it to <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:bischeck@ingby.com">
bischeck@ingby.com</a><br>
<br>
<div class="moz-cite-prefix">On 03/02/2017 01:21 PM, Marco
Scano wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr"
style="font-size:12pt; color:#000000;
font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Hi,<br>
<br>
I have a quick question.<br>
Is it possible to reset the threshold cache of a
specific service belonging to a specific template with
a specific command?<br>
This is useful when we monitor a service interface
that is not used for all most of the time, but which
is activated only for short time occurrences as for
similar graph below</div>
<p><br>
</p>
<p><img naturalheight="201" naturalwidth="597" size="0"
id="img615729" tabindex="0" style="max-width: 99.9%;
-moz-user-select: none;" aria-expanded="false"
src="cid:part2.3D6E350C.A2CA11FC@ingby.com"></p>
<p><br>
</p>
<p>Thanks,</p>
<p>Marco<br>
</p>
<p><br>
</p>
<div id="Signature">--<br>
<br>
Marco Scano<br>
Skype: marco.scano83<br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ingby <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://www.ingby.com"><http://www.ingby.com></a>
bischeck - dynamic and adaptive monitoring for Nagios <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://www.bischeck.org"><http://www.bischeck.org></a>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:anders.haal@ingby.com">anders.haal@ingby.com</a><a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:anders.haal@ingby.com"><mailto:anders.haal@ingby.com></a>
Mjukvara genom ingenjörsmässig kreativitet och kompetens
Ingenjörsbyn
Box 531
101 30 Stockholm
Sweden
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.ingby.com">www.ingby.com</a> <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://www.ingby.com/"><http://www.ingby.com/></a>
Mobil: +46 70 575 35 46
Tele: +46 75 75 75 090
Fax: +46 75 75 75 091
</pre>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ingby <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com"><http://www.ingby.com></a>
bischeck - dynamic and adaptive monitoring for Nagios <a class="moz-txt-link-rfc2396E" href="http://www.bischeck.org"><http://www.bischeck.org></a>
<a class="moz-txt-link-abbreviated" href="mailto:anders.haal@ingby.com">anders.haal@ingby.com</a><a class="moz-txt-link-rfc2396E" href="mailto:anders.haal@ingby.com"><mailto:anders.haal@ingby.com></a>
Mjukvara genom ingenjörsmässig kreativitet och kompetens
Ingenjörsbyn
Box 531
101 30 Stockholm
Sweden
<a class="moz-txt-link-abbreviated" href="http://www.ingby.com">www.ingby.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.ingby.com/"><http://www.ingby.com/></a>
Mobil: +46 70 575 35 46
Tele: +46 75 75 75 090
Fax: +46 75 75 75 091
</pre>
</body>
</html>