5.2.3.2.5. Proxy Radius checks
In this section we can find automated checks that allow us to know the state of the Proxy Radius of an environment and to be able to identify the errors related to them.
These automated checks can be find in the all_checks.yml
file of the following path:
cd /usr/share/opennac/ansible/
The following points detail the different checks that ansible performs in an automated way as well as the tags available when executing them.
5.2.3.2.5.1. Checks
Ensure that the workers in proxy radius are configured correctly
5.2.3.2.5.3. Data Structure
"proxy_radius": {
"{{ node_id }}": {
"hostname": "{{ node_hostname }}",
"ip": "{{ node_ip }}",
"error": {},
"ok": {
"{{ node_id }}": "{{ node_ip }}"
}
}
}
The data structure shown is explained below:
node_id: corresponds to the hostname of the node and contains a list of the proxies and inside there are the workers that are configured ok and those that are not.
hostname: node hostname.
ip: node IP address.
5.2.3.2.5.4. Example
Command:
ansible-playbook -i inventory all_checks.yml --tags "proxy_radius"
Output:
"proxy_radius": {
"02-proxy-02": {
"error": {},
"hostname": "02-proxy-02",
"ip": "10.10.39.102",
"ok": {
"02-worker-03": "10.10.39.103"
}
}
}