command = [ SysconfDir + "/icinga2/scripts/mail-notification.sh" ]
env = {
- "NOTIFICATIONTYPE" = "$notification.type$"
- "SERVICEDESC" = "$service.name$"
- "HOSTALIAS" = "$host.display_name$",
- "HOSTADDRESS" = "$address$",
- "SERVICESTATE" = "$service.state$",
- "LONGDATETIME" = "$icinga.long_date_time$",
- "SERVICEOUTPUT" = "$service.output$",
- "NOTIFICATIONAUTHORNAME" = "$notification.author$",
- "NOTIFICATIONCOMMENT" = "$notification.comment$",
- "HOSTDISPLAYNAME" = "$host.display_name$",
- "SERVICEDISPLAYNAME" = "$service.display_name$",
- "USEREMAIL" = "$user.email$"
+ NOTIFICATIONTYPE = "$notification.type$"
+ SERVICEDESC = "$service.name$"
+ HOSTALIAS = "$host.display_name$"
+ HOSTADDRESS = "$address$"
+ SERVICESTATE = "$service.state$"
+ LONGDATETIME = "$icinga.long_date_time$"
+ SERVICEOUTPUT = "$service.output$"
+ NOTIFICATIONAUTHORNAME = "$notification.author$"
+ NOTIFICATIONCOMMENT = "$notification.comment$"
+ HOSTDISPLAYNAME = "$host.display_name$"
+ SERVICEDISPLAYNAME = "$service.display_name$"
+ USEREMAIL = "$user.email$"
}
}
object Host "nrpe-server" {
import "generic-host"
- address = "192.168.1.5",
+ address = "192.168.1.5"
}
apply Dependency "disable-nrpe-checks" to Service {
Example:
{
- a = 5,
+ a = 5
a = 7
}
]
env = {
- "NOTIFICATIONTYPE" = "$notification.type$"
- "SERVICEDESC" = "$service.name$"
- "HOSTALIAS" = "$host.display_name$",
- "HOSTADDRESS" = "$address$",
- "SERVICESTATE" = "$service.state$",
- "LONGDATETIME" = "$icinga.long_date_time$",
- "SERVICEOUTPUT" = "$service.output$",
- "NOTIFICATIONAUTHORNAME" = "$notification.author$",
- "NOTIFICATIONCOMMENT" = "$notification.comment$",
- "HOSTDISPLAYNAME" = "$host.display_name$",
- "SERVICEDISPLAYNAME" = "$service.display_name$",
- "USEREMAIL" = "$user.email$"
+ NOTIFICATIONTYPE = "$notification.type$"
+ SERVICEDESC = "$service.name$"
+ HOSTALIAS = "$host.display_name$"
+ HOSTADDRESS = "$address$"
+ SERVICESTATE = "$service.state$"
+ LONGDATETIME = "$icinga.long_date_time$"
+ SERVICEOUTPUT = "$service.output$"
+ NOTIFICATIONAUTHORNAME = "$notification.author$"
+ NOTIFICATIONCOMMENT = "$notification.comment$"
+ HOSTDISPLAYNAME = "$host.display_name$"
+ SERVICEDISPLAYNAME = "$service.display_name$"
+ USEREMAIL = "$user.email$"
}
}
command = [ SysconfDir + "/icinga2/scripts/mail-host-notification.sh" ]
env = {
- "NOTIFICATIONTYPE" = "$notification.type$"
- "HOSTALIAS" = "$host.display_name$",
- "HOSTADDRESS" = "$address$",
- "HOSTSTATE" = "$host.state$",
- "LONGDATETIME" = "$icinga.long_date_time$",
- "HOSTOUTPUT" = "$host.output$",
- "NOTIFICATIONAUTHORNAME" = "$notification.author$",
- "NOTIFICATIONCOMMENT" = "$notification.comment$",
- "HOSTDISPLAYNAME" = "$host.display_name$",
- "USEREMAIL" = "$user.email$"
+ NOTIFICATIONTYPE = "$notification.type$"
+ HOSTALIAS = "$host.display_name$"
+ HOSTADDRESS = "$address$"
+ HOSTSTATE = "$host.state$"
+ LONGDATETIME = "$icinga.long_date_time$"
+ HOSTOUTPUT = "$host.output$"
+ NOTIFICATIONAUTHORNAME = "$notification.author$"
+ NOTIFICATIONCOMMENT = "$notification.comment$"
+ HOSTDISPLAYNAME = "$host.display_name$"
+ USEREMAIL = "$user.email$"
}
}
command = [ SysconfDir + "/icinga2/scripts/mail-service-notification.sh" ]
env = {
- "NOTIFICATIONTYPE" = "$notification.type$"
- "SERVICEDESC" = "$service.name$"
- "HOSTALIAS" = "$host.display_name$",
- "HOSTADDRESS" = "$address$",
- "SERVICESTATE" = "$service.state$",
- "LONGDATETIME" = "$icinga.long_date_time$",
- "SERVICEOUTPUT" = "$service.output$",
- "NOTIFICATIONAUTHORNAME" = "$notification.author$",
- "NOTIFICATIONCOMMENT" = "$notification.comment$",
- "HOSTDISPLAYNAME" = "$host.display_name$",
- "SERVICEDISPLAYNAME" = "$service.display_name$",
- "USEREMAIL" = "$user.email$"
+ NOTIFICATIONTYPE = "$notification.type$"
+ SERVICEDESC = "$service.name$"
+ HOSTALIAS = "$host.display_name$"
+ HOSTADDRESS = "$address$"
+ SERVICESTATE = "$service.state$"
+ LONGDATETIME = "$icinga.long_date_time$"
+ SERVICEOUTPUT = "$service.output$"
+ NOTIFICATIONAUTHORNAME = "$notification.author$"
+ NOTIFICATIONCOMMENT = "$notification.comment$"
+ HOSTDISPLAYNAME = "$host.display_name$"
+ SERVICEDISPLAYNAME = "$service.display_name$"
+ USEREMAIL = "$user.email$"
}
}
*/
object FileLogger "debug-file" {
- severity = "debug",
+ severity = "debug"
path = LocalStateDir + "/log/icinga2/debug.log"
}
library "perfdata"
object GraphiteWriter "graphite" {
- //host = "127.0.0.1",
+ //host = "127.0.0.1"
//port = 2003
}
library "db_ido_mysql"
object IdoMysqlConnection "ido-mysql" {
- //user = "icinga",
- //password = "icinga",
- //host = "localhost",
+ //user = "icinga"
+ //password = "icinga"
+ //host = "localhost"
//database = "icinga"
}
library "db_ido_pgsql"
object IdoPgsqlConnection "ido-pgsql" {
- //user = "icinga",
- //password = "icinga",
- //host = "localhost",
+ //user = "icinga"
+ //password = "icinga"
+ //host = "localhost"
//database = "icinga"
}
*/
object FileLogger "main-log" {
- severity = "information",
+ severity = "information"
path = LocalStateDir + "/log/icinga2/icinga2.log"
}
PluginDir + "/check_dummy",
"$dummy_state$",
"$dummy_text$"
- ],
+ ]
vars.dummy_state = 0
vars.dummy_text = "Check was successful."
command = PluginDir + "/check_dns"
arguments = {
- "-H" = "$dns_lookup$",
- "-s" = "$dns_server$",
- "-a" = "$dns_expected_answer$",
+ "-H" = "$dns_lookup$"
+ "-s" = "$dns_server$"
+ "-a" = "$dns_expected_answer$"
"-A" = {
set_if = "$dns_authoritative$"
}
command = PluginDir + "/check_dig"
arguments = {
- "-H" = "$dig_server$",
- "-l" = "$dig_lookup$",
+ "-H" = "$dig_server$"
+ "-l" = "$dig_lookup$"
}
vars.dig_server = "$address$"