percona-monitoring-plugins
percona-monitoring-plugins copied to clipboard
Missing perl dependency
pmp-check-mysql-status
requires perl to show help:
$ docker run --rm anchorfree/percona-nagios-plugins /usr/lib64/nagios/plugins/pmp-check-mysql-status
Error: you must specify either -c or -w. Try --help.
$ docker run --rm anchorfree/percona-nagios-plugins /usr/lib64/nagios/plugins/pmp-check-mysql-status --help
/usr/lib64/nagios/plugins/pmp-check-mysql-status: line 47: perl: command not found
Just faced with this after putting tools into fresh centos based container. After installing perl it works:
$ docker run --rm anchorfree/percona-nagios-plugins /usr/lib64/nagios/plugins/pmp-check-mysql-status --help
Usage: pmp-check-mysql-status [OPTIONS]
Options:
-c CRIT Critical threshold.
--defaults-file FILE Only read mysql options from the given file.
Defaults to /etc/nagios/mysql.cnf if it exists.
-C COMPARE Comparison operator to apply to -c and -w.
Possible values: == != >= > < <=. Default >=.
-H HOST MySQL hostname.
-I INCR Make SHOW STATUS incremental over this delay.
-l USER MySQL username.
-L LOGIN-PATH Use login-path to access MySQL (with MySQL client 5.6).
-o OPERATOR The operator to apply to -x and -y.
-p PASS MySQL password.
-P PORT MySQL port.
-S SOCKET MySQL socket file.
-T TRANS Transformation to apply before comparing to -c and -w.
Possible values: pct str.
-w WARN Warning threshold.
-x VAR1 Required first status or configuration variable.
-y VAR2 Optional second status or configuration variable.
--help Print help and exit.
--version Print version and exit.
Options must be given as --option value, not --option=value or -Ovalue.
Use perldoc to read embedded documentation with more details.