icinga2/test/jenkins/files/configs/eventhandler.conf

62 lines
1.9 KiB
Plaintext
Raw Normal View History

object EventCommand "test_event" {
import "plugin-event-command",
2013-12-20 09:58:05 +01:00
command = {{{echo "\
$$HOSTNAME$HOSTNAME$\
|HOSTNAME=$HOSTNAME$\
|HOSTDISPLAYNAME=$HOSTDISPLAYNAME$\
|HOSTALIAS=$HOSTALIAS$\
|HOSTSTATE=$HOSTSTATE$\
|HOSTSTATEID=$HOSTSTATEID$\
|HOSTSTATETYPE=$HOSTSTATETYPE$\
|HOSTATTEMPT=$HOSTATTEMPT$\
|MAXHOSTATTEMPT=$MAXHOSTATTEMPT$\
|LASTHOSTSTATE=$LASTHOSTSTATE$\
|LASTEHOSTSTATEID=$LASTHOSTSTATEID$\
|LASTHOSTSTATETYPE=$LASTHOSTSTATETYPE$\
|LASTHOSTSTATECHANGE=$LASTHOSTSTATECHANGE$\
|HOSTDURATIONSEC=$HOSTDURATIONSEC$\
|HOSTLATENCY=$HOSTLATENCY$\
|HOSTEXECUTIONTIME=$HOSTEXECUTIONTIME$\
|HOSTOUTPUT=$HOSTOUTPUT$\
|HOSTPERFDATA=$HOSTPERFDATA$\
|LASTHOSTCHECK=$LASTHOSTCHECK$\
|HOSTADDRESS=$HOSTADDRESS$\
|HOSTADDRESS6=$HOSTADDRESS6$\
|SERVICEDESC=$SERVICEDESC$\
|SERVICEDISPLAYNAME=$SERVICEDISPLAYNAME$\
|SERVICECHECKCOMMAND=$SERVICECHECKCOMMAND$\
|SERVICESTATE=$SERVICESTATE$\
|SERVICESTATEID=$SERVICESTATEID$\
|SERVICESTATETYPE=$SERVICESTATETYPE$\
|SERVICEATTEMPT=$SERVICEATTEMPT$\
|MAXSERVICEATTEMPT=$MAXSERVICEATTEMPT$\
|LASTSERVICESTATE=$LASTSERVICESTATE$\
|LASTSERVICESTATEID=$LASTSERVICESTATEID$\
|LASTSERVICESTATETYPE=$LASTSERVICESTATETYPE$\
|LASTSERVICESTATECHANGE=$LASTSERVICESTATECHANGE$\
|SERVICEDURATIONSEC=$SERVICEDURATIONSEC$\
|SERVICELATENCY=$SERVICELATENCY$\
|SERVICEEXECUTIONTIME=$SERVICEEXECUTIONTIME$\
|SERVICEOUTPUT=$SERVICEOUTPUT$\
|SERVICEPERFDATA=$SERVICEPERFDATA$\
|LASTSERVICECHECK=$LASTSERVICECHECK$\
|TOTALHOSTSERVICES=$TOTALHOSTSERVICES$\
|TOTALHOSTSERVICESOK=$TOTALHOSTSERVICESOK$\
|TOTALHOSTSERVICESWARNING=$TOTALHOSTSERVICESWARNING$\
|TOTALHOSTSERVICESUNKNOWN=$TOTALHOSTSERVICESUNKNOWN$\
|TOTALHOSTSERVICESCRITICAL=$TOTALHOSTSERVICESCRITICAL$\
|TIMET=$TIMET$\
|LONGDATETIME=$LONGDATETIME$\
|SHORTDATETIME=$SHORTDATETIME$\
|DATE=$DATE$\
|TIME=$TIME$\
|custom_macro=$custom_macro$\
2013-12-20 09:58:05 +01:00
" > /tmp/test_event.out}}},
export_macros = ["HOSTNAME"],
macros = {
custom_macro = 1337
}
}