Skip to main content

Hello all,

I’m having trouble with the new NVIDIA GPU SMI SSH plugin (hardware::devices::nvidia::gpu::smi::plugin).

I would like to monitor the GPUs of my ESXi but the authentification doesn’t work.

I tried with the ESX root account

broot@Centreon plugins]# ./centreon_plugins.pl --plugin=hardware::devices::nvidia::gpu::smi::plugin --mode=stats --hostname=EsxName --ssh-username=root --ssh-password='MyEsxRootPWD' --ssh-backend=libssh --verbose
UNKNOWN: auth issue: Access denied for 'password'. Authentication that can continue: publickey,keyboard-interactive

I also tried with the Centreon user because the documentation use this user. But because that user is not present on my ESXs I don’t understand how it could works

eroot@Centreon plugins]# ./centreon_plugins.pl --plugin=hardware::devices::nvidia::gpu::smi::plugin --mode=stats --hostname=EsxName --ssh-username=centreon --ssh-password='' --ssh-backend=libssh --verbose
UNKNOWN: auth issue: pubkey issue

 

If anyone have tried this plugin before I would appreciate some help :)

 

Thanks

Hello, 

 

Are you able to log in by SSH to your ESXi with that user and the password you tried to use with the plugin? 

 

It might be because you need to do some configuration on the ESXi server to use password. 

In the following file : 

vim /etc/ssh/sshd_config

You have two lines to uncomment if you want to log in as root with a password BUT it is not recommended, you should avoid using root for security issues.

To be able to use a password, uncomment :

#PasswordAuthentication yes

The right way would be using ssh key authentication with a user that is not root.

To do so, you’ll have to create a user on the server you want to monitor (the ESXi), generate ssh keys for centreon-engine user (the one issuing the ssh connection when you execute the plugin) on the poller(or central) and then copy the centreon-engine’s pub key to the ESXi with the user you’ve just created.

You can follow the steps here that would give you some hints about ssh key exchange : https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-monitoring-centreon-poller/#ssh-key-exchange


Hello,

 

Thank you very much for your help !

I switched the setting PasswordAuthentication to yes and it works fine now. I know this is not recommended at all but my purpose was to test the plugin in a first time.

I had a look at what you suggested to do. It seems the best solution in fact but if I understand well, I should have a centreon user on each of my ESXi which have the permissions to execute nvidia-smi command right ?

I didn’t find how to grant that kind of permission for an ESXi user 🤔

 

I’ll keep digging but if you have an idea. I’m interested !


Reply