-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unable to get poller list message" when run Playbook #6
Comments
Hi, Could you paste your playbook ? Do you have a correct SSL certificate on your platform ? I think a auto signed certificate don't work with current version.
|
Hi, Here is the Playbook - name: Integrate Host in CENTREON
hosts: localhost
vars:
centreon_url: "http://10.0.40.100/centreon"
centreon_api_user: "admin"
centreon_api_pass: "centreon"
handlers:
- name: "centreon api applycfg"
centreon_poller:
url: "{{ centreon_url }}"
username: "{{ centreon_api_user }}"
password: "{{ centreon_api_pass }}"
listen: centreon api applycfg
delegate_to: localhost
tasks:
- name: Create host in Centreon
centreon_host:
url: "{{ centreon_url }}"
username: "{{ centreon_api_user }}"
password: "{{ centreon_api_pass }}"
name: cert-vm1
alias: cert-vm1
ipaddr: 10.0.48.25
hosttemplates:
- generic-host
- WINDOWS_WITH_DISK_C
hostgroups:
- HOSTGROUP_TEST
hostgroups_action: set
instance: Central
status: enabled
state: present
applycfg: False
delegate_to: localhost
notify: "centreon api applycfg" |
Hi, I'm refacto sdk project, but feu with this commit guillaumewatteeux/centreon-sdk-python@eaa7578 If work, i'll publish new release (0.0.3) To close this issue. |
What is the official repo for the Python API then? Is it your fork or centreon's one? |
Hi, Centreon is the official repo. But I'm working on it and so quickly for me to work on my repo. After confirmation about SSL issue , I'll push this commit on official repo, upload on pypi. |
I debugged the issue with @sudoerss and it was an SSL certificate verification issue indeed. Do you want us to try the commit you linked earlier after distrusting the certificate? |
Well I'm getting into the same issue |
Sorry guys, it was actually another issue that had nothing to do with it, however leading to the same error message (http_proxy env var was improperly set in my case) |
HI, I've just install centreon 18.10 on VM
Could you test with this command ? |
Works fine with your commit and master (guillaumewatteeux/centreon-sdk-python@a2eb536) but I still see warnings (that are supposed to be disabled by this):
Test code: args = […]
from centreonapi.webservice import Webservice
Webservice.getInstance(*args, check_ssl=False).call_clapi("show", "INSTANCE") |
The full traceback is:
The text was updated successfully, but these errors were encountered: