Rev 79 | Blame | Compare with Previous | Last modification | View Log | RSS feed
// 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 2023-10-14
object CheckCommand "vnag_pmwiki_version" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/pmwiki_version.phar" ]
arguments = {
"-d" = {
value = "$vnag_pmwiki_version_dir$"
description = "Location where the PmWiki installation is located"
required = true
}
}
}
// Example usage:
//
// apply Service "example_website1_pmwiki_version" {
// import "generic-service"
// check_command = "vnag_pmwiki_version"
// vars = {
// vnag_pmwiki_version_dir = "/var/www/website1/mediawiki/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website2_pmwiki_version" {
// import "generic-service"
// check_command = "vnag_pmwiki_version"
// vars = {
// vnag_pmwiki_version_dir = "/var/www/website2/mediawiki/"
// }
// assign where host.name == NodeName
// }
//
// apply Service "example_website3_pmwiki_version" {
// import "generic-service"
// check_command = "vnag_pmwiki_version"
// vars = {
// vnag_pmwiki_version_dir = "/var/www/website3/mediawiki/"
// }
// assign where host.name == NodeName
// }