logcache data reset every day

14 views
Skip to first unread message

Mariusz Cygan

unread,
Sep 22, 2020, 7:26:13 AM9/22/20
to Thruk
hi,

I have 4 nudios instances connected to thruk. They all use livestatus (versions 1.2.8p24 and 1.2.6p16). Lmd works on thruk (version 1.9.0 (Build:, go1.13.4)). My problem is deleting some data from the mysql database.
@thruk: ~ # thruk -a logcachestats
Backend              Index Size      Data Size       Items
N1                95.7 MB        366.4 MB      1428739
N2                   87.7 MB        332.4 MB      1189208
N3                  128.0 KB        224.0 KB         1129
N4                   112.0 KB        192.0 KB         1979

You can see which are the probleme.

I just called up logcacheclean
@thruk: ~ # date
Tue Sep 22 13:19:47 CEST 2020
@thruk: ~ # / usr / bin / thruk -a logcacheclean = 730
Do you really want to drop all data older than Tue Sep 22 13:07:00 2020?

Why should cleanup be for data older than TODAY ?!

Because the variable is SECONDS! To clean longer than x days, you have to give it
@thruk: ~ # / usr / bin / thruk -a logcacheclean = 730d
Do you really want to drop all data older than Sun Sep 23 13:21:51 2018?
Continue? [n]: ^ C

However why does he clean only two and not the other two?

Sorry for my English level.

Mariusz Cygan

unread,
Sep 22, 2020, 7:31:59 AM9/22/20
to Thruk
You have to change the howto - nowhere does it say that the logcacheclean setting is in seconds.

Sven Nierlein

unread,
Sep 22, 2020, 7:33:44 AM9/22/20
to th...@googlegroups.com
Hi,

it is days, not seconds. There has been a bug which has been fixed in the Nightlies already.

Cheers,
Sven
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com <mailto:thruk+un...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/thruk/8853b8aa-bbac-4e25-a185-0bd2fe8abd98n%40googlegroups.com <https://groups.google.com/d/msgid/thruk/8853b8aa-bbac-4e25-a185-0bd2fe8abd98n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Mariusz Cygan

unread,
Sep 22, 2020, 11:24:29 AM9/22/20
to th...@googlegroups.com
ok. I figured that out myself.  should 730d be specified then?  without it, he treats as seconds.  another thing - why only cleans two instances and not all of them

To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thruk/05cf4a30-7fd4-a8d2-c5f3-35e4c550593d%40nierlein.de.
Reply all
Reply to author
Forward
0 new messages