Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Pollers added via CLAPI are not in cfg_nagios table #11902

Open
mooky31 opened this issue Sep 29, 2022 · 0 comments
Open

Pollers added via CLAPI are not in cfg_nagios table #11902

mooky31 opened this issue Sep 29, 2022 · 0 comments
Labels
status/new New tickets

Comments

@mooky31
Copy link

mooky31 commented Sep 29, 2022

Versions

[root@centreon plugins]# rpm -qa | grep centreon | egrep -v "(plugin|pack)" | sort
centreon-21.10.10-1.el7.centos.noarch
centreon-auto-discovery-server-21.10.3-2.el7.centos.noarch
centreon-awie-21.10.0-1.el7.centos.noarch
centreon-base-config-centreon-engine-21.10.10-1.el7.centos.noarch
centreon-broker-21.10.2-4.el7.x86_64
centreon-broker-cbd-21.10.2-4.el7.x86_64
centreon-broker-cbmod-21.10.2-4.el7.x86_64
centreon-broker-core-21.10.2-4.el7.x86_64
centreon-broker-storage-21.10.2-4.el7.x86_64
centreon-clib-21.10.2-4.el7.x86_64
centreon-common-21.10.10-1.el7.centos.noarch
centreon-connector-21.10.2-4.el7.x86_64
centreon-connector-perl-21.10.2-4.el7.x86_64
centreon-connector-ssh-21.10.2-4.el7.x86_64
centreon-database-21.10.10-1.el7.centos.noarch
centreon-engine-21.10.2-4.el7.x86_64
centreon-engine-daemon-21.10.2-4.el7.x86_64
centreon-engine-extcommands-21.10.2-4.el7.x86_64
centreon-gorgone-21.10.2-3.el7.centos.noarch
centreon-gorgone-centreon-config-21.10.2-3.el7.centos.noarch
centreon-license-manager-21.10.0-1.el7.centos.noarch
centreon-license-manager-common-21.10.0-1.el7.centos.noarch
centreon-perl-libs-21.10.10-1.el7.centos.noarch
centreon-poller-centreon-engine-21.10.10-1.el7.centos.noarch
centreon-pp-manager-21.10.0-2.el7.centos.noarch
centreon-release-21.10-5.el7.centos.noarch
centreon-trap-21.10.10-1.el7.centos.noarch
centreon-web-21.10.10-1.el7.centos.noarch
centreon-widget-engine-status-21.10.0-2.el7.centos.noarch
centreon-widget-global-health-21.10.1-1.el7.centos.noarch
centreon-widget-graph-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-grid-map-21.10.0-2.el7.centos.noarch
centreon-widget-hostgroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-host-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-httploader-21.10.0-2.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-21.10.0-2.el7.centos.noarch
centreon-widget-live-top10-memory-usage-21.10.0-2.el7.centos.noarch
centreon-widget-servicegroup-monitoring-21.10.0-2.el7.centos.noarch
centreon-widget-service-monitoring-21.10.1-1.el7.centos.noarch
centreon-widget-tactical-overview-21.10.0-2.el7.centos.noarch

Browser used

N/A

Description

I am trying to add a poller through CLAPI.
I use:
centreon -u admin -p centreon -o INSTANCE -a add -v 'test4;9.9.9.9;22;ZMQ;5556'

I cannot generate the config files then:
centreon -u admin -p 'centreon' -a POLLERGENERATE -v test4
Please check that your parameters are valid

Through the web interface, it says:
Exception received : Cannot get engine configuration for poller id (maybe not activate) '21'

Indeed, if I look into the table cfg_nagios, poller doesn't exist.

If I create the same through Add(advanced) in the web interface, export config works.

Steps to Reproduce

See above

Describe the received result

See above

Describe the expected result

See above

Logs

N/A

@mooky31 mooky31 added the status/new New tickets label Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/new New tickets
Projects
None yet
Development

No branches or pull requests

1 participant