Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed puppetmaster in ubuntu 10 and i have installed puppet in all my clients. I have joined all my puppet clients with puppet master. Tell me how to list all the running services of my client (like nagios,apache,mysql etc) in my puppet master console? or simply how to monitor services running in client using master master console? thanks in advance

share|improve this question
Using puppet master you cannot check running services on all clients, better to use clusterssh its very use full. – PKumar Sep 18 '15 at 14:02

I suggest you read the Documentation for Puppet it offers lots of different features. And I would probably sling this on server fault instead on ask Ubuntu, might get a little better response on there.

You will need to learn the syntax for Puppet

service { "apache2":
  ensure => "running",

Above is an example of code to check that the apache2 service is running. Its really worth reading through the docs though because they are very useful. Also below is a link to a puppet cookbook of little snippets of code. Again very good and can be used to hack together your own stuff.

Thanks William

share|improve this answer
hi thanks:) already I have seen through these. The point is where do I declare the services code snippet in my master. I mean which config file am I suppose to edit/include. (IAM NEW TO PUPPET) thanks in adv. – iam Mar 7 '13 at 9:50

Puppet's primary focus is service provisioning. A puppet node (running the puppet agent) is hooked up to a puppet master, and receives a catalogue of resources and services that should be made available on the puppet node. It does not provide an out of the box facility to monitor all running processes on puppet nodes.

That said, once each node has finished running through the catalogue of resources provided by the puppet master, it logs the state of each resource (including any errors), and posts this log back to the puppet master for later analysis. A separate puppet application (the Puppet Dashboard) can analyse these logs to produce a web-accessible console of the state of your entire puppet-managed environment, which is very useful. That may give you an approximation of the functionality you are asking about.

This article on installing Puppet Dashboard should get you going.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.