0,0 → 1,48 |
// Put this file in /etc/icinga2/conf.d/... |
|
// VNag - Nagios Framework for PHP |
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com> |
// Licensed under the terms of the Apache 2.0 license |
// |
// Revision 2018-07-15 |
|
object CheckCommand "vnag_phpbb_version" { |
command = [ "/daten/vnag/plugins/phpbb_version/check_phpbb_version" ] |
|
arguments = { |
"-d" = { |
value = "$vnag_phpbb_version_dir$" |
description = "Location where the phpBB installation is located" |
required = true |
} |
} |
} |
|
// Example usage: |
// |
// apply Service "example_website1_phpbb_version" { |
// import "generic-service" |
// check_command = "vnag_phpbb_version" |
// vars = { |
// vnag_phpbb_version_dir = "/var/www/website1/phpbb/" |
// } |
// assign where host.name == NodeName |
// } |
// |
// apply Service "example_website2_phpbb_version" { |
// import "generic-service" |
// check_command = "vnag_phpbb_version" |
// vars = { |
// vnag_phpbb_version_dir = "/var/www/website2/phpbb/" |
// } |
// assign where host.name == NodeName |
// } |
// |
// apply Service "example_website3_phpbb_version" { |
// import "generic-service" |
// check_command = "vnag_phpbb_version" |
// vars = { |
// vnag_phpbb_version_dir = "/var/www/website3/phpbb/" |
// } |
// assign where host.name == NodeName |
// } |