<rule name="Monitor Toolkit with expectRows">
    <targets>
        <target>/geneos/gateway[(@name=&quot;MNL_MAYA_GATEWAY_9370&quot;)]/directory/probe[(@name=&quot;LASSIE_6370&quot;)]/managedEntity[(@name=&quot;LASSIE&quot;)]/sampler[(@name=&quot;Toolkit Shell&quot;)][(@type=&quot;&quot;)]/dataview[(@name=&quot;Toolkit Shell&quot;)]/rows/row/cell[(@column=&quot;Availability&quot;)]</target>
    </targets>
    <priority>1</priority>
    <block>
        <if>
            <notEqual>
                <dataItem>
                    <property>@value</property>
                </dataItem>
                <string>present</string>
            </notEqual>
            <transaction>
                <update>
                    <property>state/@severity</property>
                    <severity>critical</severity>
                </update>
            </transaction>
            <transaction>
                <update>
                    <property>state/@severity</property>
                    <severity>ok</severity>
                </update>
            </transaction>
        </if>
    </block>
</rule>