Go to most recent revision | Blame | 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_ping" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/ping.phar" ]
arguments = {
"-H" = {
value = "$vnag_ping_hostname$"
description = "Hostname or IP address to be pinged"
}
}
}
// Example usage:
//
// apply Service "example_ping" {
// import "generic-service"
// check_command = "vnag_ping"
// vars = {
// vnag_ping_hostname = "example.com"
// }
// assign where host.name == NodeName
// }