From: Greg C. <gc...@sg...> - 2004-05-26 16:47:54
|
The enclosed plugin performs a bunch of "httping" commands and records the response times, with or without a proxy. Enjoy. 1. Drop or symlink "mhttping" into plugins dir 2. Edit mhttping to tell it where the "data" text file and "results" writeable directory are. 3. Create the file "data" with a list of things to do... # Format must include name= url= proxy= in that order (spaces or tabs ok) # Use proxy=none for direct name=google_mtv1 url=http://www.google.com proxy=proxy1.mydomain.com:8080 name=yahoo_mtv1 url=http://www.yahoo.com proxy=proxy1.mydomain.com:8080 name=www_direct url=http://www.mydomain.com proxy=none 4. Add to crontab to make "mhttping run" execute every 5 minutes, offset from munin time a bit. This can be any user who can run "httping" and write to the "results" dir. 2-59/5 * * * * /home/gconnor/mhttping/mhttping run > /home/gconnor/mhttping/log 2>&1 5. Verify that "mhttping run" works, from command line and from cron. Then verify that "mtthping config" and "mhttping fetch" work. 6. Restart munin-node. -- Greg Connor <gc...@sg...> |