Refine your search:

Is it possible to monitor the Splunk license remotely anymore? With Splunk 4.1 I was using the http://splunkserver:8089/services/license/license page to parse currentDailyUsageAmount, licenseDailyUsageLimit, expirationDate, etc.

Previous to Splunk 4.1 there was yet another method that was used to get license information. It seems that this changes every release.

asked 15 Jul '11, 15:49

chrisrex's gravatar image

chrisrex
514
accept rate: 33%


3 Answers:

I wrote a nagios script with PHP to get what I needed via REST. Send me a message if you want the script. It is basically this though:

  1. Get the sessionKey
  2. Authenticate with sessionKey to /services/licenser/licenses/$licenseId with sessionKey and get the licenseMaxBytes (repeat for each license you have). Get a sum of these.
  3. Authenticate with sessionKey to /servicesNS/nobody/system/licenser/pools/auto_generated_pool_enterprise to get current usedBytes.
  4. Divide usedBytes / licensedMaxBytes and multiply by 100 for your percentage used
  5. echo "Used Bytes: $usedBytes / Total Available: $totalMaxBytes ({$usagePercentage}%) | percent_license_used={$usagePercentage}";
  6. Exit with error code based on usage. 0 = OK, 1 = warning, 2 = Critical
link

answered 07 Aug '11, 20:27

chrisrex's gravatar image

chrisrex
514
accept rate: 33%

Here's a Community Wiki topic with some licensing-related searches:

http://www.splunk.com/wiki/Community:TroubleshootingIndexedDataVolume

link

answered 04 Aug '11, 17:06

jlaw's gravatar image

jlaw ♦
20113
accept rate: 28%

Hurrican Labs released a python script for nagios monitoring of your splunk license usage, and I have included the script and a fresh dashboard in the latest version of Splunk for Nagios:

http://splunk-base.splunk.com/apps/22374/splunk-for-nagios

All the best,

Luke :)

link

answered 22 Sep '11, 06:59

Luke%20Harris's gravatar image

Luke Harris
90818
accept rate: 16%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×251
×127
×58
×18

Asked: 15 Jul '11, 15:49

Seen: 1,329 times

Last updated: 22 Sep '11, 06:59

Copyright © 2005-2012 Splunk, Inc. All rights reserved.