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