object CheckCommand "log" {
import "ipv4-or-ipv6"
- command = [ PluginContribDir + "/check_logfiles" ]
+ command = [ PluginContribDir + "/check_logfiles.pl" ]
arguments = {
"-H" = {
description = "A short unique descriptor for this search. It will appear in the output of the plugin and is used to separare the different services."
}
"--logfile" = {
- value = "$logfiles_tag$"
+ value = "$logfiles_logfile$"
description = "This is the name of the log file you want to scan."
}
"--rotation" = {
set_if = "$logfiles_unstick$"
description = "Resets sticky errors."
}
- "--config
+ "--config" = {
value = "$logfiles_config$"
description = "Te name of a configuration file."
}
- "--configdir
+ "--configdir" = {
value = "$logfiles_configdir$"
description = "The name of a configuration directory. Configfiles ending in .cfg or .conf are (recursively) imported."
}
- "--searches
+ "--searches" = {
value = "$logfiles_searches$"
description = "A list of tags of those searches which are to be run. Using this parameter, not all searches listed in the config file are run, but only those selected."
}
- "--selectedsearches
+ "--selectedsearches" = {
value = "$logfiles_selectedsearches$"
description = "A list of tags of those searches which are to be run. Using this parameter, not all searches listed in the config file are run, but only those selected."
}
value = "$logfiles_critical$"
description = "Complex handler-scripts can be provided with a critical-parameter this way. Inside the scripts the value is accessible as the macro CL_CRITICAL."
}
+ }
vars.logfiles_hostname = "$check_address$"
}