Please sign in to comment.
pygments.rb gem and blog post
- Loading branch information...
Showing with 37 additions and 12 deletions.
- +2 −1 Gemfile
- +18 −10 Gemfile.lock
- +1 −1 Rules
- +16 −0 content/posts/2012-11-13-munin-and-postgresql-monitoring.md
|@@ -0,0 +1,16 @@|
|+title: "Munin and PostgreSQL monitoring"|
|+created_at: 2012-11-13 20:46:01 +0100|
|+I ran into a little hiccup when trying to configure [Munin](http://munin-monitoring.org/) to monitor PostgreSQL. After linking the 'postgres_' plugins and restarting munin-node, no Postgres stats were appearing and I was seeing error messages in the munin-node.log like this:|
|+ Service 'postgres_size_ALL' exited with status 1/0|
|+ Service 'postgres_locks_ALL' exited with status 1/0|
|+ Service 'postgres_cache_ALL' exited with status 1/0|
|+Not very helpful but, it turns out, easy to fix. The Munin Postgres plugins use Perl and the `DBD::Pg` module to talk to your PostgreSQL database so if either of these are missing, you'll get these errors.|
|+The solution is to install the `DBD::Pg` module from CPAN. If you're using Chef, add the `perl` cookbook and then run `cpan_module 'DBD::Pg` in a recipe somewhere.|