[Check_mk (english)] CRE1.2.6p10 --site rename issue

Hi guys.

Site: banlan

I did a:

omd stop

omd mv banlan prod

omd start prod

Everything OK.

Now, /omd/sites/prod/var/log/rrdcached.log

I have thousands of errors like:
handle_request_update: stat (/opt/omd/sites/banlan/var/pnp4nagios/perfdata/ServerX/Interface_19_in.rrd) failed

It mentions the prior site name.

Can you tell me how to fix that?

Thanks!

Hi guys.

I found that the CORRECT METHOD (the one that works) is to do
the following:

omd stop

omd cp banlan
prod

omd rm banlan

omd start prod

Can you
confirm?

But i
cannot do that right now. It’s to late. I need a fix for my current situation!!

Any ideas?

Thanks!

···

---------- Forwarded message ----------
From: Gerardo Ferreyra raptorg83@gmail.com
Date: 2017-08-15 18:28 GMT-03:00
Subject: CRE1.2.6p10 --site rename issue
To: “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de

Hi guys.

Site: banlan

I did a:

omd stop

omd mv banlan prod

omd start prod

Everything OK.

Now, /omd/sites/prod/var/log/rrdcached.log

I have thousands of errors like:
handle_request_update: stat (/opt/omd/sites/banlan/var/pnp4nagios/perfdata/ServerX/Interface_19_in.rrd) failed

It mentions the prior site name.

Can you tell me how to fix that?

Thanks!

The reason for the rrdcachelog errors is the cache file from rrdcached. After moving and starting the site rrdcached tries to replay the log files and produces the errors. If I move a site I remove this cache files or flush the rrdcached before I move the site.

Now you can only ignore this errors.

br
Andreas

···

On Di., 15. Aug. 2017, 23:56 Gerardo Ferreyra raptorg83@gmail.com wrote:

Hi guys.

I found that the CORRECT METHOD (the one that works) is to do
the following:

omd stop

omd cp banlan
prod

omd rm banlan

omd start prod

Can you
confirm?

But i
cannot do that right now. It’s to late. I need a fix for my current situation!!

Any ideas?

Thanks!

---------- Forwarded message ----------
From: Gerardo Ferreyra raptorg83@gmail.com
Date: 2017-08-15 18:28 GMT-03:00
Subject: CRE1.2.6p10 --site rename issue
To: “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de

Hi guys.

Site: banlan

I did a:

omd stop

omd mv banlan prod

omd start prod

Everything OK.

Now, /omd/sites/prod/var/log/rrdcached.log

I have thousands of errors like:
handle_request_update: stat (/opt/omd/sites/banlan/var/pnp4nagios/perfdata/ServerX/Interface_19_in.rrd) failed

It mentions the prior site name.

Can you tell me how to fix that?

Thanks!


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Andreas, 2 things:

Suppose i need to move a host to another site:

  • It is totally safe to move ~/var/pnp4nagios/perfdata/HOST/* to a new site, in order to keep OLD performance data? I guess im doing something wrong, because perfdata stops working. I don’t see old and new. Just for that host.

You are telling me i should remove cache files or/and flush rrdcached.

By cache files, you mean to delete ~/tmp/check_mk/cache/HOST ?
Then, what you mean by flush rrdcached? How?

Thanks!

···

2017-08-16 3:14 GMT-03:00 Andreas Döhler andreas.doehler@gmail.com:

The reason for the rrdcachelog errors is the cache file from rrdcached. After moving and starting the site rrdcached tries to replay the log files and produces the errors. If I move a site I remove this cache files or flush the rrdcached before I move the site.

Now you can only ignore this errors.

br
Andreas

On Di., 15. Aug. 2017, 23:56 Gerardo Ferreyra raptorg83@gmail.com wrote:

Hi guys.

I found that the CORRECT METHOD (the one that works) is to do
the following:

omd stop

omd cp banlan
prod

omd rm banlan

omd start prod

Can you
confirm?

But i
cannot do that right now. It’s to late. I need a fix for my current situation!!

Any ideas?

Thanks!

---------- Forwarded message ----------
From: Gerardo Ferreyra raptorg83@gmail.com
Date: 2017-08-15 18:28 GMT-03:00
Subject: CRE1.2.6p10 --site rename issue
To: “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de

Hi guys.

Site: banlan

I did a:

omd stop

omd mv banlan prod

omd start prod

Everything OK.

Now, /omd/sites/prod/var/log/rrdcached.log

I have thousands of errors like:
handle_request_update: stat (/opt/omd/sites/banlan/var/pnp4nagios/perfdata/ServerX/Interface_19_in.rrd) failed

It mentions the prior site name.

Can you tell me how to fix that?

Thanks!


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en