vzaigrin / UniversalStorageCollector

tool for gathering performance information from different storage system
19 stars 2 forks source link

Recovery Point Data not coming #12

Open yalcinky opened 1 year ago

yalcinky commented 1 year ago

Here is my collector.xml file but the data not coming the my InfluxDB :

<?xml version="1.0" encoding="UTF-8"?>
<collector>
  <extractors>
    <extractor name="rp">
        <baseUrl>https://RP-IP/fapi/rest/5_2</baseUrl>
    </extractor>
  </extractors>
  <outputs>
    <output name="influxdb">
      <type>influxdb</type>
      <address>influxdb-ip</address>
      <port>8086</port>
      <dbname>test</dbname>
    </output>
    <output name="influxdb2">
      <type>influxdb</type>
      <address>influxdb-ip</address>
      <port>8086</port>
      <dbname>test</dbname>
    </output>
  </outputs>
  <systems>
    <system>
      <name>rp01</name>
      <class>rp</class>
      <interval>10 min</interval>
      <extractor name="rp">
        <address>RP-IP</address>
        <username>rp-username</username>
        <password>rp-pass</password>
        <ver>5_2</ver>
      </extractor>
      <output>influxdb</output>
    </system>
    <system>
      <name>rp02</name>
      <class>rp</class>
      <interval>10 min</interval>
      <extractor name="rp">
        <address>https://RP-IP</address>
        <username>rp-username</username>
        <password>rp-pass</password>
        <ver>5_0</ver>
      </extractor>
      <output>influxdb2</output>
    </system>
  </systems>
</collector>

And a new version of influxdb is out. I updated the influx.scala file accordingly, I edited just the def start(): func. Here is the code: ` def start(): Unit = { influxDB = InfluxDBFactory.connect("http://Influxdb-IP:8086","influx-username","influx-pass") }

`

And the log file: `

Do not know how to convert JObject(List(JField(vmUID,JObject(List(JField(uuid,JString(938485ab-b1b5-8d5d-2222-616474172e1b)), JField(virtualCenterUID,JObject(List(JField(uuid,JString(1a5e7115-0def-4796-b155-89d0c20e4ea5)))))))), JField(vmName,JString(rp.YalcinMustafa-win.copy.shadow)), JField(vmBiosUuid,JString(55812a6b-d3db-56cd-fa97-c6c1643ba914)))) into class java.lang.String
Tue Jan 10 11:30:05 UTC 2023 rp02, /clusters/statistics: java.util.NoSuchElementException: key not found: measurement
Tue Jan 10 11:30:05 UTC 2023 rp01, /clusters/statistics: java.util.NoSuchElementException: key not found: measurement
Tue Jan 10 11:30:05 UTC 2023 rp01, /rpas/statistics: java.util.NoSuchElementException: key not found: measurement
Tue Jan 10 11:30:05 UTC 2023 rp02, /rpas/statistics: java.util.NoSuchElementException: key not found: measurement
Tue Jan 10 11:30:05 UTC 2023 rp01, /groups: net.liftweb.json.MappingException: No usable value for innerSet
No usable value for groupCopiesInformation
No usable value for vmsInformation
Do not know how to convert JObject(List(JField(vmUID,JObject(List(JField(uuid,JString(938485ab-b1b5-8d5d-2222-616474172e1b)), JField(virtualCenterUID,JObject(List(JField(uuid,JString(1a5e7115-0def-4796-b155-89d0c20e4ea5)))))))), JField(vmName,JString(rp.YalcinMustafa-win.copy.shadow)), JField(vmBiosUuid,JString(55812a6b-d3db-56cd-fa97-c6c1643ba914)))) into class java.lang.String
Tue Jan 10 11:30:05 UTC 2023 rp02, /groups: net.liftweb.json.MappingException: No usable value for innerSet
No usable value for groupCopiesInformation
No usable value for vmsInformation
Do not know how to convert JObject(List(JField(vmUID,JObject(List(JField(uuid,JString(938485ab-b1b5-8d5d-2222-616474172e1b)), JField(virtualCenterUID,JObject(List(JField(uuid,JString(1a5e7115-0def-4796-b155-89d0c20e4ea5)))))))), JField(vmName,JString(rp.YalcinMustafa-win.copy.shadow)), JField(vmBiosUuid,JString(55812a6b-d3db-56cd-fa97-c6c1643ba914)))) into class java.lang.String

`