-
Notifications
You must be signed in to change notification settings - Fork 9
The attribute backendtype in section backend_centreonbroker_1 in main configuration file does not match the correct format. #2
Comments
I have the same problem and don't find a way to correct it. I have CES 3.1 and installed nagvis 1.7.10. Edit: Follow this tutorial to install nagvis. I did it and have no more problems now |
I faced the same issue, but by debugging the issue |
@pvillard31 maybe you can attach a working config here? |
@maksimatveev You can have a look at the pull request I submitted #8 (I tested the use of Centreon with Nagvis for latest versions 2.7.1 and 1.9b4). In the nagvis.ini.php file, here is what I changed :
Let me know if you have other questions |
@pvillard31 |
@maksimatveev could you try without the line statushost="" ? |
@pvillard31 |
@maksimatveev Did you add the backend into Nagvis class directory ? |
@pvillard31 Of course: |
If your message is "The section is not supported in main configuration. Please take a look at the documentation.". I'd say that, in some way, Nagvis finds empty section in the configuration. In any case, it means that your configuration is not formatted as expected. Maybe you can give a try with the attached configuration. The error you mention is in : share/server/core/classes/GlobalMainCfg.php I'd try to add some debug lines to understand what is going on... |
@pvillard31 Many thanks for your help)) Today try your file. |
@pvillard31 I use your file (just changed the password), but the error remained: |
Well not sure this is related with the Nagvis version but I didn't try with Nagvis 1.7 so it could be. |
@pvillard31 I find the file you specified earlier in the line 1840 comment: Upgrading to version 1.8.5 has not helped. |
On my side I am using the last version of Nagvis (1.9b4) so the lines could be different but I'd suggest to have a look here : if(!isset($arrValidConfig[$key])) {
// unknown attribute
if($printErr) {
throw new NagVisException(l('Unknown value [ATTRIBUTE] used in section [TYPE] in main configuration file.',
Array('ATTRIBUTE' => $key, 'TYPE' => $type)));
}
return FALSE;
} You may try printing the content of |
@pvillard31 I understand the logic of this problem. how to get the output $arrValidConfig? |
echo $arrValidConfig; Then, when displaying the home page of Nagvis, you should see the result. |
@pvillard31 I found the section, which you mentioned, what part you want to add "echo $arrValidConfig;"? |
We ran into the same problem. This is just a workaround of course, we have no clue, why this format issue occurs when editing the config files directly. |
@bk0815 Thank you, I will try in the near future. |
Hello, |
I ran into the same problem in CES 3.3, any solution ? EDIT : |
@ErrafayM And what error message you have displayed? I have version 1.8.5 and it does not solve the problem. |
The same problem you had "Unknown value dbhost used in section backend_centreonbroker in main configuration file", i also deleted Nagvis and started it from scratch. |
Good evening ErrafayM, You could provide your configuration files and nagvis.php.ini |
Yeah sure, |
Thank you so much ErrafayM, It worked. |
No problem sujeiitosuspeito ! i'm glad i could help. |
Hello, [EDIT : After restarting twice, it's seems to be working. I kept using your files, so thaks anyway :) ] |
@EllaStique Hello! |
I guess "starting" was not the right term. I meant "delete all the nagios files and install it again" ;) |
Zmylna write :
Can't run nagvis because error:
"The attribute backendtype in section backend_centreonbroker_1 in main configuration file does not match the correct format. Please review your configuration."
I did everything like decribed here: https://blog.centreon.com/nagviscentreon-broker-for-better-or-for-worse/
But no luck :(
PS.
Sorry for my english.
The text was updated successfully, but these errors were encountered: