mirror of
https://github.com/oneoffdallas/pfsense-nagios-checks.git
synced 2024-11-25 03:43:43 +01:00
Update check_pf_version
minor code cleanup and added comments
This commit is contained in:
parent
1b094f3c47
commit
b4f9d77bd5
@ -1,6 +1,13 @@
|
|||||||
#!/usr/local/bin/php -f
|
#!/usr/local/bin/php -f
|
||||||
<?
|
<?
|
||||||
|
|
||||||
|
# This check pulls the version from the website and compares it
|
||||||
|
# to the installed version.
|
||||||
|
# Many thanks to Atadilo for fixing the code and simplifying it.
|
||||||
|
|
||||||
|
# Created 15 Dec 2017
|
||||||
|
# Modified 17 Oct 2019
|
||||||
|
|
||||||
require_once("pkg-utils.inc");
|
require_once("pkg-utils.inc");
|
||||||
$system_pkg_version = get_system_pkg_version();
|
$system_pkg_version = get_system_pkg_version();
|
||||||
|
|
||||||
@ -16,4 +23,6 @@ $additional_info .= "Built on: ".$current_installed_buildtime."\n";
|
|||||||
$additional_info .= "Remote version: ".$system_pkg_version['version']."\n";
|
$additional_info .= "Remote version: ".$system_pkg_version['version']."\n";
|
||||||
|
|
||||||
echo $additional_info;
|
echo $additional_info;
|
||||||
exit ($exitcode);
|
exit ($exitcode);
|
||||||
|
|
||||||
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user