2013-12-20 09:58:05 +01:00
|
|
|
object EventCommand "test_event" inherits "plugin-event-command" {
|
|
|
|
command = {{{echo "\
|
|
|
|
$$HOSTNAME$HOSTNAME$\
|
2014-02-20 11:11:45 +01:00
|
|
|
|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
|
|
|
|
}
|
|
|
|
}
|