[Nagios-devel] NDO utils bug/explanation
Posted: Thu Sep 17, 2009 2:12 pm
This is a multi-part message in MIME format.
------_=_NextPart_001_01CA37A9.242F8D66
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
I'm using ndo2db for populating my database with nagios data, with I
read from nagvis.
I noticed that in some occasion ndo2db deletes some data from the
tables, here the code in dbhandlers.c line 655 and subsequents:
=20
=20
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_PROGRAMSTA
TUS]);
=20
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTSTATUS
]);
=20
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_SERVICESTA
TUS]);
...
I think this is not correct because one has to read the timestamps, data
must be there, this at least apply to the table PROGRAMSTATUS.
=20
Thanks
=20
Marco
------_=_NextPart_001_01CA37A9.242F8D66
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
I’m using ndo2db for =
populating my
database with nagios data, with I read from =
nagvis.
I noticed that in some occasion =
ndo2db
deletes some data from the tables, here the code in dbhandlers.c line =
655 and subsequents:
=
ndo2db_db_clear_tab=
le(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_PROGRAMSTATUS]);
=
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTSTATUS]=
);
=
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_SERVICESTAT=
US]);
=
…
I think this is not correct =
because one has
to read the timestamps, data must be there, this a
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
------_=_NextPart_001_01CA37A9.242F8D66
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
I'm using ndo2db for populating my database with nagios data, with I
read from nagvis.
I noticed that in some occasion ndo2db deletes some data from the
tables, here the code in dbhandlers.c line 655 and subsequents:
=20
=20
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_PROGRAMSTA
TUS]);
=20
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTSTATUS
]);
=20
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_SERVICESTA
TUS]);
...
I think this is not correct because one has to read the timestamps, data
must be there, this at least apply to the table PROGRAMSTATUS.
=20
Thanks
=20
Marco
------_=_NextPart_001_01CA37A9.242F8D66
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
I’m using ndo2db for =
populating my
database with nagios data, with I read from =
nagvis.
I noticed that in some occasion =
ndo2db
deletes some data from the tables, here the code in dbhandlers.c line =
655 and subsequents:
=
ndo2db_db_clear_tab=
le(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_PROGRAMSTATUS]);
=
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTSTATUS]=
);
=
ndo2db_db_clear_table(idi,ndo2db_db_tablenames[NDO2DB_DBTABLE_SERVICESTAT=
US]);
=
…
I think this is not correct =
because one has
to read the timestamps, data must be there, this a
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]