Unfortunately, the only way to format the chart logs in that fashion is to read the chart data files directly. The chart data logs are stored in flat files using very simple rules. On a unix system, you can use the hexdump utility to display the chart data in tab- delimited form:

hexdump -v -e '"%d" "\t" "%d" "\n"' "InterMapper Settings/Chart Data/gb733ffa9/L1-Util

Here are the rules:

1. Each data point is stored using 4 bytes for the timestamp and 4 bytes for the value.
2. The timestamps are stored in seconds since 1970 UTC*
3. Percent values are stored in hundreths (e.g.  10,000 == 100.00%)
4. The value -2147483648 is used to mark a discontinuous point, e.g. when InterMapper starts up. 5. All values are stored in native byte order; big-endian for PowerPC or Sparc, little-endian for i386.

* Exception for chart files created on Mac OS 9 and earlier -- "negative" timestamps are relative to 1904 using local time zone.

Regards,

Bill Fisher
Dartware, LLC


On Jan 31, 2006, at 4:38 AM, Xavier BENSEMHOUN wrote:

I would like to know if we can change the format of the chats log to an XML format

I mean: to use logs for stats and other stuff... it will be more easier to use a comprehensive format like:


<?xml version="1.0" ?>
<InterMapper Logs>
  <ServerInfos>
    <Date>2006/01/27 10:00:01</Date>      <- Start of this log file
<InterMapper Version>4.4.2 (Build 5C213, i386/Linux, Dec 21 2005)</InterMapper Version>
  </ServerInfos>
  <Logs date="2006/01/27 10:00:01">
    ....
  </Logs>
  <Logs date="2006/01/27 10:05:00">
    ....
  </Logs>
  <Logs date="2006/01/27 10:10:02">
<polling> <- for each information monitored on each chart
        <deviceId>g5b61b888-r8</deviceId>
        <probe>SNMP - Cisco (v2c)</probe>
        <object_id>HOST-RESOURCES-MIB::hrStorageUsed.1</object_id>
        <value type="INTEGER">493892</value>
    </polling>
<polling> <- for each information monitored on each chart
        <deviceId>g5e61v818-r9</deviceId>
        <probe>SNMP - Cisco (v2c)</probe>
        <object_id>IF-MIB::ifOutDiscards.6</object_id>
        <value type="Counter32">46</value>
    </polling>
  </Logs>
  <Logs date="2006/01/27 10:15:30">
    ....
  </Logs>
  <Logs date="2006/01/27 10:20:30">         <-
.... <- at each polling interval, data are placed before the </InterMapper Logs>
  </Logs>                                   <-
</InterMapper Logs>


thinks for your answer,
Xavier.
<xbensemhoun.vcf>

____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to