Check php-version
Overview
This plugin lets you track if PHP is End-of-Life (EOL). To compare against the current/installed version of PHP, the check has to run on the PHP server itself.
Fact Sheet
Check Plugin Download |
https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/php-version |
Check Interval Recommendation |
Once a day |
Can be called without parameters |
Yes |
Compiled for |
Linux |
Uses SQLite DBs |
|
Help
usage: php-version [-h] [-V] [--always-ok]
Tracks if PHP is EOL.
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--always-ok Always returns OK.
Usage Examples
./php-version
Output:
PHP v7.4.33 (EOL 2022-11-28) [WARNING]
States
If wanted, always returns OK,
else returns WARN if Software is EOL
Perfdata / Metrics
Name |
Type |
Description |
---|---|---|
php-version |
Number |
Installed PHP version as float. „7.4.33“ becomes „7.433“. |
Credits, License
Authors: Linuxfabrik GmbH, Zurich
License: The Unlicense, see LICENSE file.