Skip to main content

Hi,

We have a custom script for service discovery which seems to work fine when launched by CLI.
[centreon@sli-centreon-c1-qul autodiscovery-pdu-aten-master ]$ perl /usr/lib/centreon/plugins/optnc/autodiscovery-pdu-aten-master/main.pl --hostname=ip_address --snmp-community=centreon --snmp-version=2c --disco-show
<?xml version="1.0" encoding="utf-8"?>
<data>
  <label id="1" status="2" name="Alim 1 serveur 1"/>
  <label id="2" status="2" name="Alim 1 serveur 2"/>
  <label id="3" status="2" name="Alim 1 serveur 3"/>
  <label id="4" status="2" name="Alim 1 serveur 4"/>
  <label id="5" status="2" name="Alim 1 switch FB"/>
  <label id="6" status="1" name=""/>
  <label id="7" status="1" name=""/>
  <label id="8" status="1" name=""/>
</data>
gcentreon@sli-centreon-c1-qul autodiscovery-pdu-aten-master ]$ perl /usr/lib/centreon/plugins/optnc/autodiscovery-pdu-aten-master/main.pl --hostname=127.0.0.1 --snmp-community=centreon --snmp-version=2c --disco-format
<?xml version="1.0" encoding="utf-8"?>
<data>
  <element>id</element>
  <element>status</element>
  <element>name</element>
</data>

However, when I try to launch a manual service discovery from the GUI, I have an execution error.
 


I tried a lot of different options, configurations on the dicover command and macro command but the result is always the same.

Any help would be appreciated.

Regards,

Thierry

Hi,

On this topic, I am still stuck. I believe, it is related with some authorisation to query the database. If I move the equipement on the Central, the service discovery from the GUI works perfectly.

Anyone knows what are the authorisations that needs to be checked or added  on the Centreon database? Which database user is used by the service discovery from the GUI ?

Regards,
Thierry Orvoen


Reply