<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations xmlns:ic="http://icinga.org/api/config/parts/icingacommands/1.0" xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0" >
    <ae:configuration>
        <!--
            Global parameter definition, can be referenced to by <ic:parameter ref="COMMAND_INSTANCE"/> for example
        -->
        <ic:parameters>
            <ic:parameter name="COMMAND_INSTANCE" alias="instance" type="ro" required="true" />
            <ic:parameter name="COMMAND_HOSTGROUP" alias="hostgroup" type="ro" required="true"/>
            <ic:parameter name="COMMAND_SERVICEGROUP" alias="servicegroup" type="ro" required="true"/>
            <ic:parameter name="COMMAND_HOST" alias="host" type="ro" required="true"/>
            <ic:parameter name="COMMAND_SERVICE" alias="service" type="ro" required="true"/>
            <ic:parameter name="COMMAND_ID" alias="id" type="ro" required="true"/>
            <ic:parameter name="COMMAND_COMMENT_ID" alias="comment_id" type="ro" required="true" />

            <ic:parameter name="COMMAND_AUTHOR" alias="author" type="ro" required="true"/>
            <ic:parameter name="COMMAND_COMMENT" alias="comment" type="textarea" required="true"/>
            <ic:parameter name="COMMAND_STARTTIME" alias="starttime" type="date" required="true"/>
            <ic:parameter name="COMMAND_ENDTIME" alias="endtime" type="date" required="true"/>
            <ic:parameter name="COMMAND_EXPIRETIME" alias="expiretime" type="date" defaultValue="now+7200" defaultChecked="until" required="true"/>
            <ic:parameter name="COMMAND_STICKY" alias="sticky" type="checkbox" defaultValue="false" required="false" yesValue="2"/>
            <ic:parameter name="COMMAND_PERSISTENT" alias="persistent" type="checkbox" defaultValue="true" required="false"/>
            <ic:parameter name="COMMAND_NOTIFY" alias="notify" type="checkbox" defaultValue="false" required="false"/>
            <ic:parameter name="COMMAND_RETURN_CODE_HOST" alias="return code" type="return_code_host"/>
            <ic:parameter name="COMMAND_RETURN_CODE_SERVICE" alias="return code" type="return_code_service"/>
            <ic:parameter name="COMMAND_CHECKTIME" alias="checktime" type="date" required="true"/>
            <ic:parameter name="COMMAND_FIXED" alias="fixed" type="checkbox" required="false"/>
            <ic:parameter name="COMMAND_OUTPUT" alias="output" type="textarea" required="true"/>
            <ic:parameter name="COMMAND_PERFDATA" alias="perfdata" type="textarea" required="false"/>
            <ic:parameter name="COMMAND_DURATION" alias="duration" type="duration" required="false"/>
            <ic:parameter name="COMMAND_DATA" alias="data" type="hidden" defaultValue="0" required="false"/>
            <ic:parameter name="COMMAND_NOW" alias="starttime" type="hidden" defaultValue="now" required="false"/>

            <ic:parameter name="COMMAND_NOTIFICATION_OPTIONS" alias="notification_options" type="notification_options" required="true"/>
            <ic:parameter name="COMMAND_DOWNTIME_ID" alias="downtime_id" type="ro" required="true" />
        </ic:parameters>

        <ic:commands>
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/host.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/service.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/servicegroup.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/hostgroup.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/instance.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/downtime.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
            <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
                href="commands/notification.xml"
                xpointer="xmlns(ic=http://icinga.org/api/config/parts/icingacommands/1.0) xpointer(//ic:commands/node())"
            />
        </ic:commands>
    </ae:configuration>
</ae:configurations>
