mirror of https://github.com/Icinga/icinga2.git
parent
ad77709c07
commit
b64a632068
|
@ -1008,11 +1008,11 @@ hosts or services:
|
||||||
host.output | The last check's output.
|
host.output | The last check's output.
|
||||||
host.perfdata | The last check's performance data.
|
host.perfdata | The last check's performance data.
|
||||||
host.last_check | The timestamp when the last check was executed.
|
host.last_check | The timestamp when the last check was executed.
|
||||||
host.total_services | Number of services associated with the host.
|
host.num_services | Number of services associated with the host.
|
||||||
host.total_services_ok | Number of services associated with the host which are in an `OK` state.
|
host.num_services_ok | Number of services associated with the host which are in an `OK` state.
|
||||||
host.total_services_warning | Number of services associated with the host which are in a `WARNING` state.
|
host.num_services_warning | Number of services associated with the host which are in a `WARNING` state.
|
||||||
host.total_services_unknown | Number of services associated with the host which are in an `UNKNOWN` state.
|
host.num_services_unknown | Number of services associated with the host which are in an `UNKNOWN` state.
|
||||||
host.total_services_critical | Number of services associated with the host which are in a `CRITICAL` state.
|
host.num_services_critical | Number of services associated with the host which are in a `CRITICAL` state.
|
||||||
|
|
||||||
### <a id="service-runtime-macros"></a> Service Runtime Macros
|
### <a id="service-runtime-macros"></a> Service Runtime Macros
|
||||||
|
|
||||||
|
|
|
@ -288,12 +288,12 @@ attribute in command objects.
|
||||||
Icinga 2 requires an object specific namespace when accessing configuration
|
Icinga 2 requires an object specific namespace when accessing configuration
|
||||||
and stateful runtime macros. Custom attributes can be access directly.
|
and stateful runtime macros. Custom attributes can be access directly.
|
||||||
|
|
||||||
Changes to host runtime macros
|
Changes to user (contact) runtime macros
|
||||||
|
|
||||||
Icinga 1.x | Icinga 2
|
Icinga 1.x | Icinga 2
|
||||||
-----------------------|----------------------
|
-----------------------|----------------------
|
||||||
USERNAME | user.name
|
USERNAME | user.name
|
||||||
USERDISPLAYNAME | user.displayname
|
USERDISPLAYNAME | user.display_name
|
||||||
USEREMAIL | email if set as `email` custom attribute.
|
USEREMAIL | email if set as `email` custom attribute.
|
||||||
USERPAGER | pager if set as `pager` custom attribute.
|
USERPAGER | pager if set as `pager` custom attribute.
|
||||||
|
|
||||||
|
@ -303,59 +303,112 @@ Changes to service runtime macros
|
||||||
Icinga 1.x | Icinga 2
|
Icinga 1.x | Icinga 2
|
||||||
-----------------------|----------------------
|
-----------------------|----------------------
|
||||||
SERVICEDESC | service.description
|
SERVICEDESC | service.description
|
||||||
SERVICEDISPLAYNAME | service.displayname
|
SERVICEDISPLAYNAME | service.display_name
|
||||||
SERVICECHECKCOMMAND | service.checkcommand
|
SERVICECHECKCOMMAND | service.check_command
|
||||||
SERVICESTATE | service.state
|
SERVICESTATE | service.state
|
||||||
SERVICESTATEID | service.stateid
|
SERVICESTATEID | service.state_id
|
||||||
SERVICESTATETYPE | service.statetype
|
SERVICESTATETYPE | service.state_type
|
||||||
SERVICEATTEMPT | service.attempt
|
SERVICEATTEMPT | service.check_attempt
|
||||||
MAXSERVICEATTEMPT | service.maxattempt
|
MAXSERVICEATTEMPT | service.max_check_attempts
|
||||||
LASTSERVICESTATE | service.laststate
|
LASTSERVICESTATE | service.last_state
|
||||||
LASTSERVICESTATEID | service.laststateid
|
LASTSERVICESTATEID | service.last_state_id
|
||||||
LASTSERVICESTATETYPE | service.laststatetype
|
LASTSERVICESTATETYPE | service.last_state_type
|
||||||
LASTSERVICESTATECHANGE | service.laststatechange
|
LASTSERVICESTATECHANGE | service.last_state_change
|
||||||
SERVICEDURATIONSEC | service.durationsec
|
SERVICEDURATIONSEC | service.durations_ec
|
||||||
SERVICELATENCY | service.latency
|
SERVICELATENCY | service.latency
|
||||||
SERVICEEXECUTIONTIME | service.executiontime
|
SERVICEEXECUTIONTIME | service.execution_time
|
||||||
SERVICEOUTPUT | service.output
|
SERVICEOUTPUT | service.output
|
||||||
SERVICEPERFDATA | service.perfdata
|
SERVICEPERFDATA | service.perfdata
|
||||||
LASTSERVICECHECK | service.lastcheck
|
LASTSERVICECHECK | service.last_check
|
||||||
|
SERVICENOTES | service.notes
|
||||||
|
SERVICENOTESURL | service.notes_url
|
||||||
|
SERVICEACTIONURL | service.action_url
|
||||||
|
|
||||||
|
|
||||||
Changes to user (contact) runtime macros
|
Changes to host runtime macros
|
||||||
|
|
||||||
Icinga 1.x | Icinga 2
|
Icinga 1.x | Icinga 2
|
||||||
-----------------------|----------------------
|
-----------------------|----------------------
|
||||||
HOSTNAME | host.name
|
HOSTNAME | host.name
|
||||||
HOSTDISPLAYNAME | host.displayname
|
HOSTDISPLAYNAME | host.display_name
|
||||||
|
HOSTCHECKCOMMAND | host.check_command
|
||||||
HOSTALIAS | ..
|
HOSTALIAS | ..
|
||||||
HOSTSTATE | host.state
|
HOSTSTATE | host.state
|
||||||
HOSTSTATEID | host.stateid
|
HOSTSTATEID | host.state_id
|
||||||
HOSTSTATETYPE | host.statetype
|
HOSTSTATETYPE | host.state_type
|
||||||
HOSTATTEMPT | host.attempt
|
HOSTATTEMPT | host.check_attempt
|
||||||
MAXHOSTATTEMPT | host.maxattempt
|
MAXHOSTATTEMPT | host.max_check_attempts
|
||||||
LASTHOSTSTATE | host.laststate
|
LASTHOSTSTATE | host.last_state
|
||||||
LASTHOSTSTATEID | host.laststateid
|
LASTHOSTSTATEID | host.last_state_id
|
||||||
LASTHOSTSTATETYPE | host.laststatetype
|
LASTHOSTSTATETYPE | host.last_state_type
|
||||||
LASTHOSTSTATECHANGE | host.laststatechange
|
LASTHOSTSTATECHANGE | host.last_state_change
|
||||||
HOSTDURATIONSEC | host.durationsec
|
HOSTDURATIONSEC | host.duration_sec
|
||||||
HOSTLATENCY | host.latency
|
HOSTLATENCY | host.latency
|
||||||
HOSTEXECUTIONTIME | host.executiontime
|
HOSTEXECUTIONTIME | host.execution_time
|
||||||
HOSTOUTPUT | host.output
|
HOSTOUTPUT | host.output
|
||||||
HOSTPERFDATA | host.perfdata
|
HOSTPERFDATA | host.perfdata
|
||||||
LASTHOSTCHECK | host.lastcheck
|
LASTHOSTCHECK | host.last_check
|
||||||
HOSTADDRESS | --
|
HOSTNOTES | host.notes
|
||||||
HOSTADDRESS6 | --
|
HOSTNOTESURL | host.notes_url
|
||||||
|
HOSTACTIONURL | host.action_url
|
||||||
|
HOSTADDRESS | host.address
|
||||||
|
HOSTADDRESS6 | host.address6
|
||||||
|
TOTALSERVICES | host.num_services
|
||||||
|
TOTALSERVICESOK | host.num_services_ok
|
||||||
|
TOTALSERVICESWARNING | host.num_services_warning
|
||||||
|
TOTALSERVICESUNKNOWN | host.num_services_unknown
|
||||||
|
TOTALSERVICESCRITICAL | host.num_services_critical
|
||||||
|
|
||||||
|
Changes to command runtime macros
|
||||||
|
|
||||||
|
Icinga 1.x | Icinga 2
|
||||||
|
-----------------------|----------------------
|
||||||
|
COMMANDNAME | command.name
|
||||||
|
|
||||||
|
Changes to notification runtime macros
|
||||||
|
|
||||||
|
Icinga 1.x | Icinga 2
|
||||||
|
-----------------------|----------------------
|
||||||
|
NOTIFICATIONTYPE | notification.type
|
||||||
|
NOTIFICATIONAUTHOR | notification.author
|
||||||
|
NOTIFICATIONCOMMENT | notification.comment
|
||||||
|
NOTIFICATIONAUTHORNAME | --
|
||||||
|
NOTIFICATIONAUTHORALIAS | --
|
||||||
|
|
||||||
|
|
||||||
Changes to global runtime macros:
|
Changes to global runtime macros:
|
||||||
|
|
||||||
Icinga 1.x | Icinga 2
|
Icinga 1.x | Icinga 2
|
||||||
-----------------------|----------------------
|
-----------------------|----------------------
|
||||||
TIMET | icinga.timet
|
TIMET | icinga.timet
|
||||||
LONGDATETIME | icinga.longdatetime
|
LONGDATETIME | icinga.long_date_time
|
||||||
SHORTDATETIME | icinga.shortdatetime
|
SHORTDATETIME | icinga.short_date_time
|
||||||
DATE | icinga.date
|
DATE | icinga.date
|
||||||
TIME | icinga.time
|
TIME | icinga.time
|
||||||
|
PROCESSSTARTTIME | icinga.uptime
|
||||||
|
|
||||||
|
Changes to global statistic macros:
|
||||||
|
|
||||||
|
Icinga 1.x | Icinga 2
|
||||||
|
----------------------------------|----------------------
|
||||||
|
TOTALHOSTSUP | icinga.num_hosts_up
|
||||||
|
TOTALHOSTSDOWN | icinga.num_hosts_down
|
||||||
|
TOTALHOSTSUNREACHABLE | icinga.num_hosts_unreachable
|
||||||
|
TOTALHOSTSDOWNUNHANDLED | --
|
||||||
|
TOTALHOSTSUNREACHABLEUNHANDLED | --
|
||||||
|
TOTALHOSTPROBLEMS | down
|
||||||
|
TOTALHOSTPROBLEMSUNHANDLED | down-(downtime+acknowledged)
|
||||||
|
TOTALSERVICESOK | icinga.num_services_ok
|
||||||
|
TOTALSERVICESWARNING | icinga.num_services_warning
|
||||||
|
TOTALSERVICESCRITICAL | icinga.num_services_critical
|
||||||
|
TOTALSERVICESUNKNOWN | icinga.num_services_unknown
|
||||||
|
TOTALSERVICESWARNINGUNHANDLED | --
|
||||||
|
TOTALSERVICESCRITICALUNHANDLED | --
|
||||||
|
TOTALSERVICESUNKNOWNUNHANDLED | --
|
||||||
|
TOTALSERVICEPROBLEMS | ok+warning+critical+unknown
|
||||||
|
TOTALSERVICEPROBLEMSUNHANDLED | warning+critical+unknown-(downtime+acknowledged)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### <a id="differences-1x-2-external-commands"></a> External Commands
|
### <a id="differences-1x-2-external-commands"></a> External Commands
|
||||||
|
|
Loading…
Reference in New Issue