centreon-clapi
centreon-clapi copied to clipboard
[2.7.1] command sendtrapcfg does not work
hello, the following command does not work :
centreon -u admin -p password -a sendtrapcfg -v 1sh: 1: /usr/share/centreon//bin/centGenSnmpttConfFile: not found Return code end : 0
centGenSnmpttConfFile has been replaced by the generateSqlLite
I propose the following line but we must manage the creation of the folder. File /usr/share/centreon/www/class/centreon-clapi/centreon.Config.Poller.class.php line 618
passthru("$centreonDir/bin/generateSqlLite ".$pollerId." /etc/snmp/centreon_traps/".$pollerId ."/centreontrapd.sdb 2>&1");
result
centreon -u admin -p password -a sendtrapcfg -v 1 /usr/share/centreon//bin/generateSqlLite: Cannot write into /etc/snmp/centreon_traps/1/centreontrapd.sdb Return code end : 0
with create folder
mkdir /etc/snmp/centreon_traps/1 centreon -u admin -p password -a sendtrapcfg -v 1Poller (id:1): Sqlite database successfully created Return code end : 0
I add that I can't find this command in documentation.
It has to be updated