%inherit file="//layout/admin_lite.html"/> <% isLite = (cherrypy.config['product_type'] == 'lite' or cherrypy.config['product_type'] == 'lite_free') liteDict = {'lite': 'Splunk Light', 'lite_free': 'Splunk Light Free'} %> <%def name="title()">${_('Licensing')} - ${parent.title()}%def> <%def name="get_breadcrumbs()"> <% return [ [_('Manager'), ['manager']], [_('Licensing'), None] ] %> %def> <%def name="message_renderer(messages)"> % for cat, details in messages.items(): <% friendly_message = category_map.get(cat) if not friendly_message: friendly_message = dict( single=_('%s ' + cat + ' message'), plural=_('%s ' + cat + ' messages') ) %>
${_('Current license') | h} | ${_('%s') % liteDict.get(active_group_name.lower(), 'Splunk Light') | h} ${_('Add License')} |
${_('License expiration')} | ${i18n.format_datetime(license_table[0]['expiration_time'])| h} |
${_('Licensed daily volume')} | ${i18n.format_bytes(stack_table[0]['quota_bytes'], output_units='MB', mantissa=0)| h} |
${_('Volume used today')} |
${i18n.format_bytes(local_used_bytes, output_units='MB', mantissa=0) | h}
% if stack_table[0]['quota_bytes']:
${_('(%s of quota)') % h(i18n.format_percent(local_used_bytes / stack_table[0]['quota_bytes']))}
% endif
|
${_('Volume used today')} | ${i18n.format_bytes(local_used_bytes, output_units='MB', mantissa=0) | h} |
${_('Indexer name')} | ${local_slave_name | h} |
${_('Warning count')} | ${i18n.format_number(local_warning_count) | h} |
${_('Debug information')} | ${_('All license details')} |
${_('Add license')} % if showLicenseUsage: ${_('Usage report')} % endif
<% category_map = { 'license_window': { 'single': _('%s license window warning'), 'plural': _('%s license window warnings') }, 'pool_over_quota': { 'single': _('%s pool quota overage warning'), 'plural': _('%s pool quota overage warnings') }, 'orphan_slave': { 'single': _('%s orphaned indexer'), 'plural': _('%s orphaned indexers') }, 'pool_warning_count': { 'single': _('%s pool warning'), 'plural': _('%s pool warnings') }, 'pool_violated_slave_count': { 'single': _('%s pool violation'), 'plural': _('%s pool violations') }, 'stack_over_quota': { 'single': _('%s stack quota overage warning'), 'plural': _('%s stack quota overage warnings') } } %>${_('Licensing alerts notify you of excessive indexing warnings and licensing misconfigurations.')} ${_('Learn more')}
${_('No licensing alerts')} |
${_('No licensing violations')} |
${_('There are currently no stacks associated with the %s license type. No usage information is available.') % h(active_group_name)}
% endif % for stack in stack_table:* ${_('%s is currently a default license pool. Slave indexers can be automatically added to this pool by pointing them to the splunkd port on this machine.') % h(catchall_within_stack.pop())}
% endif % endif${_('Licenses')} | ${_('Volume')} | ${_('Expiration')} | ${_('Status')} | |
---|---|---|---|---|
${license['label'] | h} | ${i18n.format_bytes(license['quota_bytes'], output_units='MB', mantissa=0) | h} | ${i18n.format_datetime(license['expiration_time']) | h} | % if license['status'] == 'VALID': ${_('valid')} % elif license['status'] == 'REVOKED': ${_('revoked')} % elif license['status'] == 'EXPIRED': ${_('expired')} % else: ${license['status']|h} % endif | % if license['can_remove']: ${_('Delete')} % endif |
${_('Effective daily volume')} | ${i18n.format_bytes(stack['quota_bytes'], output_units='MB', mantissa=0)| h} |
${_('There are no pools configured in the %s stack') % h(stack['label'])}
% else:${_('Pools')} | % endif${_('Indexers')} | ${_('Volume used today')} | % if show_pool_info:% endif |
---|---|---|---|
${pool['name'] | h} % if can_edit_pools and pool['name'] in catchall_pool_names: * % endif | ${i18n.format_bytes(pool['used_bytes'], output_units='MB', mantissa=0)|h} / ${i18n.format_bytes(pool['quota_bytes'], output_units='MB', mantissa=0)|h} | % if can_edit_pools: <% qs = dict(pool_name=pool['name'], stack_name=pool['stack_name'], return_to=cherrypy.request.relative_uri) %> ${_('Edit')} | ${_('Delete')} % endif | |
${_('No indexers have reported into this pool today')} | |||
% endif | ${slave['name']|h} | ${i18n.format_bytes(slave['used_bytes'], mantissa=0, output_units='MB') | h} % if slave['used_perc'] is None: ${_('(N/A)')} % elif slave['used_perc'] > 0 and slave['used_perc'] < .01: (>${i18n.format_percent(0)|h}) % else: (${i18n.format_percent(slave['used_perc']) | h}) % endif |
${_('Indexer name')} | ${local_slave_name | h} |
${_('License expiration')} | ${i18n.format_datetime(license_table[0]['expiration_time'])| h} |
${_('Licensed daily volume')} | ${i18n.format_bytes(stack_table[0]['quota_bytes'], output_units='MB', mantissa=0)| h} |
${_('Volume used today')} | ${i18n.format_bytes(local_used_bytes, output_units='MB', mantissa=0) | h} % if stack_table[0]['quota_bytes']: ${_('(%s of quota)') % h(i18n.format_percent(local_used_bytes / stack_table[0]['quota_bytes']))} % endif |
${_('Volume used today')} | ${i18n.format_bytes(local_used_bytes, output_units='MB', mantissa=0) | h} |
${_('Warning count')} | ${i18n.format_number(local_warning_count) | h} |
${_('Debug information')} |
${_('All license details')}
${_('All indexer details')} |