Hi Ben,
I really like the enhanced statistics you generate. They are much more
helpful than the ones I'm currently collecting. I'll look into extending
my bash script accordingly, unless you use the things you like from mine
to make yours the perfect combination of the two ;-)
By the way, I think we're already using your mySQL script as well.
Thanks for your efforts!
Feel free to mirror the script, thanks for asking. I would appreciate it
if you could put a link either directly to the script or to our open
source page (http://www.hitflip.de/opensource.html). This way we could
simply update the script.
Cheers,
Jan
Ben Hartshorne wrote:
Hi Jan,
Thank you for your memcached script! Though I think yours is better
written (that open bash socket thing is awesome!), I also wrote one that
submits slightly different metrics. Instead of submitting total gets
and misses, it maintains a state file and submits gets/sec sets/sec,
hits/sec, and a hit%. I find the hit% illustrative, as it helps to
indicate when you are using your cache most effectively. One thing that
bugs be about memcached is that it seems the number of items does not
decrement when an item expires, so the number of items (and the number
of bytes used) simply increases until its storage limit is reached,
regardless of whether those items are current.
Jan, if you would like to incorporate some of those metrics into your
script, mine resides at http://ben.hartshorne.net/ganglia/ along with
several other gmetric scripts. I think I might rewrite some of them
soon though to take advantage of that cool bash socket thing. I like
your case statement much better than my array assignment. The array
assignment breaks dependent on the memcached version (between 1.1.12 and
1.1.13 they added a parameter to the output of the stats command).
-ben
p.s. may I mirror your mcd script on my site as well?
On Thu, Nov 16, 2006 at 12:09:02PM +0100, Jan Miczaika wrote:
Hello,
we use memcached as a cache for our website and it works extremely well.
I would like to contribute our memcached monitoring script to the
Gmetric repository. As the repository seems to be down here it is:
http://www.hitflip.de/opensource/get_memcached_stats.sh
Hope someone finds it useful.
Cheers
Jan
--
Jan Miczaika
Geschäftsführer
Hitflip Media Trading GmbH
http://www.hitflip.de - jetzt neu: http://www.hitflip.at
Tel. 0221-272407-27
Fax. 0221-272407-22
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general
--
Geschäftsführer
Hitflip Media Trading GmbH
www.hitflip.de - jetzt neu: www.hitflip.at
Tel. 0221-272407-27
Fax. 0221-272407-22