I am deploying munin to monitor my production ubuntu aws ec2 instances which is running on nginx. Now I wanna deploy munin-node in the production system and deploy munin-master in the another aws ec2 ubuntu instance. Most of the blog speaks about configuring munin with apache2 web server but not with nginx
Nginx – configuring munin-node for nginx
monitoringmuninnginxUbuntu
Related Solutions
Did you restart munin-node after putting the memcached plugins in the plugin directory? Are any of them listed if you run 'list' when connected with telnet?
Any of the memcached plugins I've seen need the port and ip included in the name of the plugin, like the if_ scripts, where there's just symlinks into /etc/munin/plugins like:
# ls /etc/munin/plugins/memcached_bytes_127_0_0_1_11211
lrwxrwxrwx 1 root root 39 2010-02-01 05:56 /etc/munin/plugins/memcached_bytes_127_0_0_1_11211 -> /usr/local/share/munin/memcached_bytes_
Finally I got it working. Munin is not that bad, all you need is to spend a couple of nights with it.
I misunderstood the documentation, you need not to mention hostname. Plugin name should be exactly same as on munin nodes. Also the same plugin should exist on Munin-master with __.
So, in /etc/munin/plugins now symblinks looks like:
postgres_checkpoints__ -> /usr/share/munin/plugins/postgres_checkpoints
And here is the new configuration, note the plugin-name after ":" doesn't have hostname in it:
postgres_checkpoints_total.update no pg_checkpoints.label Graph label postgres_checkpoints_total.graph yes postgres_checkpoints_total.graph_args --base 1000 -l 0 postgres_checkpoints_total.cdef 0 postgres_checkpoints_total.graph_category PG Total Checkpoints postgres_checkpoints_total.graph_title Aggregated checkpoints postgres_checkpoints_total.graph_vlabel Total Checkpoints postgres_checkpoints_total.checkpoints_req_total.label Total Req checkpoints postgres_checkpoints_total.checkpoints_timed_total.label Total Timed checkpoints postgres_checkpoints_total.graph_order checkpoints_req_total checkpoints_timed postgres_checkpoints_total.checkpoints_req_total.sum \ <internal_ip>.us-est-1.compute.internal:postgres_checkpoints.checkpoints_req \ <internal_ip>.us-west-1.compute.internal:postgres_checkpoints.checkpoints_req \ <internal_ip>.us-west-1.compute.internal:postgres_checkpoints.checkpoints_req postgres_checkpoints_total.checkpoints_timed_total.sum \ <internal_ip>.us-west-.compute.internal:postgres_checkpoints.checkpoints_timed \ <internal_ip>.us-west-1.compute.internal:postgres_checkpoints.checkpoints_timed \ <internal_ip>.us-west-1.compute.internal:postgres_checkpoints.checkpoints_timed
Also, please note that now in the above configuration I am aggregating 2 functions.
Best Answer
Here's a step-by-step tutorial how to set it up on ec2 with nginx only: http://littlepea12.tumblr.com/post/45911132737/munin-setup-for-monitoring-django-on-ec2-instance-with