Skip to content
Snippets Groups Projects
Commit eecbbc1c authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update appmonitor check:

- tagging
- ssl cert check
parent c7113476
No related branches found
No related tags found
1 merge request!49update appmonitor check:
......@@ -21,6 +21,12 @@ $oMonitor = new appmonitor();
// $oMonitor->addTag('cms');
// $oMonitor->addTag('production');
$oMonitor->setWebsite('MFA Server');
// $oMonitor->setTTL(300);
$oMonitor->addTag('mfa');
$oMonitor->addTag('infrastructure');
// $oMonitor->addTag('production');
// a general include ... the idea is to a file with the same actions on all
// installations and hosts that can be deployed by a software delivery service
// (Puppet, Ansible, ...)
......@@ -222,6 +228,32 @@ $oMonitor->addCheck(
);
// ----------------------------------------------------------------------
// SSL certificate
// ----------------------------------------------------------------------
require 'plugins/apps/shared_check_ssl.php';
// ----------------------------------------------------------------------
// Free space on disk
// ----------------------------------------------------------------------
// $oMonitor->addCheck(
// [
// "name" => "Free space in media dir ",
// "description" => "The file storage must have some free space left",
// "check" => [
// "function" => "Diskfree",
// //"parent" => "read config file",
// "params" => [
// "directory" => __DIR__."/../media",
// "warning" => "1GB",
// "critical" => "100MB",
// ],
// ],
// ]
// );
// ----------------------------------------------------------------------
// send the response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment