ndo2db trucate table restart indexes

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
andrea.manica
Posts: 2
Joined: Fri Oct 10, 2014 9:02 am

ndo2db trucate table restart indexes

Post by andrea.manica »

Hi,
I've installed nagios 4.08 with ndo utils
when i restart nagios all hosts and all hosts groups where deleted and created.
is possible to change the configuration in order to mantain data when nagios restart.

thanks

Andrea
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: ndo2db trucate table restart indexes

Post by tmcdonald »

I'm not sure what you mean by "deleted and created". Do you mean they were, for example, in an OK state and then after the restart they were in a Pending state or something similar?
Former Nagios employee
andrea.manica
Posts: 2
Joined: Fri Oct 10, 2014 9:02 am

Re: ndo2db trucate table restart indexes

Post by andrea.manica »

It 's like a truncate table.

When I restart nagios form the same configuration file the nagios_host table was truncated and then re pupolated using different id for hosts.

and this is for all the tables.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: ndo2db trucate table restart indexes

Post by abrist »

Have you changed the ndo instance in the ndo2db.cfg?
Can you show us the logs of these truncations?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked