5.2.3.2. Automated Troubleshooting

In this section we can find automated checks that allow us to know the state in which an environment is and to be able to identify the errors it contains.

We also have the option, by activating a flag, to be able to automatically fix all possible errors.

Important

Before executing the checks it is necessary to configure the inventory.yml and the ansible.cfg.

These automated checks can be find in the all_checks.yml file of the following path:

cd /usr/share/opennac/ansible/

By executing the following command without tags, it returns a full json with all the information.

ansible-playbook -i inventory all_checks.yml

By executing the aforementioned playbook with tags, it returns a json with the information corresponding to the tag.

Here is the index with the different available checks and tags: