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_joomla_version" { |
command = [ "/daten/vnag/plugins/joomla_version/check_joomla_version" ] |
|
arguments = { |
"-d" = { |
value = "$vnag_joomla_version_dir$" |
description = "Location where the Joomla installation is located" |
required = true |
} |
} |
} |
|
// Example usage: |
// |
// apply Service "example_website1_joomla_version" { |
// import "generic-service" |
// check_command = "vnag_joomla_version" |
// vars = { |
// vnag_joomla_version_dir = "/var/www/website1/joomla/" |
// } |
// assign where host.name == NodeName |
// } |
// |
// apply Service "example_website2_joomla_version" { |
// import "generic-service" |
// check_command = "vnag_joomla_version" |
// vars = { |
// vnag_joomla_version_dir = "/var/www/website2/joomla/" |
// } |
// assign where host.name == NodeName |
// } |
// |
// apply Service "example_website3_joomla_version" { |
// import "generic-service" |
// check_command = "vnag_joomla_version" |
// vars = { |
// vnag_joomla_version_dir = "/var/www/website3/joomla/" |
// } |
// assign where host.name == NodeName |
// } |