Code Monkey home page Code Monkey logo

ansible-zabbix-proxy's Introduction

Hi there ๐Ÿ‘‹

I am a nerd and likes to automate things to make my life easier. Mostly specific to Ansible, Zabbix and Kubernetes, but there are a lot of interesting technologies out there!

If you like my work and/or need some help, please take a look at my sponsor page, Patreon or buy me a coffee.

Anurag's github stats

Zabbix
Ansible coummunity.zabbix zabbix-agent zabbix-server zabbix-proxy zabbix-web zabbix-javagateway
Puppet voxpopuli-zabbix
Kubernetes/HELM helm-zabbix
Ossec Personal
Ansible ossec-server ossec-agent dj-wasabi-release pre-commit-hooks

ansible-zabbix-proxy's People

Contributors

angystardust avatar dj-wasabi avatar elcomtik avatar fabtho avatar giedriusramas avatar hatifnatt avatar kostyrev avatar lebe-dev avatar macaddict89 avatar maxim0r avatar mgornikov avatar q1x avatar rnsc avatar spaww avatar splitice avatar tleguern avatar vinclame avatar zbal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-zabbix-proxy's Issues

Playbook stops on centos

Describe the bug

- downloading role 'zabbix-proxy', owned by dj-wasabi
- downloading role from https://github.com/dj-wasabi/ansible-zabbix-proxy/archive/1.4.0.tar.gz
- extracting dj-wasabi.zabbix-proxy to /usr/share/ansible/roles/dj-wasabi.zabbix-proxy
- dj-wasabi.zabbix-proxy (1.4.0) was installed successfully
TASK [dj-wasabi.zabbix-proxy : Get the file for schema.sql] **********************************************************************************
[DEPRECATION WARNING]: evaluating zabbix_database_sqlload as a bare variable, this behaviour will go away and you might need to add |bool to 
the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation
 warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [server001.dc03.xrow.net]: FAILED! => {"changed": false, "cmd": "ls -1 /usr/share/doc/zabbix-proxy-mysql-4.2*/schema.sq*", "delta": "0:00:00.012031", "end": "2019-06-27 23:57:04.219409", "msg": "non-zero return code", "rc": 2, "start": "2019-06-27 23:57:04.207378", "stderr": "ls: cannot access /usr/share/doc/zabbix-proxy-mysql-4.2*/schema.sq*: No such file or directory", "stderr_lines": ["ls: cannot access /usr/share/doc/zabbix-proxy-mysql-4.2*/schema.sq*: No such file or directory"], "stdout": "", "stdout_lines": []}

Installation method/version

- hosts: router
  roles:
     - role: dj-wasabi.zabbix-proxy
  • Ansible Galaxy / latest

Ansible Version

ansible-playbook 2.8.1
  config file = /scm/hostway.infrastructure/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible-playbook
  python version = 2.7.5 (default, Apr  9 2019, 14:30:50) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]```

Targetted hosts
Concerns the following OS(es):

  • CentOS

Expected behavior
playbook runs through

Additional context

zabbix_server_host: 90.xx
zabbix_proxy_install_database_client: true
zabbix_agent_server: 90.xx
zabbix_agent_serveractive: 90.xx
zabbix_url: https://xxx.xxx.xxx
zabbix_create_host: present
zabbix_api_use: true
zabbix_api_user: Admin
zabbix_api_pass: xxxx
zabbix_host_groups:
  - dc03
zabbix_link_templates:
  - Template OS Linux

Create database error

TASK [dj-wasabi.zabbix-proxy : MySQL | Create database] ************************
11:03:18
task path: /var/lib/awx/projects/zabbixproxy/roles/dj-wasabi.zabbix-proxy/tasks/mysql.yml:7
11:03:18
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "module_stderr": "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

Mysql database error

Hello dj-wasabi,

When i want to use mysql database, i have an error :

TASK [dj-wasabi.zabbix-proxy : MySQL | Create database] **************************************************************************
fatal: [proxy04-prd.test.net -> proxy04-prd.test.net]: FAILED! => {"changed": false, "failed": true, "msg": "unable to find /root/.my.cnf. Exception message: (2002, \"Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)\")"}
        to retry, use: --limit @.....

Am I the only one ?

Regards,
zab35

Sqlite support for Zabbix Proxy?

Hi dj-wasabi

First of all, thanks for your great work!
Is it planned to support zabbix proxy with sqlite3 backend? We are only using sqlite backend on our proxies because of less dependencies.

Thanks in advance & best regards
Remo

Release new version

Currently the latest version available in galaxy is version 0.4, but quite a lot of commits have been made since that version.

Can we get a newer release in galaxy?

StartVMwareCollectors version comparison typo ?

Hello dj-wasabi,

Is there a problem in the version comparison ?

{% if zabbix_version | version_compare('2.4', '<') %}
### Option: StartVMwareCollectors
StartVMwareCollectors={{ zabbix_proxy_startvmwarecollector }}

I think the comparator must be >

{% if zabbix_version | version_compare('2.4', '>') %}

Best regards,
zab35

MySQL schema creation failure

Describe the bug
MySQL schema import fails when database server is installed on dedicated host other then proxy itself. The reason seems to be lack of schema file on database host linked with delegation of schema import task to database host.

Installation method/version
1.6.0 installed by ansible-galaxy over git+ssh

Ansible Version

ansible 2.8.5

Targetted hosts
Concerns the following OS(es):

  • Ubuntu

Expected behavior

Schema creation should be executed on zabbix-proxy host by mysql_db module against remote MySQL server over MySQL protocol.

OR

There should be additional step of shipping schema file when schema creation is delegated to MySQL host.

HistoryTextCacheSize is deprecated in Zabbix 3

Hi,

first of all - thanks for all the great work on these roles! ๐Ÿ˜„

Trying to install Zabbix proxy 3 using version 0.3.0 of your role, and I get this, when the service is trying to restart:

unknown parameter "HistoryTextCacheSize" in config file "/etc/zabbix/zabbix_proxy.conf", line 236

According to this spec:

HistoryTextCacheSize configuration parameter must be removed.

agent and proxy on same host

Hello,
I do use both your proxy and agent roles on same host (centos 6, if that matters), and I get "changed" status of that host on the every ansible-playbook run due to yum repo file being changed by proxy and also proxy roles. could this be remedied? I think that root cause is difference between .repo templates...
Thank you...
JN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.