The Ansible setup module will give you facts about target systems including
memory usage, uptime,swap space, it would be fairly simple to extend this
with a custom fact to also grab the contents of /proc/loadavg

See
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/setup_module.html
or run '$ ansible-doc setup'

Reading between the lines though, it sounds like you have been tasked to
use ansible as an ersatz monitoring solution? Scheduling ansible runs
against a number of hosts to grab runtime stats might not be the most
efficient use case, you may want to investigate dedicated tooling like
Sensu, Nagios, Zabbix or similar.

On Fri, 23 Dec 2022 at 09:48, 'Shivakumar Venkataswamy' via Ansible Project
<[email protected]> wrote:

> Hi All,
>
> I'm looking for extract information like Load, memory usage, uptime,swap
> space from all linux servers in csv farmat. could please anyone suggest
> playbook for the same.
>
> Regards,
> Shivu
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bc9141d5-447e-4114-80b1-5a5b81f846bbn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/bc9141d5-447e-4114-80b1-5a5b81f846bbn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKtKohRwR%3Dq1fT-79sO1Yo%2B8nmuiJ_92wRmExYn6N127LhbX6A%40mail.gmail.com.

Reply via email to