NRPE configuration lost on reinstall
I have had this issue since 2.0 RC1, NRPEv2 config is lost during upgrade or package reinstall. The nrpe section on /conf/config.xml is reset to default on each reinstall. Installing only GUI components makes this happen too. Any help to advance on the diagnostic or solution of this problem will be welcome.
I haven't ever been able to reproduce this, but you aren't the first person to see that. No matter how I reinstall it, it stays for me.
If you do a config diff (Diagnostics > Backup/Restore, select before/after reinstall of the package), paste that here so we can see exactly what changed in the config.
Weird, I've tried this on multiple hosts and with different configurations. I have created a Virtual Machine with 2.0 amd64, made a new install, installed and configured only nrpe and I have reproduced the problem :'( Diff result on this new install is:
Configuration diff from 1/10/12 09:39:16 to 1/10/12 09:39:27
–- /conf/backup/config-1326188356.xml 2012-01-10 09:39:25.000000000 +0000
+++ /conf/config.xml 2012-01-10 09:39:27.000000000 +0000
@@ -354,8 +354,8 @@
<openvpn>@@ -384,8 +384,8 @@
- <server_address>+ <allowed_hosts>127.0.0.1</allowed_hosts>
I have tried to debug this myself but i cant find where to check the configuration part of the reinstalling a package code. Could anyone give my a tip to go on with this?
I still don't see anywhere in the code that could possibly remove the settings, and I still haven't been able to reproduce it on my own.
This is getting me crazy ???
Function nrpe2_custom_php_install_command() always resets configuration, so i think that it's normal to get default config on each reinstall.
Try the update I just committed, see if it behaves better. It should show up in 10 minutes.
Thank you very much. :D