Page 2 of 2

Re: xi 5.4.12 event log disappeared

Posted: Mon May 06, 2019 2:34 pm
by benhank
good news the repair worked, after I correctly moved the file.

Here's a few questions:
How do I export that table from my secondary nagios server and import it into my primary, as it will have the data that's missing.
The second question is is it possible to force centos to limit the number of processes nagios runs which will eliminate problems that can only be solved by running the killa-9 nagios command?

Re: xi 5.4.12 event log disappeared

Posted: Mon May 06, 2019 3:21 pm
by npolovenko
@benhank, In theory, you could drop the nagios_logentries table, recreate it, dump the same table from the server #2 and reimport it into this XI server. However, we have not tested this kind of procedure in the lab. I can not guarantee that this is going to work and I'd highly recommend testing this out on a non-production clone first.
Normally, duplicate processes should not be created. This solution should fix the most common cause of dupliocate nagios processes:
nano /etc/init.d/nagios
Go to line 224 and change:
for i in 1 2 3 4 5 6 7 8 9 10 ; do nagios
to
for i in {1..99} ; do nagios
Save the init script and run the command I gave you earlier to restart all services and kill nagios processes.

Re: xi 5.4.12 event log disappeared

Posted: Mon May 06, 2019 3:36 pm
by benhank
hey thanks man! you can lock it up, and that thanks is a wholehearted grateful one!

Re: xi 5.4.12 event log disappeared

Posted: Mon May 06, 2019 3:55 pm
by npolovenko
@benhank, Any time! :)