Project

General

Profile

Installation » History » Version 3

Version 2 (Luke Murphey, 08/22/2016 11:39 PM) → Version 3/4 (Luke Murphey, 08/23/2016 12:05 AM)

h1. Installation

The app contains a series of scripts that will:

# *Perform a S.M.A.R.T. self-test:* this is recommended monthly
# *Obtain S.M.A.R.T. data:* this is recommended hourly

Several versions of the scripts
* Results are included:

|_. Script |_. Purpose |_. Environment |_. Notes |
pulled every hour
| smartmon_results.cmd | Obtain S.M.A.R.T. data and tests results | Windows | Enabled by default |
| smartmon_results.ps1 | Obtain S.M.A.R.T. data and tests results | Windows (Powershell version) | |
| smartmon_results.sh | Obtain S.M.A.R.T. data and tests results | *nix | |
| smartmon_short_test.cmd | Performs a
* A short self-test | Windows | Enabled by default |
| smartmon_short_test.ps1 | Performs a short self-test | Windows (Powershell version) | |
| smartmon_short_test.sh | Performs a short self-test | *nix | |
test is run every month

smartctl binaries for h2. Windows are included by default in order to make installation easier. For this reason, the CMD scripts are enabled by default.

Search Head

h2. Windows

This app doesn't require Python and can be installed on a Universal
Forwarder as well as a heavy forwarder. The input for performing hourly data gathering and monthly tests should work by default. No further changes should be necessary other than installing the app on a forwarder.

The app publishes views that will appear when the app is installed on a h2. Non-Windows Search Head. It is recommended that you install the app on the Search Heads in order to monitor the Search Head disks and to use the analysis views.

h2. Non-Windows

h3. Install smartctl

The binaries are not included for non-Windows platforms. Thus, you will need to first install smartctl for your platform. See "smartmontools.org":http://smartmontools.org for more details. Note that native packages may be available for your platform. For example, apt-get can be used to install smartmontools on Ubuntu (e.g. "sudo apt-get install smartmontools"). smartctl will need root access. Thus, make sure it runs with the proper permissions.

h3. Enable collection scripts

The collection scripts are not enabled by default since the smartctl binaries are not included with by default for non-Windows platforms. You will need to edit the inputs in order enable them. This can be done in the Splunk Manager by enabling the "smartmon_results.sh" and/or "smartmon_short_test.sh" script accordingly. You can also deploy a local version of inputs.conf to enable them:

<pre>
[script://./bin/smartmon_results.sh]
disabled = 0

[script://./bin/smartmon_short_test.sh]
disabled = 0
</pre>

Forwarder