PHP opcache monitoring plugin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mikanoshi 1952751999 Fix plugin name 3 years ago
LICENSE Initial commit 3 years ago
README.html Initial commit 3 years ago
check_phpopcache Fix plugin name 3 years ago
opcache.php Initial commit 3 years ago

README.html

PHP opcache monitoring plugin


Nagios output: checks opcache usage and applies warning and critical levels to it.
Influx Line Portocol: collects percentages of opcache usage, hits and misses.

Requirements:
- PHP interpreter
- PHP script (opcache.php) on a webserver where opcache is enabled

Example php.ini

[opcache]
opcache.enable = 1
opcache.enable_cli = 0

Plugin parameters

check_phpopcache -U <full URL to opcache.php> [-w 80] [-c 90] [-i] [-m measurement]
Optional parameters
	-w	Warning level for Nagios format
	-c	Critical level for Nagios format
	-i	Influx Line Protocol output format instead of Nagios
	-m	Measurement name ("opcache" by default)
Example: check_phpopcache -U http://domain.com/opcache.php -i