This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> bash --version | |
GNU bash, version 5.0.11(1)-release (x86_64-suse-linux-gnu) | |
Copyright (C) 2019 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software; you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
failed: [target.host] (item=HS Template App App) => {"changed": false, "item": "HS Template App App", "module_stderr": "Shared connection to howl.incert.motive.com closed. | |
", "module_stdout": "Traceback (most recent call last): | |
File \"/tmp/ansible_LjKS35/ansible_module_zabbix_template.py\", line 555, in <module> | |
main() | |
File \"/tmp/ansible_LjKS35/ansible_module_zabbix_template.py\", line 540, in main | |
child_template_ids, macros) | |
File \"/tmp/ansible_LjKS35/ansible_module_zabbix_template.py\", line 270, in add_template | |
'macros': macros}) | |
File \"/usr/lib/python2.7/site-packages/zabbix_api.py\", line 329, in method | |
return self.universal(\"%s.%s\" % (self.data[\"prefix\"], name), opts[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Import Zabbix templates | |
zabbix_template: | |
server_url: "http://localhost/zabbix/" | |
login_user: zbx_api_cli | |
login_password: "{{zbx_api_cli_password}}" | |
template_name: "{{item}}" | |
template_json: "{{ lookup('file', 'files/zabbix-templates/zbx_template-' + item + '.json') }}" | |
state: present | |
tags: zabbixtemplate | |
loop: "{{zabbix_templates}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== Variables: | |
action_common_keys: | |
server_url: "http://localhost/" | |
login_user: api_cli | |
login_password: "{{api_cli_password}}" | |
state: present | |
status: enabled | |
actions_discovery: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: "Create ES index that's missing" | |
local_action: | |
module: uri | |
url: 'http://{{es_server}}:9200/{{ls_segment}}-{{item.1.file}}-000001' | |
method: PUT | |
status_code: 200 | |
body: | |
aliases: | |
"{{ls_segment}}-{{item.1.file}}_rollover": {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: | |
aliases: | |
"{{ls_segment}}-{{item.1.file}}_rollover": {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Minion; | |
use Minion::Backend::SQLite; | |
my $minion = Minion->new(SQLite => 'sqlite:testing.db'); | |
$minion->on(worker => sub { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tables: | |
thing | |
thingid, thingname | |
10, athing | |
11, bthing | |
12, cthing | |
entity | |
entityid, entityname, thingid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ansible-playbook group zabbix-agent.yml | |
PLAY [Configure Zabbix agent] ************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ********************************************************************************************************************************************************************************************************************* | |
ok: [host41.example.com] | |
ok: [host40.example.com] | |
ok: [host42.example.com] | |
ok: [host4.example.com] | |
changed: [host4.example.com] => (item=Server) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- possible input : | |
key [t|a] | |
<style type="text/css"><!--/*--><![CDATA[/*><!--*/ | |
key2[param] [u|1] | |
something else | |
key3[[param,param],param] [z|44] | |
--- desired output (validating trimmed $1 for something like [a-zA-Z0-9\[*] ): |
NewerOlder