# Monit module doesn't seem to work as expected with ubuntu 16.04

**URL:** <https://forum.ansible.com/t/monit-module-doesnt-seem-to-work-as-expected-with-ubuntu-16-04/25339>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 26, 2017, 7:43pm UTC](https://forum.ansible.com/t/monit-module-doesnt-seem-to-work-as-expected-with-ubuntu-16-04/25339 "2017-08-26T19:43:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naween](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@naween](https://forum.ansible.com/u/naween)\
**Post date:** [August 26, 2017, 7:43pm UTC](https://forum.ansible.com/t/monit-module-doesnt-seem-to-work-as-expected-with-ubuntu-16-04/25339/1 "2017-08-26T19:43:15Z")

</div>

Hi,

The [monit module v2.1](https://github.com/ansible/ansible-modules-extras/blob/devel/monitoring/monit.py) seems to fail when I try to start/stop a process with it. It works however when I give the state as monitored/unmonitored. This is happening with ubuntu 16.04, but works fine with 14.04.

Any suggestions ?

Regards,  
Naween

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 29, 2017, 9:37am UTC](https://forum.ansible.com/t/monit-module-doesnt-seem-to-work-as-expected-with-ubuntu-16-04/25339/2 "2017-08-29T09:37:56Z")

</div>

Does 16.04 come with a different version of monit than 14.04?

Its possible the monit module might need some code changes to keep up with later versions of monit I suppose (I am just guessing here).

Jon

---

<div class="post-metadata">

**Author:** ![naween](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@naween](https://forum.ansible.com/u/naween)\
**Post date:** [August 29, 2017, 11:54am UTC](https://forum.ansible.com/t/monit-module-doesnt-seem-to-work-as-expected-with-ubuntu-16-04/25339/3 "2017-08-29T11:54:48Z")

</div>

Thanks for the input. I am installing monit 5.6 on both 14.04/16.04 versions. So version mismatch is not an issue.

Regards,  
Naween
