- Problems
- Munin is a pain to debug remotely -- on prod -- when doing custom "loaning" graphs
- Varnish gets in the way
- (might not work, test yourself) fast-cgi doesn't work with new Munin 2.0 dynamic graph generation very well, just comment it out in the Apache config
- These issues combined leads to a complete nightmare of caching and having to wait for graphs to be regenerated so you can see your changes
- Troubleshooting
- Try this link for perm checks
- IMPORTANT: ust turn this on in monit.conf manually, since debian turns it off, and who knows who else
- graph_strategy cgi
- Solution
- Grab /var/lib/munin from production server
- Install Munin 2.x or greater on your local box
- Comment out the Munin files under /etc/cron* whatever/whereever, so your server doesn't try to update any of the files under /var/lib/munin
- Move your local copy of /var/lib/munin aside
- Move the production version of /var/lib/munin into place on your local system
- Copy perms of your original /var/lib/munin to new one
- Grab the prod server version of /etc/munin/munin.conf
- Move your local copy of /etc/munin/munin.conf aside, rename something you'll remember
- Move prod server version /etc/munin/munin.conf in place on your local box
- Use "munin-html" to regenerate html pages as you make changes to your munin definitions in /etc/munin/munin.conf
- basically these commands, but, for details, see http://blog.loftninjas.org/2010/04/08/an-evening-with-munin-graph-aggregation/
- sudo su - munin -s /bin/bash
- /usr/share/munin/munin-html --debug
- might work / might not
- Hit munin locally through your web browser; if you're lucky, all the prod info/graphs appear normally
- Now, you can update /etc/munin/munin.conf as you like and graph changes and errors will show up instantly
- Tweak URL to hit graphs you know the name of but munin-html failed to find for you
- Long-term
- Refresh the data from prod every 48 to 72 hours so your graph data doesn't fall off the chart
- Since your local box is not updating data, all rrd data will be blank from the time your grab it from prod's /var/lib/munin
Monday, 3 September 2012
Debugging Munin loaning graphs locally
Subscribe to:
Post Comments (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
kubectl --cert=/tmp/tls.crt --key=/tmp/tls.key create secret tls tls-wc-ingress
-
apt-get install exim4 dpkg-reconfigure exim4-config Select: internet site; mail is sent and received directly using SMTP IP-addresses...
-
NOTE: unbound is now available via epel repo on Amazon Linux install requirements yum groupinstall "Development Tools" yum i...
No comments:
Post a Comment
Note: only a member of this blog may post a comment.