The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

derived - run command periodically, calculate rate and check from network

SYNOPSIS

  $ cat CmdsFile
  slowqueries: mysql -NB -e 'show global status like "Slow_queries%"'

  $ derived --port=12306 CmdsFile

  or

  $ derived -MMemcahced,port=12306 CmdsFile

  $ telnet localhost 12306
  get slowqueris
  VALUE slowqueris 0 3
  0.2  # slow queries/sec

DESCRIPTION

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.

ARGUMENTS

-h, --help

Display help message

-i

Interval seconds for running commands. Default 10.

-M

Plugin.

for example

  -MMemcahced,port=11211,host=127.0.0.1

loading plugin with port and host arguments.

If no plugin are loaded, Memcached plugin will be loaded by default

--port

port number to bind. Memcached plugin uses this. default port number is 12306

--host

hostname or ipaddress to bind. Memcached plugin uses this.

CmdsFile

a file that list commands. required

COMMAND FILE

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

NOTICE

IF there is no previous data to calculate rate, the server returns "0E0"

SEE ALSO

<App::derived::Plugin::Memcached>, <App::derived::Plugin> for writing plugins

AUTHOR

Masahiro Nagano <kazeburo@gmail.com>

LICENSE

Copyright (C) Masahiro Nagano

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.