centreon-clapi icon indicating copy to clipboard operation
centreon-clapi copied to clipboard

[2.7.1] command sendtrapcfg does not work

Open kermith72 opened this issue 9 years ago • 1 comments

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

kermith72 avatar Jan 13 '16 09:01 kermith72

I add that I can't find this command in documentation.

It has to be updated

querwin avatar Apr 22 '16 08:04 querwin