Execution
Date
12 Dec 2025 11:08:37 +0000
Duration
00:00:07.26
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.11
ara
1.7.3 / 1.7.3
Python
3.10.10
Summary
24
Hosts
1
Tasks
24
Results
1
Plays
1
Files
0
Records
Task result details
-
StatusCHANGED
-
Duration00:00:03.36
-
PlayInstall missing Agent360 plugins
-
TaskCheck and install missing plugins
-
Date12 Dec 2025 11:08:43 +0000
-
Module / Actionansible.builtin.shell (/home/ssh-gateway/ansible/kuly/zz.yaml:6)
| Field | Value |
|---|---|
| ansible_facts |
{ "discovered_interpreter_python": "/usr/libexec/platform-python" } |
| changed |
True |
| cmd |
set -o pipefail
for p in provider_metrics fpm_errors apache_errors process_runtimes ram_per_user cpu_per_user; do
agent360 --info | grep -q "$p" && echo "$p: OK" || { echo "$p: MISSING – installing"; curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s "$p"; }
done
|
| delta |
0:00:02.425805 |
| end |
2025-12-12 11:08:43.599787 |
| invocation |
{ "module_args": { "_raw_params": "set -o pipefail\nfor p in provider_metrics fpm_errors apache_errors process_runtimes ram_per_user cpu_per_user; do\n agent360 --info | grep -q \"$p\" && echo \"$p: OK\" || { echo \"$p: MISSING \u2013 installing\"; curl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh | bash -s \"$p\"; }\ndone\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "expand_argument_vars": true, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
| msg |
|
| rc |
0 |
| start |
2025-12-12 11:08:41.173982 |
| stderr |
Traceback (most recent call last):
File "/usr/local/bin/agent360", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 786, in main
print(info())
File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 93, in info
plugins_enabled = agent._get_plugins(state='enabled')
File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 668, in _get_plugins
if self.config.getboolean(plugin_name, 'enabled'):
File "/usr/lib64/python3.6/configparser.py", line 829, in getboolean
raw=raw, vars=vars, fallback=fallback, **kwargs)
File "/usr/lib64/python3.6/configparser.py", line 809, in _get_conv
**kwargs)
File "/usr/lib64/python3.6/configparser.py", line 803, in _get
return conv(self.get(section, option, **kwargs))
File "/usr/lib64/python3.6/configparser.py", line 1155, in _convert_to_boolean
raise ValueError('Not a boolean: %s' % value)
ValueError: Not a boolean: true #86400
Traceback (most recent call last):
File "/usr/local/bin/agent360", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 786, in main
print(info())
File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 93, in info
plugins_enabled = agent._get_plugins(state='enabled')
File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 668, in _get_plugins
if self.config.getboolean(plugin_name, 'enabled'):
File "/usr/lib64/python3.6/configparser.py", line 829, in getboolean
raw=raw, vars=vars, fallback=fallback, **kwargs)
File "/usr/lib64/python3.6/configparser.py", line 809, in _get_conv
**kwargs)
File "/usr/lib64/python3.6/configparser.py", line 803, in _get
return conv(self.get(section, option, **kwargs))
File "/usr/lib64/python3.6/configparser.py", line 1155, in _convert_to_boolean
raise ValueError('Not a boolean: %s' % value)
ValueError: Not a boolean: true #86400
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file
Warning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py:
Warning: No such file or directory
100 15703 100 15703 0 0 383k 0 --:--:-- --:--:-- --:--:-- 374k
curl: (23) Failed writing body (0 != 15703)
Redirecting to /bin/systemctl status kcare.service
Redirecting to /bin/systemctl restart agent360.service
|
| stderr_lines |
[ "Traceback (most recent call last):", " File \"/usr/local/bin/agent360\", line 11, in <module>", " sys.exit(main())", " File \"/usr/local/lib/python3.6/site-packages/agent360/agent360.py\", line 786, in main", " print(info())", " File \"/usr/local/lib/python3.6/site-packages/agent360/agent360.py\", line 93, in info", " plugins_enabled = agent._get_plugins(state='enabled')", " File \"/usr/local/lib/python3.6/site-packages/agent360/agent360.py\", line 668, in _get_plugins", " if self.config.getboolean(plugin_name, 'enabled'):", " File \"/usr/lib64/python3.6/configparser.py\", line 829, in getboolean", " raw=raw, vars=vars, fallback=fallback, **kwargs)", " File \"/usr/lib64/python3.6/configparser.py\", line 809, in _get_conv", " **kwargs)", " File \"/usr/lib64/python3.6/configparser.py\", line 803, in _get", " return conv(self.get(section, option, **kwargs))", " File \"/usr/lib64/python3.6/configparser.py\", line 1155, in _convert_to_boolean", " raise ValueError('Not a boolean: %s' % value)", "ValueError: Not a boolean: true #86400", "Traceback (most recent call last):", " File \"/usr/local/bin/agent360\", line 11, in <module>", " sys.exit(main())", " File \"/usr/local/lib/python3.6/site-packages/agent360/agent360.py\", line 786, in main", " print(info())", " File \"/usr/local/lib/python3.6/site-packages/agent360/agent360.py\", line 93, in info", " plugins_enabled = agent._get_plugins(state='enabled')", " File \"/usr/local/lib/python3.6/site-packages/agent360/agent360.py\", line 668, in _get_plugins", " if self.config.getboolean(plugin_name, 'enabled'):", " File \"/usr/lib64/python3.6/configparser.py\", line 829, in getboolean", " raw=raw, vars=vars, fallback=fallback, **kwargs)", " File \"/usr/lib64/python3.6/configparser.py\", line 809, in _get_conv", " **kwargs)", " File \"/usr/lib64/python3.6/configparser.py\", line 803, in _get", " return conv(self.get(section, option, **kwargs))", " File \"/usr/lib64/python3.6/configparser.py\", line 1155, in _convert_to_boolean", " raise ValueError('Not a boolean: %s' % value)", "ValueError: Not a boolean: true #86400", " % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file ", "Warning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py: ", "Warning: No such file or directory", "", "100 15703 100 15703 0 0 383k 0 --:--:-- --:--:-- --:--:-- 374k", "curl: (23) Failed writing body (0 != 15703)", "Redirecting to /bin/systemctl status kcare.service", "Redirecting to /bin/systemctl restart agent360.service" ] |
| stdout |
provider_metrics: MISSING – installing
Conf already added, so this is an upgrade
provider_metrics:
{
"firewall_up": 1,
"http_response_code": 200,
"http_response_time_ms": 8.719,
"imunify360_and_fail2ban": 1,
"imunify360_license": 2,
"imunify360_services": 0,
"imunify360_underlicensed": 0,
"iptables_entries": 101,
"kcare_status": 1,
"litespeed_nginx_parallel": 0,
"litespeed_running_ok": 1,
"monitoring360_ip_dropped": 0,
"mysql_free_connections": 197,
"mysql_iptables_drop": 1,
"mysql_response_time_ms": 4.670143127441406,
"oom_kills_since_reboot": 0,
"queue_size": 0,
"ram_upgrade_required": 0,
"recent_oom_kills": 0,
"smtp_response_time_ms": 35.414934158325195,
"ssh_port_checksum_ok": 1,
"time_sync_enabled": 1
}
fpm_errors: OK
apache_errors: OK
process_runtimes: OK
ram_per_user: OK
cpu_per_user: OK
|
| stdout_lines |
[ "provider_metrics: MISSING \u2013 installing", "Conf already added, so this is an upgrade", "provider_metrics:", "{", " \"firewall_up\": 1,", " \"http_response_code\": 200,", " \"http_response_time_ms\": 8.719,", " \"imunify360_and_fail2ban\": 1,", " \"imunify360_license\": 2,", " \"imunify360_services\": 0,", " \"imunify360_underlicensed\": 0,", " \"iptables_entries\": 101,", " \"kcare_status\": 1,", " \"litespeed_nginx_parallel\": 0,", " \"litespeed_running_ok\": 1,", " \"monitoring360_ip_dropped\": 0,", " \"mysql_free_connections\": 197,", " \"mysql_iptables_drop\": 1,", " \"mysql_response_time_ms\": 4.670143127441406,", " \"oom_kills_since_reboot\": 0,", " \"queue_size\": 0,", " \"ram_upgrade_required\": 0,", " \"recent_oom_kills\": 0,", " \"smtp_response_time_ms\": 35.414934158325195,", " \"ssh_port_checksum_ok\": 1,", " \"time_sync_enabled\": 1", "}", "fpm_errors: OK", "apache_errors: OK", "process_runtimes: OK", "ram_per_user: OK", "cpu_per_user: OK" ] |