# Using Nagios module from ansible-galaxy in AWX

**URL:** <https://forum.ansible.com/t/using-nagios-module-from-ansible-galaxy-in-awx/36048>\
**Category:** AWX Project\
**Tags:** awx, galaxy-ng\
**Created:** [November 30, 2021, 8:11am UTC](https://forum.ansible.com/t/using-nagios-module-from-ansible-galaxy-in-awx/36048 "2021-11-30T08:11:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tariq\_Ghaffar](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@Tariq\_Ghaffar](https://forum.ansible.com/u/Tariq_Ghaffar)\
**Post date:** [November 30, 2021, 8:11am UTC](https://forum.ansible.com/t/using-nagios-module-from-ansible-galaxy-in-awx/36048/1 "2021-11-30T08:11:26Z")

</div>

Hello everyone,

I am trying to use Nagios module available in ‘community.general’ via ansible-galaxy. The playbook is being run as ‘Template’ in AWX. Nagios is installed and configured on few hosts but when I run the playbook to enable / disable alerts on those hosts I get this error:

“msg”: “unable to locate nagios.cfg”

If I run same file on Ansible Tower there is no error and ansible / playbook is able to enable/disable alerts.

Please advise.

Playbook using nagios module:

> **(attachments)**
>
> ![Error-nagios.cfg.PNG](https://us1.discourse-cdn.com/ansible/original/2X/0/03336c368e1f53c56086e1d8fa0a8fa940e79cc0.png)
