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

create influxdb output using clapi

Open mavynet opened this issue 6 years ago • 0 comments

I'm trying to create a new broker output of type influxdb, but I can't figure out how to add the metrics columns. In the getoutput command the columns are not indexed: -o CENTBROKERCFG -a getoutput -v "central-broker-influx-master;Central" parameter key;parameter value cache;yes db_host;192.168.137.21 db_name;centreon db_password;centpass db_port;8086 db_user;centreon metrics_column__is_tag;false metrics_column__is_tag;false metrics_column__is_tag;true metrics_column__is_tag;true metrics_column__is_tag;true metrics_column__is_tag;true metrics_column__name;time metrics_column__name;value metrics_column__name;host metrics_column__name;service metrics_column__name;host_id metrics_column__name;service_id metrics_column__type;string metrics_column__type;string metrics_column__type;string metrics_column__type;string metrics_column__type;string metrics_column__type;string metrics_column__value;$TIME$ metrics_column__value;$VALUE$ metrics_column__value;$HOST$ metrics_column__value;$SERVICE$ metrics_column__value;$HOSTID$ metrics_column__value;$SERVICEID$ metrics_timeseries;$METRIC$

The output was inserted ok and all other options are set: -o CENTBROKERCFG -a listoutput -v "central-broker-influx-test;Central" id;name 1;Influxdb

but when i try to set the output using the same option it fails: -o CENTBROKERCFG -a setoutput -v "central-broker-influx-test;1;metrics_column__name;time" Invalid field

In the documentation I couldn't find any example for this type of field. Is it not implemented?

Thanks

mavynet avatar Mar 27 '18 12:03 mavynet