xi-sys.cfg missing?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CineplexDigital
Posts: 2
Joined: Tue Apr 21, 2015 9:56 am

xi-sys.cfg missing?

Post by CineplexDigital »

Afternoon,

Not sure how this happened as I'm still doing a postmortem, but apparently I'm missing xi-sys.cfg, which is breaking A LOT of functionality.

Code: Select all

[root@cdsw-nagiosxi01 scripts]# find / -iname xi-sys.cfg -print
/usr/local/nagiosxi/tmp/nagiosxi/nagiosxi/basedir/var/xi-sys.cfg
/usr/local/nagiosxi/tmp/nagiosxi/xi-sys.cfg
Nagios XI 5.2.0 on CentOS (VM Appliance)

Code: Select all

[root@cdsw-nagiosxi01 ~]# uname -a
Linux cdsw-nagiosxi01 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I'm unable to update configurations, run backup scripts, update, etc.

Attempting a Configuration Update displays the following:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log

...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
/usr/local/nagiosxi/scripts/reset_config_perms.sh: line 6: /usr/local/nagiosxi/scripts/../var/xi-sys.cfg: No such file or directory
RESETTING CONFIG PERMS FAILED!\n
OUTPUT=RESETTING CONFIG PERMS FAILED!\n
RETURNCODE=4
Attempting backup_xi.sh

Code: Select all

[root@cdsw-nagiosxi01 scripts]# ./backup_xi.sh 
./backup_xi.sh: line 9: /usr/local/nagiosxi/scripts/../var/xi-sys.cfg: No such file or directory
I have a xi-sys.cfg in nagiosxi/tmp - Can I use that to replace the one that has been lost? If so, what modifications should be made to it, if any, if I haven't changed the default MySQL passwords?

There are no other administrators for this VM. I'm unsure of what would've caused xi-sys.cfg to be removed. Are there any circumstances in which a failed update would cause it to be removed?

Thanks in advance.

Jack
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: xi-sys.cfg missing?

Post by lmiltchev »

I have a xi-sys.cfg in nagiosxi/tmp - Can I use that to replace the one that has been lost? If so, what modifications should be made to it, if any, if I haven't changed the default MySQL passwords?
Yes, you can copy the file over to the "/usr/local/nagiosxi/var/" directory. Make sure that you change permissions to nagios:nagios, 644. Let us know if this fixed your issue. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
CineplexDigital
Posts: 2
Joined: Tue Apr 21, 2015 9:56 am

Re: xi-sys.cfg missing?

Post by CineplexDigital »

Thanks,

It appears that it's fixed. The first configuration update took forever, but it went through without issue. I Appreciate your help!

Jack
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: xi-sys.cfg missing?

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked