Listing Unresponsive nodes

259 views
Skip to first unread message

vaibhav gupta

unread,
Jan 27, 2014, 8:44:10 AM1/27/14
to puppet...@googlegroups.com
Hi All,

Is there a way to list unresponsive nodes using a RAKE Task? 

Just to give the background for the need of such task: In our organization we are having multiple instances of puppet master to manage different set of environments (like DEV, QA, UAT, PROD). Just to verify the configurations, puppet users connect QA host (agent) to puppet master configured to serve requests to DEV machines and eventually results in uploading the reports to DEV master. Once the verification is completed, those nodes gets listed on the Dashboard in Unresponsive Section.

I am looking out for a way to delete nodes which are in unresponsive state through a cron job and thus need to check for the status of Node using some RAKE Task. 

Regards
Vaibhav Gupta 

kaustubh chaudhari

unread,
Jan 27, 2014, 9:12:44 AM1/27/14
to puppet...@googlegroups.com
HI Vaibhav,

I use the below procedure. Hope this helps you!

==
Use the below procedure to delete the nodes permanantly!

On Puppet Master Server

# puppet node clean <node_certname>
# puppet node deactivate <node_certname>

ON Dashboard server
# cd /usr/share/puppet-dashboard
# rake RAILS_ENV=production node:del name=node_certname
==

-Kaustubh

Deepak Giridharagopal

unread,
Jan 27, 2014, 11:05:54 AM1/27/14
to puppet...@googlegroups.com
On Mon, Jan 27, 2014 at 7:12 AM, kaustubh chaudhari <kaus...@gmail.com> wrote:
HI Vaibhav,

I use the below procedure. Hope this helps you!

==
Use the below procedure to delete the nodes permanantly!

On Puppet Master Server

# puppet node clean <node_certname>
# puppet node deactivate <node_certname>

It's worth mentioning that in addition to "puppet node deactivate", which explicitly asks for the given node to be removed, there are some options available that will automatically deactivate nodes after a period of inactivity:


deepak
 

ON Dashboard server
# cd /usr/share/puppet-dashboard
# rake RAILS_ENV=production node:del name=node_certname
==

-Kaustubh


On Monday, January 27, 2014 8:44:10 AM UTC-5, vaibhav gupta wrote:
Hi All,

Is there a way to list unresponsive nodes using a RAKE Task? 

Just to give the background for the need of such task: In our organization we are having multiple instances of puppet master to manage different set of environments (like DEV, QA, UAT, PROD). Just to verify the configurations, puppet users connect QA host (agent) to puppet master configured to serve requests to DEV machines and eventually results in uploading the reports to DEV master. Once the verification is completed, those nodes gets listed on the Dashboard in Unresponsive Section.

I am looking out for a way to delete nodes which are in unresponsive state through a cron job and thus need to check for the status of Node using some RAKE Task. 

Regards
Vaibhav Gupta 

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a7d612fa-3dc5-4965-a56a-8024d349f3d1%40googlegroups.com.

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

Reply all
Reply to author
Forward
0 new messages