Foreman / Puppet - CPU usage of the nodes

Hi all,

Is there any way to get the CPU usage of the nodes from the Foreman /
Puppet?
The company which I'm working for is uses the Foreman to manage hosts.
These hosts are allocated to various groups & departments in the company.
We would like to find which hosts are not used so that we can reallocate
them.

Thanks,

Royee Tager

You could write a custom fact that does what you want, which will then
be indexed in Foreman along with the rest of the facts that Puppet
sends up the wire.

That said, Foreman isn't really a monitoring solution, since it's only
going to get data every $puppet_interval (usually 30 minutes). That's
a bit slow for decent monitoring, so if you want accurate stats,
you'll want to look to something like Icinga or Zabbix.

HTH,
Greg

··· On 25 February 2014 10:09, Royee Tager wrote: > Hi all, > > Is there any way to get the CPU usage of the nodes from the Foreman / > Puppet? > The company which I'm working for is uses the Foreman to manage hosts. These > hosts are allocated to various groups & departments in the company. > We would like to find which hosts are not used so that we can reallocate > them.

I wrote a simple daemon that shows load of a host using
HTML5/JavaScript/websockets.

I currently do not have time to work on this, but I plan to extend it
and also write a foreman plugin for that. Any help in this regard is
welcome.

LZ

··· On Tue, Feb 25, 2014 at 02:09:31AM -0800, Royee Tager wrote: > Hi all, > > Is there any way to get the CPU usage of the nodes from the Foreman / > Puppet? > The company which I'm working for is uses the Foreman to manage hosts. > These hosts are allocated to various groups & departments in the company. > We would like to find which hosts are not used so that we can reallocate > them. > > Thanks, > > Royee Tager > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Use Foreman/Puppet to deploy Collectd and Graphite send the Collectd
metrics to Graphite.

Jobs a good 'un!

Jim :slight_smile:

··· On 25 February 2014 10:32, Greg Sutcliffe wrote:

On 25 February 2014 10:09, Royee Tager royeectu@gmail.com wrote:

Hi all,

Is there any way to get the CPU usage of the nodes from the Foreman /
Puppet?
The company which I’m working for is uses the Foreman to manage hosts.
These
hosts are allocated to various groups & departments in the company.
We would like to find which hosts are not used so that we can reallocate
them.

You could write a custom fact that does what you want, which will then
be indexed in Foreman along with the rest of the facts that Puppet
sends up the wire.

That said, Foreman isn’t really a monitoring solution, since it’s only
going to get data every $puppet_interval (usually 30 minutes). That’s
a bit slow for decent monitoring, so if you want accurate stats,
you’ll want to look to something like Icinga or Zabbix.

HTH,
Greg


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

> Use Foreman/Puppet to deploy Collectd and Graphite send the Collectd
> metrics to Graphite.
>
>
it would be fun to have a foreman plugin that display that data :slight_smile:

Ohad

··· On Tue, Feb 25, 2014 at 4:34 PM, James Bailey wrote:

Jobs a good 'un!

Jim :slight_smile:

On 25 February 2014 10:32, Greg Sutcliffe greg.sutcliffe@gmail.comwrote:

On 25 February 2014 10:09, Royee Tager royeectu@gmail.com wrote:

Hi all,

Is there any way to get the CPU usage of the nodes from the Foreman /
Puppet?
The company which I’m working for is uses the Foreman to manage hosts.
These
hosts are allocated to various groups & departments in the company.
We would like to find which hosts are not used so that we can reallocate
them.

You could write a custom fact that does what you want, which will then
be indexed in Foreman along with the rest of the facts that Puppet
sends up the wire.

That said, Foreman isn’t really a monitoring solution, since it’s only
going to get data every $puppet_interval (usually 30 minutes). That’s
a bit slow for decent monitoring, so if you want accurate stats,
you’ll want to look to something like Icinga or Zabbix.

HTH,
Greg


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

A plugin to embed graphite data in a Foreman host page or Foreman host
group page would be awesome.

Jim :slight_smile:

··· On 25 February 2014 14:46, Ohad Levy wrote:

On Tue, Feb 25, 2014 at 4:34 PM, James Bailey paradoxbound@gmail.comwrote:

Use Foreman/Puppet to deploy Collectd and Graphite send the Collectd
metrics to Graphite.

it would be fun to have a foreman plugin that display that data :slight_smile:

Ohad

Jobs a good 'un!

Jim :slight_smile:

On 25 February 2014 10:32, Greg Sutcliffe greg.sutcliffe@gmail.comwrote:

On 25 February 2014 10:09, Royee Tager royeectu@gmail.com wrote:

Hi all,

Is there any way to get the CPU usage of the nodes from the Foreman /
Puppet?
The company which I’m working for is uses the Foreman to manage hosts.
These
hosts are allocated to various groups & departments in the company.
We would like to find which hosts are not used so that we can
reallocate
them.

You could write a custom fact that does what you want, which will then
be indexed in Foreman along with the rest of the facts that Puppet
sends up the wire.

That said, Foreman isn’t really a monitoring solution, since it’s only
going to get data every $puppet_interval (usually 30 minutes). That’s
a bit slow for decent monitoring, so if you want accurate stats,
you’ll want to look to something like Icinga or Zabbix.

HTH,
Greg


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.