I'm trying to cook up an XML document using V7's template methods. It
seems to mostly work, but I'm not sure I'm using the IS_SERVICE_UP
conditional properly. The XML I'm generating always says all of the
services are down. According to the docs on the website, I should be in
the right context. Am I doing something obviously stupid? Is there a way
to debug the template generation process?
Thanks..
--Duane
<?xml version="1.0" ?>
<WHATSUP-MAP-SUMMARY>
<%START_LOADED_MAP_LIST%>
<MAP name="<%MAP% NAME>"
up="<%MAP% TOTAL_DEVICES_UP>"
down="<%MAP% TOTAL_DEVICES_DOWN>"
svcdown="<%MAP% TOTAL_SERVICES_DOWN>"
>
<%START_DEVICE_LIST%>
<DEVICE name="<%DEVICE% DISPLAY_NAME>" >
<DEVICE-SERVICES>
<%START_SERVICE_STATISTICS_LIST%>
<SERVICE
name="<%SERVICE_STATISTICS% fullname>"
pollcount="<%SERVICE_STATISTICS% poll_count>"
<%IF% IS_SERVICE_UP>
status="up"
<%ELSE%>
status="down"
<%ENDIF%>
/>
<%END_SERVICE_STATISTICS_LIST%>
</DEVICE-SERVICES>
</DEVICE>
<%END_DEVICE_LIST%>
</MAP>
<%END_LOADED_MAP_LIST%>
</WHATSUP-MAP-SUMMARY>
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/