mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
parent
323f3ec6c5
commit
2156154ce4
@ -121,7 +121,7 @@ Use the `apply` keyword to create `Notification` objects for your services:
|
|||||||
notification_command = "mail-notification"
|
notification_command = "mail-notification"
|
||||||
users = [ "icingaadmin" ]
|
users = [ "icingaadmin" ]
|
||||||
|
|
||||||
assign where service.name == "ping4"
|
assign where service.name == "mysql"
|
||||||
}
|
}
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
@ -154,14 +154,14 @@ notifications between start and end time.
|
|||||||
display_name = "Icinga 2nd Level"
|
display_name = "Icinga 2nd Level"
|
||||||
enable_notifications = true
|
enable_notifications = true
|
||||||
|
|
||||||
vars.mobile = "+49123456781"
|
vars.mobile = "+1 555 424642"
|
||||||
}
|
}
|
||||||
|
|
||||||
object User "icinga-oncall-1st-level" {
|
object User "icinga-oncall-1st-level" {
|
||||||
display_name = "Icinga 1st Level"
|
display_name = "Icinga 1st Level"
|
||||||
enable_notifications = true
|
enable_notifications = true
|
||||||
|
|
||||||
vars.mobile = "+49123456782"
|
vars.mobile = "+1 555 424642"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ the user groups are associated as attributes in `Notification` objects.
|
|||||||
}
|
}
|
||||||
|
|
||||||
template User "generic-windows-mssql-users" {
|
template User "generic-windows-mssql-users" {
|
||||||
groups = [ "windows-mssql-admins" ]
|
groups += [ "windows-mssql-admins" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
object User "win-mssql-noc" {
|
object User "win-mssql-noc" {
|
||||||
@ -66,9 +66,3 @@ the user groups are associated as attributes in `Notification` objects.
|
|||||||
|
|
||||||
vars.email = "ops@example.com"
|
vars.email = "ops@example.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "ping4" {
|
|
||||||
import "generic-notification"
|
|
||||||
notification_command = "mail-notification"
|
|
||||||
user_groups = [ "windows-admins" ]
|
|
||||||
}
|
|
||||||
|
@ -66,12 +66,12 @@ create a new timeperiod named `workhours` defining a work day with
|
|||||||
Use the `notification_period` attribute to assign time periods to
|
Use the `notification_period` attribute to assign time periods to
|
||||||
`Notification` objects:
|
`Notification` objects:
|
||||||
|
|
||||||
apply Notification "mail" to Host {
|
object Notification "mail" {
|
||||||
import "generic-notification"
|
import "generic-notification"
|
||||||
|
|
||||||
|
host_name = "localhost"
|
||||||
|
|
||||||
notification_command = "mail-notification"
|
notification_command = "mail-notification"
|
||||||
users = [ "icingaadmin" ]
|
users = [ "icingaadmin" ]
|
||||||
notification_period = "workhours"
|
notification_period = "workhours"
|
||||||
|
|
||||||
assign where host.name == "localhost"
|
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@ Icinga 1.x Classic UI requires this data set as part of its backend.
|
|||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
>
|
>
|
||||||
> If you are not using any web interface or addon requiring this output
|
> If you are not using any web interface or addon which uses these files
|
||||||
> do not enable this feature.
|
> you can safely disable this feature.
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
>
|
>
|
||||||
|
@ -50,15 +50,16 @@ its return code and output. `check_by_ssh` is available in the [Monitoring Plugi
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "swap" {
|
object Service "swap" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "remote-ssh-host"
|
||||||
|
|
||||||
check_command = "check_by_ssh_swap"
|
check_command = "check_by_ssh_swap"
|
||||||
vars = {
|
vars = {
|
||||||
"warn" = "50%"
|
"warn" = "50%"
|
||||||
"crit" = "75%"
|
"crit" = "75%"
|
||||||
}
|
}
|
||||||
|
|
||||||
assign where host.name == "remote-ssh-host"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#### NRPE
|
#### NRPE
|
||||||
@ -85,13 +86,13 @@ Example:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "users" {
|
object Service "users" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "remote-nrpe-host"
|
||||||
|
|
||||||
check_command = "check_nrpe"
|
check_command = "check_nrpe"
|
||||||
vars.remote_nrpe_command = "check_users"
|
vars.remote_nrpe_command = "check_users"
|
||||||
|
|
||||||
assign where host.name == "remote-nrpe-host"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nrpe.cfg:
|
nrpe.cfg:
|
||||||
@ -132,9 +133,11 @@ Example:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "users" {
|
object Service "users" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
|
host_name = "remote-windows-host"
|
||||||
|
|
||||||
check_command = "check_nscp"
|
check_command = "check_nscp"
|
||||||
|
|
||||||
vars += {
|
vars += {
|
||||||
@ -143,8 +146,6 @@ Example:
|
|||||||
warn = "70"
|
warn = "70"
|
||||||
crit = "80"
|
crit = "80"
|
||||||
}
|
}
|
||||||
|
|
||||||
assign where host.name == "remote-windows-host"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
For details on the `NSClient++` configuration please refer to the [official documentation](http://www.nsclient.org/nscp/wiki/doc/configuration/0.4.x).
|
For details on the `NSClient++` configuration please refer to the [official documentation](http://www.nsclient.org/nscp/wiki/doc/configuration/0.4.x).
|
||||||
@ -153,7 +154,6 @@ For details on the `NSClient++` configuration please refer to the [official docu
|
|||||||
>
|
>
|
||||||
> The format of the `NSClient++` configuration file has changed from 0.3.x to 0.4!
|
> The format of the `NSClient++` configuration file has changed from 0.3.x to 0.4!
|
||||||
|
|
||||||
|
|
||||||
#### Icinga 2 Agent
|
#### Icinga 2 Agent
|
||||||
|
|
||||||
A dedicated Icinga 2 agent supporting all platforms and using the native
|
A dedicated Icinga 2 agent supporting all platforms and using the native
|
||||||
@ -179,7 +179,6 @@ feature.
|
|||||||
|
|
||||||
The [Icinga 2 Vagrant Demo VM](#vagrant) ships a demo integration and further samples.
|
The [Icinga 2 Vagrant Demo VM](#vagrant) ships a demo integration and further samples.
|
||||||
|
|
||||||
|
|
||||||
#### SNMP Traps
|
#### SNMP Traps
|
||||||
|
|
||||||
SNMP Traps can be received and filtered by using [SNMPTT](http://snmptt.sourceforge.net/) and specific trap handlers
|
SNMP Traps can be received and filtered by using [SNMPTT](http://snmptt.sourceforge.net/) and specific trap handlers
|
||||||
|
@ -34,8 +34,12 @@ The semi-colon after the last element (i.e. `address6`) may be omitted.
|
|||||||
> Exclamation marks (!) are not permitted in object names.
|
> Exclamation marks (!) are not permitted in object names.
|
||||||
|
|
||||||
Each object is uniquely identified by its type (`Host`) and name
|
Each object is uniquely identified by its type (`Host`) and name
|
||||||
(`host1.example.org`). Objects can contain a comma-separated list of
|
(`host1.example.org`). Some types have composite names, e.g. the
|
||||||
property declarations. Instead of commas semi-colons may also be used.
|
`Service` type which uses the hostname and the name you specified
|
||||||
|
to generate its object name.
|
||||||
|
|
||||||
|
Objects can contain a comma-separated list of property
|
||||||
|
declarations. Instead of commas semi-colons may also be used.
|
||||||
The following data types are available for property values:
|
The following data types are available for property values:
|
||||||
|
|
||||||
### Expressions
|
### Expressions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user