Ask Your Question

How can i retrieve what nodes are failed/unresponsive/change via Puppet API?

asked 2013-02-21 16:44:12 -0600

jaisol gravatar image

updated 2013-02-27 08:53:39 -0600

llowder gravatar image

I'm able to use the REST API to get some information from puppetmaster/puppetdb such as resources,facts,metrics via CURL.

I know i can get the nodes information through puppet dashboard however I really need another way to get what nodes nodes are failed/unresponsive/change from the puppetmaster/puppetdb via any API/CURL.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-27 13:21:45 -0600

llowder gravatar image

If you are using the latest version of PuppetDB there is available a new, experimental API that will allow you to pull reports for a given node.

This is still a new feature - future releases will make it much easier to retrieve the information you are looking for.

Alternately, if you use the 'store' option for reports, you can have a script that will parse the reports the reports as they come in and act on them if they spot errors/failures - using this method has the option of being able to build reports off the historical reports.

Personally, to ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-02-21 16:44:12 -0600

Seen: 1,452 times

Last updated: Feb 27 '13