Question

Host Templates plug-ins not displayed in list


Badge +3
  • Steward *
  • 13 replies

Hello,

I have a problem with my Centreon 21.04.4.

If I install a new plug-in in my case Virt-VMWare2-ESX, the corresponding templates doesn’t appear in “Templates” in Host configuration.

How can I troubleshoot this problem or rebuid the template list (in host configuration) ?

Thank you and best regards,

Evo


27 replies

Userlevel 3
Badge +11

Hello,

According your license, you must install the Plugin Packs by a yum command or not.

Maybe it’s the missing step you do to see it.

See the license doc Licenses | Centreon Documentation and the Plugin Packs docs Plugin Packs | Centreon Documentation after that you could see the installation section of your Plugin / Plugin Pack VMware ESX | Centreon Documentation

You have an How To post for this plugin :

How to configure VMWare monitoring on Centreon | Community

Otherwise, could you post the step of the installation ?

Regards,

Greg

 

 

Badge +3

Hello Greg,

Thanks a lot for your answer.

Plug-ins seems to be correctly installed. Here the result :

 

If I go to Configuration > Services > Templates, I can see them :

 

But If I try to select the Template in a Host, it doesn’t appear in Template list :

 

That’s the reason why I think it should be a problem of the DB to be rebuild/reindexed, or a problem in Service Template to be reregistered.

I already try to uninstall and resinstall this plugins.

 

Thank you for your help and best regards,

Evo

Userlevel 3
Badge +11

Hello,

You solved your issue ?

I imagine you tried to install and install the Plugin Packs also ?

Regards,

Greg

Badge +3

Hello,

 

No, the problem is not solved. I don’t know why my question is now marked as solved…?!

 

Please have a look on screenshot I sent, Service Templates are not displaying in the list (in Configuration > Hosts). You can see it in the 2 last screenshots.

 

The plugins are installed. I sent the 2 first screenshot to confirm it.

 

Does anybody have an idea to solve this issue ?

 

Thank you and best regards,

 

Evo

Userlevel 3
Badge +9

Hello @Evo,

 

What Plugin Pack did you install on the Configuration  >  Plugin Packs page ? In Centreon < 22.04, you need to install the plugin and the Plugin Pack through CLI. Then, you need to install the Plugin Pack through the web interface to get the list of templates.

After Centreon 22.04, you only need to install the Plugin Pack through CLI and on the web interface (the plugin should be automatically installed).

 

Regards.

Badge +3

Hello @itoussies,

Thank you for your answer.

 

Here is Plugin pack actually installed :

 

Vmware plugin pack seems to be installed regarding this screenshot and these two :

 

Did I miss something ?

 

Best regards,

 

Evo

Userlevel 3
Badge +9

Hello,

 

You can try to reinstall the Plugin Pack :

 

Regards.

Badge +3

Hello,

I try this also, but the problem is still there.

 

I can see Plugin Pack is installed as it appear in filter list the search for existing hosts :

 

 

But if I try to add a new host (or change an existing host), Plugin pack is not present in the list :

 

Best regards,

Evo

Badge +10

@Evo have you reached your max number of hosts for your license?

Badge +3

Hello @hmorales ,

I don’t think so, as the Template list is also not correctly populated on existing hosts.

Best regards,

Evo

Userlevel 3
Badge +9

Hello @Evo,

 

Please note that desactivated hosts count towards your max number of hosts for your license.

 

Regards.

Badge +3

Hello @itoussies ,

 

Thank you for your reply.

We are using 63 hosts actually and the free license allow 100 hosts.

 

What is interesting is that a new host is correctly added by command line :

centreon -u admin -p 'password' -o HOST -a ADD -v "test;Test host;192.168.50.51;Virt-VMWare2-ESX-custom;Remote-Poller;"
 
Best regards,
Evo
Userlevel 3
Badge +9

Hello @Evo,

 

What is the result of the following SQL request ?

SELECT count(*) FROM centreon.host WHERE host_register='1';

 

Regards.

Badge +3

Hello @itoussies ,

 

I tried this command in SSH, but the result is an error message :

     bash: syntax error near unexpected token `('

 

Best regards,

Evo

Userlevel 3
Badge +9

Hello @Evo,

 

First, you need to connect to your Centreon central database:

mariadb -h <database IP> -u root -p

or, you can use the centreon account if you don’t know your root password :

mariadb -h <database IP> -u centreon -p

 You can find its password in the file /etc/centreon/conf.pm

 

Then you can execute the query:

SELECT count(*) FROM centreon.host WHERE host_register='1';

 

Regards.

Badge +3

Hello @itoussies ,

 

Thank you theses commands.

Here si the result :

 

+----------+
| count(*) |
+----------+
|       64 |
+----------+
1 row in set (0.002 sec)

 

It seems the number of hosts is not the problem.

 

What would be the command to check if “ Virt-VMWare2-ESX” Is present it the MariaDB ?

 

Best regards,

Evo

Userlevel 3
Badge +9

Hello,

 

The SQL request is:

SELECT * FROM centreon.host WHERE host_name='Virt-VMWare2-ESX';

 

Does it happen with other host templates too ?

 

Regards.

Badge +3

Hello @itoussies ,

 

This command returns all host configured with “Virt-VMware2-ESX” Host template.

 

What I’m looking for is the list of all Host templates registered in the DB.

 

Yes, it happens with some other Host templates. This is really strange, and why I think a king of maintenance (reindex by exemple) is needed on the DB. Do you know if it exists some commands for this ?

 

Best regards,

Evo

Userlevel 3
Badge +11

Hello @Evo 

If you want repair your database, you could use this tool https://mariadb.com/kb/en/mysqlcheck/

I think you could stop Centreon before run this tool to don't have lock or others problem to access data, do a backup of your database firstly with your problem, maybe is a bug of your release..

It's very strange, if we have a licence and try to uninstall and install the plugin packs who is missing when you looking for the Host template to attach it at a new host.

Regards,

Userlevel 3
Badge +11

You could update your 21.04 (21.04.4) version to the last update 21.04.15 web and others modules https://docs.centreon.com/fr/docs/21.04/releases/centreon-core/

Plugin Packs Manager https://docs.centreon.com/fr/docs/21.04/releases/centreon-commercial-extensions/#centreon-plugin-packs-manager

Update process is here https://docs.centreon.com/fr/docs/21.04/update/update-centreon-platform/

Regards,

Badge +3

Hello @gespada ,

Thank you for your message.

Updating to latest version solved the problem, thank you.

I still have one problem to solve as the services from this remote ESX host (monitored by a remote poller) doesn’t appear to Central.

Regards,

Evo

Userlevel 3
Badge +9

Hi @Evo,

 

In that case, you should:

  • From the Poller, run the following command to restart the Gorgone service from the poller:
systemctl start gorgoned
  • To force the central's Gorgone daemon to connect to the poller, restart it with the same command from the central server
  • Then, export you poller configuration

Regards.

Badge +3

Hello @itoussies ,

Thank you for your reply.

I tried this several times, without success.

Regards,

Evo

Userlevel 3
Badge +9

Hello @Evo,

 

When you export your poller configuration, are the files updated on your poller in the /etc/centreon-engine/ folder?

 

Regards.

Badge +3

Hello @itoussies ,

Thanks again for your help.

No, the date doesn’t change in this directory of the remote poller.

Do you have an idea of what I have to do ?

Regards,

Evo

Reply