5.1.3.2.7. VPNGW checks
In this section we can find automated checks that allow us to know the state of the VPNGW node 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.1.3.2.7.1. Checks
Ensure that all the vpngw are imported correctly
5.1.3.2.7.3. Data Structure
"vpngw": {
"{{ node_id }}": {
"hostname": "{{ node_hostname }}",
"ip": "{{ node_ip }}",
"imported": true
}
}
The data structure shown is explained below:
node_id: corresponds to the hostname of the node configured as vpngw.
hostname: node hostname.
ip: node IP address.
imported: whether it has been imported (true) or not (false).
5.1.3.2.7.4. Example
Command:
ansible-playbook -i inventory all_checks.yml --tags "vpngw"
Output:
"vpngw": {
"02-proxy-02": {
"hostname": "02-proxy-02",
"ip": "10.10.39.102",
"imported": true
}
}