Ask Your Question
0

Simple way to monitor Puppet master?

asked 2013-09-27 18:33:50 -0500

ramindk gravatar image

Is there a simple way to monitor the Puppet master that does a simple transaction against the master? Ideally the request would go beyond just confirming that the port is up.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-27 18:40:32 -0500

ramindk gravatar image

This simplest method I've found to use the REST API to query status.

You'll need to make sure you machines can access /status which I don't think is default.

auth.conf

# allow all nodes to query status
path /status/no_key
method find
allow *

In order to test you can use this curl statement.

 sudo curl  --cacert /var/lib/puppet/ssl/certs/ca.pem --cert /var/lib/puppet/ssl/certs/`facter fqdn`.pem --key /var/lib/puppet/ssl/private_keys/`facter fqdn`.pem -H 'Accept: pson' https://puppet.example.com:8140/production/status/no_key

Which should return

{"is_alive":true ...
(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

2 followers

Stats

Asked: 2013-09-27 18:33:50 -0500

Seen: 807 times

Last updated: Sep 27 '13