Skip to main content

Hello,

We have a centreon 22.10.04 on Debian 11, we have an error when using the “Export Configuration” button.

 

I found another issue for this feature, but we do not have the same error.

 

 

The error we have:

There was an consistency error in the exported files - please use the legacy export menu to troubleshoot. Generation error on monitoring server #1: Response empty
 
In the log I did not get many usefull informations:
r16-Jan-2023 10:28:41 Europe/Paris] CRITICAL: There was an consistency error in the exported files  - please use the legacy export menu to troubleshoot. Generation error on monitoring server #1: Response empty {"context":"oobject] (Centreon\\Domain\\MonitoringServer\\Exception\\MonitoringServerException(code: 0): There was an consistency error in the exported files  - please use the legacy export menu to troubleshoot. Generation error on monitoring server #1: Response empty at /usr/share/centreon/src/Centreon/Application/Controller/Configuration/MonitoringServerController.php:230)"}

Does somebody have an idea?

Hello @delaf,

 

You need to place your pem or crt file in /usr/local/share/ca-certificates/ and then launch the update-ca-certificates command. 

 

Regards,

itoussies.


It does not work, but it put me on the right track to solve it.

In my setup I have a HAProxy in front of centreon that is doing SSL termination. Centron though it was access via HTTP so was doing request in HTTP ending to some 301 Redirect from HAProxy.

Adding mod_rpaf (and configuring it) in the centreon node solved this problem.

 

Thank you.


I have the same problem and I couldn’t find any solution.

 


Hi.

I had the same issu , and I finaly found what’s wrong for me.

When the menu, ask to use the “legacy mode” , it’s mean using the top button.

And then export:

 

You will get a full and precise message.

.


It does not work, but it put me on the right track to solve it.

In my setup I have a HAProxy in front of centreon that is doing SSL termination. Centron though it was access via HTTP so was doing request in HTTP ending to some 301 Redirect from HAProxy.

Adding mod_rpaf (and configuring it) in the centreon node solved this problem.

 

Thank you.

Hi!
Can you explain how you did it? I also have a HAProxy but I am not able to make it work.

My HAProxy conf is:

# Automaticaly generated, dont edit manually.
# Generated on: 2024-06-25 17:26
global
maxconn 1000
log /var/run/log local0 debug
stats socket /tmp/haproxy.socket level admin expose-fd listeners
uid 80
gid 80
nbthread 1
hard-stop-after 15m
chroot /tmp/haproxy_chroot
daemon
server-state-file /tmp/haproxy_server_state

listen HAProxyLocalStats
bind 127.0.0.1:2200 name localstats
mode http
stats enable
stats admin if TRUE
stats show-legends
stats uri /haproxy/haproxy_stats.php?haproxystats=1
timeout client 5000
timeout connect 5000
timeout server 5000

frontend default-merged
bind 0.0.0.0:443 name 0.0.0.0:443 ssl crt-list /var/etc/haproxy/default.crt_list
mode http
log global
option http-keep-alive
option forwardfor

timeout client 600000

acl centreon var(txn.txnhost) -m str -i centreon.xxxxx.xx

use_backend centreon_ipvANY if centreon

backend centreon_ipvANY
mode http
id 149
log global
stick-table type ip size 50k expire 30m
stick on src
timeout connect 30000
timeout server 30000
retries 3

load-server-state-from-file global

http-request set-header X-Forwarded-Proto %%dst_port]
http-request set-header X-Forwarded-For %%src]
http-request set-header X-Forwarded-Host %%req.hdr(host)]
http-request set-header X-Real-IP %%src]
http-request set-header X-Client-IP %%src]

server centreon xxxxxx:80 id 105 check inter 1000

This is my rpaf.conf file:

<IfModule mod_rpaf.c>

RPAFenable On
RPAFsethostname On
RPAFsethttps On
RPAFproxy_ips 192.168.X.X 192.168.X.XX 127.0.0.1 #ProxyIP #CentreonServerIP
RPAFheader X-Forwarded-For

</IfModule>

What is wrong in my setup?
 


Reply