derived - run command periodically, calculate rate and check from network
$ cat CmdsFile slowqueries: mysql -NB -e 'show global status like "Slow_queries%"' $ derived -MMemcahced,port=12306 CmdsFile $ telnet localhost 12306 get slowqueris VALUE slowqueris 0 3 0.2 # slow queries/sec
derived runs command periodically and capture integer value. And calculate per-second rate. You can retrieve these values from integrated memcached-protocol server or pluggable workers.
You can monitoring the variation of metrics through this daemon.
Display help message
Interval seconds for running commands. Default 10.
Plugin. Requires one or more Plugin load.
loading plugin with port and host arguments.
a file that list commands
A command file should contain both a name for the process and the command used to run it.
slowquery: mysql -NB -e 'show global status like "Slow_queries%"' lines: wc -l /path/to/file
IF there is no previous data to calculate rate, the server returns "0E0"
Masahiro Nagano <firstname.lastname@example.org>
Copyright (C) Masahiro Nagano
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.