NAME
Nagios::Plugins::Memcached - Nagios plugin to observe memcached.
VERSION
version 0.01
SYNOPSIS
use Nagios::Plugins::Memcached;
my $np = Nagios::Plugins::Memcached->new;
$np->run;
DESCRIPTION
Please setup your nagios config.
### check response time(msec) for memcached
define command {
command_name check_memcached_response
command_line /usr/bin/check_memcached -H $HOSTADDRESS$ -w 3 -c 5
}
### check cache size ratio(bytes/limit_maxbytes[%]) for memcached
define command {
command_name check_memcached_size
command_line /usr/bin/check_memcached -H $HOSTADDRESS$ --size-warning 60 --size-critical 80
}
### check cache hit ratio(get_hits/cmd_get[%]) for memcached
define command {
command_name check_memcached_hit
command_line /usr/bin/check_memcached -H $HOSTADDRESS$ --hit-warning 40 --size-critical 20
}
This plugin can execute with all threshold options together.
METHODS
new()
create instance.
setup()
setup this plugin.
setup_args()
setup arguments.
run()
run checks.
check_time($cache, $stats, $args)
check execute times of stats.
check_size($cache, $stats, $args)
check using bytes ratio.
check_hit($cache, $stats, $args)
check cache hit ratio.
detect_runmodes
AUTHOR
Toru Yamaguchi, <zigorou@cpan.org>
BUGS
Please report any bugs or feature requests to bug-nagios-plugins-memcached@rt.cpan.org
, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.