CPU

72 views
Skip to first unread message

Vinu Vajravel

unread,
Nov 13, 2018, 6:43:57 AM11/13/18
to Ansible Project
HI Ansible Experts , 

Can anyone let me know how can i monitor CPU and memory usage using a play books please ? 

THanks
VInu 

Brad Van Orden

unread,
Nov 13, 2018, 7:26:02 AM11/13/18
to Ansible Project
Are you sure you want to use ansible for that task?  It sounds more like something for a monitoring tool such as nagios, oneview, big brother, etc.

Thad Guidry

unread,
Nov 13, 2018, 7:52:21 AM11/13/18
to ansible...@googlegroups.com
I'd highly recommend https://sensu.io/ which is open source and exudes DevOps best practices.



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fe4c538a-2da8-4747-915d-240e076ed8b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vinu Vajravel

unread,
Nov 13, 2018, 8:37:12 AM11/13/18
to ansible...@googlegroups.com
do you know any perl or shell scripts or any plugins to interface with Nagios to monitor CPU/memory ?

Thanks
Vinu 

--

Jonathan Lozada De La Matta

unread,
Nov 13, 2018, 8:57:02 AM11/13/18
to ansible...@googlegroups.com
if you go to nagios page then you can find all this information.


For more options, visit https://groups.google.com/d/optout.


--

Jonathan lozada de la matta

AUTOMATION PRACTICE



 

vivek vijayan

unread,
Nov 13, 2018, 9:49:12 AM11/13/18
to ansible...@googlegroups.com
Icinga will be a good option for you. We are using it for our servers cpu and load monitoring which is an open source

Brian Coca

unread,
Nov 13, 2018, 10:27:09 AM11/13/18
to ansible...@googlegroups.com
nagios/naemon, zabbix, sar, etc ...many good ways to do this, but if you REALLY want to do shit in Ansible (I don't recommend):

-  name: get RAM
   shell: free 
   register: memory

- name: cpu info
   shell top -n 1
   register: cpu



--
----------
Brian Coca

ameya agashe

unread,
Nov 13, 2018, 6:49:06 PM11/13/18
to ansible...@googlegroups.com
Ansible is not a monitoring tool. You need a monitoring tool. There are many excellent tools out there. Respectfully, please don't use Nagios!

Ameya

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

stifan kristi

unread,
Nov 13, 2018, 7:58:19 PM11/13/18
to Ansible Project
pls check:
there's a lot of tools to use for monitoring system, and ansible is not for monitoring, perhaps you can combine it, ansible just used for manage it's state ensure that the monitoring service is running

best regards,
stifan

stifan kristi

unread,
Nov 17, 2018, 6:07:19 AM11/17/18
to Ansible Project
Reply all
Reply to author
Forward
0 new messages