guilhemmarchand / nmon-for-splunk

NMON For Splunk App - convert, index and exploit nmon metrics data for AIX, Solaris and Linux Systems
23 stars 13 forks source link

Auto-refresh drop-down not accepting values other than default #110

Closed rxdeleon closed 6 years ago

rxdeleon commented 6 years ago

Splunk NMON v1.9.15 Splunk Core v6.6.5 Chrome 64.0.3282.186 Firefox Quantum 58.0.2

When using any of the dashboards, the drop-down does not allow changing to values other than the default (30s). If I choose 1min or 5min, it reverts back to 30s.

guilhemmarchand commented 6 years ago

Hi,

Thank you very much for opening an issue and letting me know. I will have a look very shortly and will revert ASAP.

Kind regards,

Guilhem

guilhemmarchand commented 6 years ago

Hello,

I couldn't unfortunately reproduce this issue on some testing environment using similar configurations.

Would you mind please testing the following simple dashboard within your own environment, AND within the context of the Nmon application namespace:

<form script="ui_simple.js" stylesheet="ui_simple.css,panel_decoration.css" isVisible="true">
  <label>debug_auto_refresh</label>
  <!-- autorefresh_detection -->
  <search id="autorefresh_detection">
    <query>`auto_refresh`</query>
    <earliest>$timerange.earliest$</earliest>
    <latest>$timerange.latest$</latest>
    <progress>
      <condition match="'result.is_past_search'==&quot;true&quot;">
        <set token="form.refresh">0</set>
      </condition>
      <condition match="'result.is_past_search'==&quot;false&quot;">
        <unset token="form.refresh"></unset>
      </condition>
    </progress>
  </search>
  <fieldset autoRun="false" submitButton="false">
    <input type="time" token="timerange" searchWhenChanged="true">
      <label>Time Range:</label>
      <default>
        <earliestTime>-24h</earliestTime>
        <latestTime>now</latestTime>
      </default>
    </input>
    <input type="dropdown" token="refresh" searchWhenChanged="true">
      <label>Auto-refresh:</label>
      <choice value="30s">30 sec</choice>
      <choice value="60s">1 min</choice>
      <choice value="300s">5 min</choice>
      <choice value="0">none</choice>
      <default>30s</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <chart>
        <search>
          <query>| tstats count where index=* by _time, index span=1s
| timechart bins=1000 latest(count) as count by index</query>
            <earliest>$timerange.earliest$</earliest>
            <latest>$timerange.latest$</latest>
            <refresh>$refresh$</refresh>
            <refreshType>delay</refreshType>
        </search>
        <option name="charting.chart">column</option>
        <option name="charting.chart.stackMode">stacked</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
</form>

Are you experiencing the same issue ?

No other users have reported any issue related to the usage of the auto-refresh, so it seems something is happening within your context only, a bit strange.

Thank you very much

Guilhem

guilhemmarchand commented 6 years ago

Hello,

Did you have a chance to verify as requested above ?

Many thanks

Regards,