Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Insert in index_data doesn't work as expected #2362

Closed
centreon opened this issue Jun 5, 2015 · 2 comments
Closed

Insert in index_data doesn't work as expected #2362

centreon opened this issue Jun 5, 2015 · 2 comments

Comments

@centreon
Copy link
Collaborator

centreon commented Jun 5, 2015


Author Name: Simon Bomm (Simon Bomm)
Original Redmine Issue: 6421, https://forge.centreon.com/issues/6421
Original Date: 2015-06-05


Hi guys,

Find on :
Centreon 2.5.4
Centreon 2.6.1

Faced a funny issue with my poller-display setup, when enabling "insert in index_data" option box in Administration > Options, and creating a storage/perfdata output in broker configuration, value is set to 0.

If disabling it, then the value is set to 1.

So there is probably some reversed condition concerning update of the centreon.options table for the key index_data.

Thanks a lots !

@centreon
Copy link
Collaborator Author

centreon commented Jun 5, 2015


Original Redmine Comment
Author Name: Simon Bomm (Simon Bomm)
Original Date: 2015-06-05T08:39:21Z


Get the point with Jules Winnfield :)

In include/options/oreon/generalOpt/DB-Func.php :

371 updateOption($pearDB, "index_data", isset($ret["insert_in_index_data"]) && $ret["insert_in_index_data"] != NULL ? "1": "0");

should be

371 updateOption($pearDB, "index_data", isset($ret["insert_in_index_data"]) && $ret["insert_in_index_data"] != NULL ? "0": "1");

And then necessary to change the form.php for displaying option value correctly in include/options/oreon/generalOpt/centstorage/form.php from line 70 to 80.

Thanks !

@Tpo76
Copy link
Contributor

Tpo76 commented Aug 11, 2015

OK

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants