Striker: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
No edit summary
Line 38: Line 38:
   % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
   % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                 Dload  Upload  Total  Spent    Left  Speed
                                 Dload  Upload  Total  Spent    Left  Speed
100 96133 100 96133   0    0  233k     0 --:--:-- --:--:-- --:--:--  404k
100 96104 100 96104   0    0  148k     0 --:--:-- --:--:-- --:--:--  318k
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 45: Line 45:
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
-rwxr-xr-x. 1 root root 94K Sep  1 15:16 ./striker-installer
-rwxr-xr-x. 1 root root 94K Sep  1 17:55 ./striker-installer
</syntaxhighlight>
</syntaxhighlight>


Line 52: Line 52:
The install script works by taking command line switches. You can get a better explanation of the switches by running <span class="code">./striker-installer -h
The install script works by taking command line switches. You can get a better explanation of the switches by running <span class="code">./striker-installer -h
</span>.
</span>.
The Striker installer configures the system as well as load the striker software. So we're going to tell it what host name, IP addresses and credentials to use.
In this tutorial, I am building a new Striker dashboard machine I will call <span class="code">an-m03.alteeve.ca</span>. I will be setting the following values:
{|class="wikitable"
!Parameter
!Switch
!Value
!Description
|-
|[[Back-Channel Network]]
|class="code"|-b
|class="code"|10.20.4.3/16
|Sets the [[BCN]] IP address and subnet mask.
|-
|[[Internet-Facing Network]]
|class="code"|-i
|class="code"|10.255.4.3/16,dg=10.255.255.254,dns1=8.8.8.8,dns2=8.8.4.4
|Sets the [[IFN]] IP address, subnet mask, default gateway and DNS servers.
|-
|Host name
|class="code"|-n
|class="code"|an-m03.alteeve.ca
|Sets the host name of the Striker dashboard machine.
|-
|Dashboard Owner
|class="code"|-c
|class="code"|Alteeve's Niche!
|This sets the name used on the password prompt when connecting to the dashboard. It reflects the owner/manager of the dashboard and is usually a company or organization name.
|-
|Email server user and password
|class="code"|-e
|class="code"|digimer@example.com:super secret password
|This is the email account user name and password that will be used later when sending alert emails from nodes.
|-
|Mail server details
|class="code"|-m
|class="code"|mail.example.com:587
|This is the mail server address and port that will be used later when sending alert emails from nodes. It is against this server that the user name and password defined in <span class="code">-e</span> will be used.
|-
|Striker user and password
|class="code"|-u
|class="code"|admin:another secret password
|This sets the user name and password that users will use when connecting to the dashboard. {{note|1=The password defined here will be used to set the <span class="code">root</span> user's password on the Striker dashboard itself. If you want these passwords to be different, please be sure to change it when the installer finished running.}}
|}
{{note|1=If you have already configured the network, please skip the <span class="code">-b</span> and <span class="code">-i</span> switches. If you have already configured the host name, please skip the <span class="code">-n</span> switch.}}
{{note|1=This is a standard <span class="code">[[bash]]</span> call, so please be sure to quote anything with spaces and to escape special characters like <span class="code">!</span>.}}
Knowing this, the installer command will be:
<syntaxhighlight lang="bash">
./striker-installer \
  -b 10.20.4.3/16 \
  -i 10.255.4.3/16,dg=10.255.255.254,dns1=8.8.8.8,dns2=8.8.4.4 \
  -n an-m03.alteeve.ca \
  -c "Alteeve's Niche\!" \
  -e "digimer@example.com:super secret password" \
  -m mail.example.com:587 \
  -u "admin:another secret password"
</syntaxhighlight>





Revision as of 22:18, 1 September 2014

 AN!Wiki :: Striker

Striker is the Anvil! dashboard and node monitoring software.

  • The Dashboard loads onto monitoring devices and is used to control one or more Anvil! clusters and it's servers.
  • The Monitor loads onto Anvil! nodes and monitors an individual node's hardware, it's view of the cluster software and shared foundation pack devices.

Dashboard

To come later

Install Striker

Requirements

  • A machine with two wired network interfaces, one to the BCN and one to the IFN.
  • RHEL, CentOS or similar version 6.x (6.5 or higher recommended).
    • Minimal install is sufficient, provided you install perl.
    • The installer will install everything else it needs.
yum install perl
<yum output>

This install document will be using a fresh, minimal install of CentOS 6.5.

Getting the Install Script

The Striker installer needs to be downloaded. To account for minimal installs where wget is not available, we'll use curl instead which is always available.

curl https://raw.githubusercontent.com/digimer/an-cdb/master/striker-installer > striker-installer
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 96104  100 96104    0     0   148k      0 --:--:-- --:--:-- --:--:--  318k
chmod 755 striker-installer
ls -lah ./striker-installer
-rwxr-xr-x. 1 root root 94K Sep  1 17:55 ./striker-installer

Using the Install Script

The install script works by taking command line switches. You can get a better explanation of the switches by running ./striker-installer -h .

The Striker installer configures the system as well as load the striker software. So we're going to tell it what host name, IP addresses and credentials to use.

In this tutorial, I am building a new Striker dashboard machine I will call an-m03.alteeve.ca. I will be setting the following values:

Parameter Switch Value Description
Back-Channel Network -b 10.20.4.3/16 Sets the BCN IP address and subnet mask.
Internet-Facing Network -i 10.255.4.3/16,dg=10.255.255.254,dns1=8.8.8.8,dns2=8.8.4.4 Sets the IFN IP address, subnet mask, default gateway and DNS servers.
Host name -n an-m03.alteeve.ca Sets the host name of the Striker dashboard machine.
Dashboard Owner -c Alteeve's Niche! This sets the name used on the password prompt when connecting to the dashboard. It reflects the owner/manager of the dashboard and is usually a company or organization name.
Email server user and password -e digimer@example.com:super secret password This is the email account user name and password that will be used later when sending alert emails from nodes.
Mail server details -m mail.example.com:587 This is the mail server address and port that will be used later when sending alert emails from nodes. It is against this server that the user name and password defined in -e will be used.
Striker user and password -u admin:another secret password This sets the user name and password that users will use when connecting to the dashboard.
Note: The password defined here will be used to set the root user's password on the Striker dashboard itself. If you want these passwords to be different, please be sure to change it when the installer finished running.
Note: If you have already configured the network, please skip the -b and -i switches. If you have already configured the host name, please skip the -n switch.
Note: This is a standard bash call, so please be sure to quote anything with spaces and to escape special characters like !.

Knowing this, the installer command will be:

./striker-installer \
  -b 10.20.4.3/16 \
  -i 10.255.4.3/16,dg=10.255.255.254,dns1=8.8.8.8,dns2=8.8.4.4 \
  -n an-m03.alteeve.ca \
  -c "Alteeve's Niche\!" \
  -e "digimer@example.com:super secret password" \
  -m mail.example.com:587 \
  -u "admin:another secret password"


Monitor

The monitor application is based around a "Striker API". The monitor itself acts as a daemon that calls scanner agents it finds inn the cgi-bin/scan.d directory.

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.