Skip to main content

Hi, I’m getting this error message when running the generic SNMP discovery:

 

sh: /usr/lib/centreon/plugins//centreon_generic_snmp.pl: No such file or directory

 

The plugin is installed, so what’s the issue? This is a brand new install.

Hi @raw-rs,

On the monitoring server that will run the Host Discovery job, you need to install the plugin with the following command:

yum install centreon-plugin-Applications-Protocol-Snmp

 

Regards.


Hi @raw-rs,

On the monitoring server that will run the Host Discovery job, you need to install the plugin with the following command:

yum install centreon-plugin-Applications-Protocol-Snmp

 

Regards.

Thanks - that hadn’t been installed. I’ve done that now, and it appears to have found a bunch of hosts, but now i’m getting another error:

 

Not saved hosts:
s] Error on adding a host (Reason: Centreon\Domain\Common\Assertion\AssertionException: xHost::name] The value is empty, but non empty value was expected in /usr/share/centreon/src/Centreon/Domain/Common/Assertion/AssertionException.php:188
Stack trace:
#0 /usr/share/centreon/src/Centreon/Domain/Common/Assertion/Assertion.php(214): Centreon\Domain\Common\Assertion\AssertionException::notEmpty()
#1 /usr/share/centreon/vendor/beberlei/assert/lib/Assert/Assertion.php(2788): Centreon\Domain\Common\Assertion\Assertion::Centreon\Domain\Common\Assertion\{closure}()
#2 /usr/share/centreon/vendor/beberlei/assert/lib/Assert/Assertion.php(638): Assert\Assertion::generateMessage()
#3 /usr/share/centreon/src/Centreon/Domain/Common/Assertion/Assertion.php(212): Assert\Assertion::notEmpty()
#4 /usr/share/centreon/src/Centreon/Domain/HostConfiguration/HostConfigurationService.php(119): Centreon\Domain\Common\Assertion\Assertion::notEmpty()
#5 /usr/share/centreon/src/CentreonAutoDiscovery/Domain/Job/DiscoveredHostService.php(388): Centreon\Domain\HostConfiguration\HostConfigurationService->addHost()
#6 /usr/share/centreon/src/CentreonAutoDiscovery/Domain/Job/DiscoveredHostService.php(301): CentreonAutoDiscovery\Domain\Job\DiscoveredHostService->saveHostAndApplyServices()
#7 /usr/share/centreon/src/CentreonAutoDiscovery/Domain/Job/DiscoveredHostService.php(102): CentreonAutoDiscovery\Domain\Job\DiscoveredHostService->saveDiscoveredHosts()
#8 /usr/share/centreon/www/modules/centreon-autodiscovery-server/script/save_discovered_host.php(260): CentreonAutoDiscovery\Domain\Job\DiscoveredHostService->saveAllDiscoveredHosts()
#9 /usr/share/centreon/www/modules/centreon-autodiscovery-server/script/save_discovered_host.php(2): sg_load()
#10 {main})

 


Hi @raw-rs,

It means that one or more discovered hosts did not return a value for the related SNMP OID.

Do all hosts have a defined name?

 

Regards.


Hi @raw-rs,

It means that one or more discovered hosts did not return a value for the related SNMP OID.

Do all hosts have a defined name?

 

Regards.

No, but I added an additional mapping for the description to link to the hostname and this was enough to clear the error.


Reply