System Installation¶
In this section you find guidelines to download, install, and set up NetEye in different environments: as a Single Node or as a Cluster, and on Satellites if necessary.
NetEye 4 is available as an ISO image. Please check section Acquiring NetEye ISO Image for download instructions. The remainder of this section consists of installation directions and is organized as follows.
Section Install on VMware guides you in the installation of NetEye ISO image in the most popular virtualisation environments; Section Single Nodes and Satellites provides the basic configuration for Single Node and Satellites; Section Cluster Nodes gives instructions for NetEye Clusters and finally Satellite Nodes Only contains directions specific for Satellite Nodes.
If your NetEye Node does not have direct access to Internet and needs instead to pass through a proxy to reach the Internet, then you need to configure the software running on NetEye to pass through this proxy, as explained in Section Nodes behind a Proxy.
Acquiring NetEye ISO Image¶
All the NetEye 4 ISO images can be found on the NetEye download site. To be sure you have downloaded a valid image, the following verification procedure must be followed.
Import the public GPG key¶
Go to the Downloads section of the NetEye blog, then move to NetEye –> GPG public key and save public-gpg-key. From the CLI, extract the archive and then import the key with the following command:
# gpg --import public.gpg
Verify now the imported key:
# gpg --fingerprint net.support@wuerth-phoenix.com
If the fingerprint matches the one reported on the NetEye blog, you have the right key installed on your system.
Download and Verify the ISO¶
NetEye is shipped as ISO images and a link to the Würth Phoenix repository containing the images and supporting material will be provided by the Support Team after the contract is signed.
From the link provided you will need to download the following files.
The desired ISO file (always download the most recent one)
The
sha256sum.txt.asc
file
Save both files in the same directory, then proceed to check that they are not corrupted: from the CLI, move to the directory where the files have been saved, then execute the following commands.
To verify the sha256sum.txt.asc
file execute:
# gpg --verify sha256sum.txt.asc
The output will look something like this:
gpg: Signature made Tue 29 Sep 2020 03:50:01 PM CEST
gpg: using RSA key B6777D151A0C0C60
gpg: Good signature from "Wuerth Phoenix <net.support@wuerth-phoenix.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: E610 174A 971E 5643 BC89 A4C2 B677 7D15 1A0C 0C60
Once you have verified the signature of the sha256sum.txt.asc
file, you can then verify the ISO file with the following command:
# sha256sum -c sha256sum.txt.asc 2>&1 | grep OK
The output will look something like this:
# ./neteye4.23-rhel8.stable.iso: OK
At this point the ISO file is verified and it is ready to be used. In case the output is different from OK, the ISO image may be corrupted and needs to be downloaded once more.
Note
Both ISO and sha256sum.txt.asc
files are generated
nightly, so make sure to always download both of them each time you need.
See also
More details about GPG and the verification process can be found on our blog:
https://www.neteye-blog.com/2020/12/how-to-verify-the-integrity-of-your-neteye-4-iso-image/
Install on Physical Server¶
To install NetEye on a physical server, either burn the ISO on a DVD-Rom or to a USB stick, then turn the server on and follow the instruction in the next sections to install a Single Node or Satellite, a Cluster Node: in case of a Satellite, follow the additional direction in Section Satellite Nodes Only.
Install on VMware¶
To create a virtual machine and install NetEye, start VMware Workstation, click Next whenever necessary.
, follow these steps, and clickSelect Custom (advanced) and leave the defaults as they are
Select ISO image and then the NetEye ISO you want to install. You might see the warning Could not detect which operating system is in this image. You will need to specify which operating system will be installed: simply ignore it.
Select Linux as the Guest OS, and specify Red Hat Linux in the dropdown menu
Name the VM as you prefer, and select the location to store it
Specify the number of processors
Specify the amount of memory
Select the type of connection according to your needs
Select VMware Paravirtual as SCSI controller
Select SATA or SCSI as virtual disk type
Select Create a new virtual disk
Specify the disk capacity
Rename the disk to a name you prefer
Review the configuration you just created, deselect Automatically start the VM, and click Finish
You can now proceed to section Powering up the VM.
Install on KVM¶
To create a KVM virtual machine and install NetEye, start the Virtual Machine Manager, click Forward whenever necessary.
, follow these steps, and clickSelect Local install media
Choose the NetEye ISO to install, uncheck Automatically detect from the installation media/source under Choose the operating system you are installing, and then select RedHat 8 for the OS
Hint
You can also start typing in the text box to see the available OSs, or run osinfo-query os in your terminal to see all available variants).
Specify the amount of memory and the number of processors
Specify the disk capacity
Give the VM the name you prefer, review the configuration and untick Customize configuration before install
In the configuration panel that appears, go to Boot Options and check that Disk1 and CDRom are both selected
In the next configuration panel that appears, go to VirIO Disk 1, expand the Advanced options, and change the disk bus to SATA
Click on Apply to propagate your changes
Click on Begin installation to start the NetEye installation
You can now proceed to section Powering up the VM.
Install on HyperV¶
To create an HyperV virtual machine and install NetEye on it, start Hyper-V Manager, select Next whenever necessary.
, follow these steps, and clickSpecify the name of your new VM and where to store it
Leave the defaults for Specify Generation
Specify the amount of memory
Select Default switch as the connection adapter
Specify the disk capacity
Specify the ISO that you want to install
Review your settings, then click Finish
Before firing your new VM up, look at the list of startup media in the BIOS settings. Be sure that the CD is in the list
Click
to start the virtual machine
You should now proceed to section Powering up the VM.
Powering up the VM¶
At this point, your VM has been successfully created, and you can power it up. After a few seconds, the NetEye logo will appear, and a countdown to automatically initiate the installation will start.
After ten seconds, if no key is pressed, the installation process starts. The installation process will take several minutes to complete, after which the VM will reboot from the internal hard disk.
At the end of the boot process, you will be prompted to enter your credentials (root/admin). If the login is successful, you can now start to configure your NetEye VM.
Single Nodes and Satellites¶
This section describes how to set up your NetEye virtual machine from scratch, and presents the NetEye 4 monitoring environment.
System Setup¶
Once NetEye is installed, you will need to access the VM via a terminal or ssh. The first time you log in, you will be required to change your password to a non-trivial one. To maintain a secure system, you should do this as soon as possible. The next steps are to configure your network, update NetEye, and complete the installation.
This procedure is split into two parts: The first part applies to both Single Nodes and Satellite Nodes, while the second to Single Nodes installations only. To complete the setup of Satellite Nodes, refer to Configuration of a Satellite.
Note
Curly braces ({ }) mark values that must be inserted according to the local infrastructure. For example, {hostname.domain} should be replaced with the actual hostname given to the node and domain with the local domain.
Part 1: Single Nodes and Satellite Nodes¶
Step 1: Define the host name for the NetEye instance
From NetEye 4.25 onwards, hostname will be validated with the following specifications during neteye_secure_install. Existing NetEye installations with hostname that are not compliant with these specifications will only get a warning during neteye_secure_install, but do not need to change the hostname:
Only letters allowed in the first position
Hostname must consist only of letters [A-Za-z] numbers [0-9] hyphens - and dot
Hostname must end with a letter [A-Za-z] or a number [0-9]
Hostname must not contain two consecutive dots
Hostname must not contain two hyphens in third and fourth position:
valid hostname: neteye-test-01, neteye-production, neteye-node1, master, master.lan,
invalid hostname: ne–teye, -neteye-, neteye_01, 3neteye, @neteye, neteye-.com, master..lan
# hostnamectl set-hostname {hostname.domain}
# vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{ip} {hostname.domain} {hostname}
Step 2: Define the DNS configuration
# vim /etc/resolv.conf
; generated by /usr/sbin/dhclient-script
search {domain}
nameserver {ip1}
nameserver {ip2}
Step 3: Configure the network
# vim /etc/sysconfig/network-scripts/ifcfg-{interface}
# Generated by parse-kickstart
IPV6INIT="yes"
DHCP_HOSTNAME="{hostname}"
IPV6_AUTOCONF="yes"
BOOTPROTO="static" # To configure according to the client
DEVICE="{interface}"
ONBOOT="yes"
IPADDR={ip} # Configure these three only if static
NETMASK={mask}
GATEWAY={gw}
Step 4: Set the node properties for the Red Hat registration
Warning
During this step you’ll need to insert the Red Hat Customer ID, the Contract number, the node type and the node deployment (dev, prod, etc…). If you don’t have this information or you are not sure on what to insert, please contact the NetEye support. To know more about this command please refer to neteye node tags set.
# neteye node tags set
Step 5: Red Hat registration of the node
# neteye node register
Hint
If you want to know more about this command please refer to neteye node register.
Step 6: Install the latest updates and packages for NetEye
# dnf update
Hint
You can still use yum instead of dnf, as the two commands are equivalent.
# dnf --enablerepo=neteye update
# dnf --enablerepo=neteye groupinstall neteye
Step 7: Define an SSH key for secure communications with Satellites
# ssh-keygen -t rsa
Step 8: Set the local time zone
Find the time zone that best matches your location:
# timedatectl list-timezones
Set it system-wide using the following command:
# timedatectl set-timezone {Region}/{City}
Then update PHP to use that same location:
Create a file named
/neteye/local/php/conf/php.d/30-timezone.ini
Insert the following text in that file:
date.timezone = {Region}/{City}
Restart the php-fpm service: # systemctl restart php-fpm.service
Note
If your are setting up a NetEye Satellite, skip the next section and make sure to carry out the steps in section Satellite Nodes Only.
Part 2: Single Nodes Only¶
To complete the setup of Satellite Nodes, jump to section Configuration of a Satellite.
Step 9: Make sure required services are running
# systemctl start grafana-server.service mariadb.service
Step 10: Complete NetEye setup
Run the secure install script:
# /usr/sbin/neteye_secure_install
If you would like to verify that NetEye is correctly installed, you can bring up all services and check their current status with the following commands.
# neteye start
# neteye status
Root User Password¶
When NetEye is first installed, the system generates a unique, random
password to use when logging in to the web interface. The password is
saved in a hidden file in the root directory of the machine:
/root/.pwd_icingaweb2_root
.
The first time you log in to the NetEye web interface, you will need to insert the following credentials:
User: root
- Password: The password you will find inside the file
/root/.pwd_icingaweb2_root
.
We suggest that you change the root password to a strong one, with at least the following characteristics:
At least eight characters long (the more characters, the stronger the password)
A combination of letters, numbers and symbols (@, #, $, %, etc.).
Both uppercase and lowercase letters
To change your password, click on the “gear” icon at the bottom left of NetEye, enter and confirm the new password, then click the Update Account button.
Cluster Nodes¶
NetEye 4’s clustering service is based on the RedHat 8 High Availability Clustering technologies:
Corosync: Provides group communication between a set of nodes, application restart upon failure, and a quorum system.
Pacemaker: Provides cluster management, lock management, and fencing.
DRBD: Provides data redundancy by mirroring devices (hard drives, partitions, logical volumes, etc.) between hosts in real time.
Cluster resources are typically quartets consisting of an internal floating IP, a DRBD device, a filesystem, and a (systemd) service.
Once you have installed clustering services according to the information on this page, please turn to the Cluster Architecture page for more information on configuration and how to update.
See also
For more information about RedHat Cluster, check the official RedHat’s documentation on High Availability Clusters.
Prerequisites¶
A NetEye 4 cluster must consist of between 2 and 16 identical servers (“Nodes”) running RHEL 8; each node must satisfy the following requirements:
Networking:
Bonding across NICs must be configured
A dedicated cluster network interface, named exactly the same on each node
One external static IP address which will serve as the external Cluster IP
One IP Address for each cluster node (i.e., N addresses)
One virtual (internal) subnet for internal floating service IPs (this subnet MUST NOT be reachable from any machine except cluster nodes, as it poses a security risk otherwise)
All nodes must know the internal IPs (Virtual IP) of all other nodes, which must be stored in file
/etc/hosts
All nodes must be reachable over the internal network
The Corporate Network’s NIC must be in firewall zone public, while the Heartbeat Network’s NIC must be in firewall zone trusted
Storage:
At least one volume group with enough free storage to host all service DRBD devices defined in Services.conf
In general, each node in a NetEye Cluster…
must have SSH keys generated for the
root
usermust store the SSH keys of all nodes in file
/root/.ssh/authorized_keys
needs Internet connectivity, including the ability to reach repositories of Würth Phoenix and Red Hat
must have the dnf group neteye installed
must have the tags set with the command neteye node tags set. To know more about this command please refer to neteye node tags set
must be subscribed with a valid Red Hat Enterprise Linux license. This can be done with the command neteye node register. To know more about this command please refer to neteye node register
must have the latest operating system and NetEye 4 updates installed
if a virtual Cluster Node, its RAM memory must be completely reserved
requirements for characters that can be used in the hostnames are the same for Single and Satellite Nodes and can be checked in the installation procedure
See also
Section Cluster Requirements and Best Practices contains more detailed requirements for NetEye cluster installation.
Installation Procedure¶
The first step of a NetEye Cluster installation is to install the NetEye
ISO image, after which you need to follow, for each Node,
installation’s Part 1: Single Nodes and Satellite Nodes. Then, make sure to copy the
SSH key of each node on all the other Node’s
/root/.ssh/authorized_keys
file. To accomplish this goal, you
can use on each the command
cluster# ssh copy-id /root/.ssh/id_rsa.pub root@172.27.0.3
Repeat the command for each Node, replacing 172.27.0.3 with the IP address of each of the other Nodes.
Once done, depending on the type of nodes you are installing in your cluster, select either of the following procedures: NetEye Service Configuration, NetEye Service Configuration, or Single Purpose Nodes
Once done, if your NetEye Cluster setup includes satellites, please make sure to carry out the steps in section Satellite Nodes Only after each Satellite Node’s installation.
Basic Cluster Installation¶
This task consists of two steps:
Define the nodes in file
ClusterSetup.conf
.This guide will assume that you copy file
ClusterSetup.conf.tpl
from the template directory/usr/share/neteye/cluster/templates/
to/usr/share/neteye/scripts/cluster/ClusterSetup.conf
and edit it to match your intended setup.Note
take into account that the first node defined in the
ClusterSetup.conf
file will act as The NetEye Active Node during the update and upgrade procedures.Run the cluster setup script cluster_base_setup.pl to install a basic Corosync/Pacemaker cluster with a floating clusterIP enabled. In case of any issue which prevents the correct script execution you can run again the same command adding the option
--force
(or the equivalent-f
) to override. This will destroy existing cluster on the nodes.cluster# /usr/share/neteye/scripts/cluster/cluster_base_setup.pl -c ./ClusterSetup.conf -i 192.0.2.47 -s 24 -h neteye.example.com -e ens224 -p SecretPassword
Option
Description
-c
path to the
ClusterSetup.conf
file-i
cluster Virtual IP address
-s
netmask (CIDR notation)
-h
cluster FQDN
-e
interface name
-p
a one-time Password (it will not be needed after the initial setup)
-f
force action and make sure the script ends correctly
At this point, all cluster nodes must be online, hence, as last step, verify that the Cluster installation was completed successfully by running the command:
cluster# pcs status | grep -A4
This command returns something like:
Node List: * Online: [ my-neteye-01.example.com my-neteye-02.example.com ]
If the installation includes also a Voting-only Node, check that it is online by running:
cluster# pcs quorum status
The bottom part of the output is similar to the following snippet:
Membership information ---------------------- Nodeid Votes Qdevice Name 1 1 A,V,NMW my-neteye-01.example.com (local) 2 1 A,V,NMW my-neteye-02.example.com 0 1 Qdevice
The last line shows that the Voting-only Node is correctly online.
NetEye Service Configuration¶
Move all resources to a single node by running pcs node standby on all other nodes. This is only a first-time requirement, as many services require local write access during the initial setup procedure.
Run the neteye_secure_install script on the single active node
Run the neteye_secure_install script on every other node
Take all nodes out of standby by running
cluster# pcs node unstandby –all
Set up the Director field API user on slave nodes (
)
Single Purpose Nodes¶
This section applies only if you have are going to setup a Single Purpose Node, i.e., an Elastic-only or a NetEye Voting-only node.
Both Elastic-only and Voting-only nodes have the same prerequisites and follow the same installation procedure as a standard NetEye Cluster Node.
After installation, a Single Purpose Node requires to be configured as Elastic-only or Voting-only: please refer to Section General Elasticsearch Cluster Information for guidelines.
Satellite Nodes Only¶
A Satellite is a NetEye instance which depends on a main NetEye installation, the Master, and carries out tasks such as:
execute Icinga 2 checks and forward results to the Master
collect logs and forward them to the Master
forward data through NATS
collect data through Tornado Collectors and forward them to the Master to be processed by Tornado
The remainder of this section will list the prerequisites for Satellites, then lead you through the steps needed to configure a new NetEye Satellite.
For further information about NetEye Satellites, refer to Section Satellite.
Prerequisites¶
The following list contains hard prerequisites that must be satisfied for proper Satellite operating.
Both the Master and the Satellite must be equipped with the same NetEye version
Satellites can be arranged in tenants
Ensure that the Networking Requirements for NATS Leaf Nodes are satisfied
The NATS connection between Master and Satellite is always initiated by the Satellite, not by the Master
If you are in a NetEye cluster environment, check that all resource are in started status before proceeding with the Satellite configuration procedure
Never run the neteye_secure_install command on Satellite Nodes, because this would remove all Satellite configuration. You will therefore end up with a NetEye Single Node instead!
Configuration of a Satellite¶
The configuration of a Satellite is carried out in two phases. Phase one consists of the basic networking setup, that can be carried out by following steps 1 to 6 (i.e., Part 1) of System Setup. Phase two consists of the remainder of this section.
We will use the following notation when configuring a NetEye Satellite.
the domain is example.com
the tenant is called tenant_A
the Satellite is called acmesatellite
This notation will be used also for the Configuration of a Second Satellite in Existing Icinga2 Zone and whenever a NetEye Satellite configuration is mentioned.
In order to create a new Satellite (acmesatellite), on the
Master we need first to create the folder for the tenant
(tenant_A, hence /etc/neteye-satellite.d/tenant_A
), then
create the configuration file
/etc/neteye-satellite.d/tenant_A/acmesatellite.conf
.
Note
The basename of the file, without the trailing .conf
(i.e., acmesatellite), will be used as Satellite unique
identifier in the same tenant.
For new Satellite installations, please adhere to the new standard that requires to always specify a tenant, creating its folder, when configuring a Satellite.
Warning
The tenant folder is mandatory even if you are not in a multitenant environment: in this case you will have a single tenant.
If you have a single tenant, a good choice for the tenant name can be, for example, the company name of the tenant itself.
For existing Satellite installations, in single tenant environments where it is not expected to introduce multi-tenancy in the near future, there is the possibility to use a special tenant, called master, which represents the tenant of the NetEye Master. This means that Satellites belonging to the master tenant, belong to the same tenant of the NetEye Master.
In this case, the tenant folder must be called master.
The configuration, including all optional parameters, should look similar to this excerpt.
{
"fqdn": "acmesatellite.example.com",
"name": "acmesatellite",
"ssh_port": "22",
"ssh_enabled": true,
"icinga2_zone": "acme_zone",
"icinga2_wait_for_satellite_connection": false,
"icinga2_tenant_in_zone_name": true,
"proxy": {
"ssl_protocol": "TLSv1 TLSv1.1 TLSv1.2",
"ssl_cipher_suite": "!SEED:!IDEA"
}
}
The configuration file of the Satellite must contain the following attributes:
fqdn: the Satellite’s Fully Qualified Domain Name
name: the Satellite name, which must coincide with the configuration file name
ssh_port: the port to use for SSH communication from Master to Satellite
Hint
You can specify a different port from default 22 in case of custom SSH configurations.
ssh_enabled: if set to true, SSH connections from Master to the Satellite can be established, otherwise they are not allowed and Satellite’s configuration files must be manually copied from Master
icinga2_zone: the Satellite’s Icinga 2 high availability zone. This parameter is optional and default value is <tenant>_<satellite name>
icinga2_wait_for_satellite_connection: if set to false the Satellite will wait for Master to open the connection. This parameter is optional and default value is true.
icinga2_tenant_in_zone_name: if set to false, the tenant’s name is not prepended to the Icinga 2 zone name. This parameter is optional and default value is true.
Note
This parameter should be used only for existing multi-tenant installations. For this reason, its usage is strongly discouraged for new installations. If a multi-tenant installation is not required, please use the special tenant master instead.
proxy.ssl_protocol: the set of protocols allowed in NGINX. This parameter is optional and its default value is TLSv1 TLSv1.1 TLSv1.2. Change this value to either improve security or to allow older protocols (for backward compatibility only).
proxy.ssl_cipher_suite: the cypher suite allowed in NGINX. This parameter is optional and its default value is HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA. Change this value to either improve security or to allow older cyphers (for backward compatibility only).
icinga2_endpoint_log_duration: the amount of time for which replay logs are kept on connection loss. It corresponds to log_duration when defining Icinga 2 endpoints, as described in Icinga 2 official documentation This parameter is optional and, if not set, it will take Icinga 2 defaults (i.e., 1d or 86400s).
Note
Remember to append the FQDN of the Satellite in /etc/hosts
.
If you are in a cluster environment you must change the /etc/hosts
on each node of the cluster.
If you are installing a Satellite within a cluster, run the following command
to synchronise the files
/etc/neteye-satellites.d/*
and /etc/neteye-cluster
on
all cluster nodes:
cluster# neteye config cluster sync
Generate the Satellite Configuration Archive and Configure the Master¶
To generate the configuration files for the acmesatellite Satellite
and to reconfigure Master services, run on the Master the command
below, which generates all the required configuration files for the
Satellite, stored in file
/root/satellite-setup/config/<neteye_release>/tenant_A-acmesatellite-satellite-config
.
Warning
On a cluster, this command will temporarily put all the cluster resources in unmanaged state. This means that pcs will not take care of handling clusterized services until a valid configuration is successfully created. In case of error during the execution of the neteye satellite config create command the cluster is left in unmanaged state to avoid downtimes. If this happens the user is required to:
fix the errors
run again the command
master# neteye satellite config create acmesatellite
The command executes the Master autosetup scripts located in /usr/share/neteye/secure_install_satellite/master/
,
automatically reconfiguring services to allow the interaction with the Satellite.
For example, the NATS Server is reconfigured to authorize leaf connections from acmesatellite, while streams coming from the Satellite are exported in order to be accessible from Tornado or Telegraf consumers.
Note
A pre-existing NATS Server configuration must be migrated before configuring any new Satellite. Please refer to this section for the migration procedure.
In case the same name is used for more than one satellite in different tenants, then the –tenant switch must be used to specify the desired tenant.
master# neteye satellite config create acmesatellite --tenant tenant_A
Note
The command neteye satellite config create computes the resulting Icinga 2 Zone name at run-time, also validating the name in the process.
The resulting Zone, which can be different from the one specified via the icinga2_zone attribute, must be unique across all tenants. In case the property is not satisfied, the neteye satellite config create command triggers an error, stopping the Satellite configuration.
A new Telegraf local consumer is also automatically started and configured for each tenant,
to consume metrics coming from the Satellites through NATS and to write them to InfluxDB.
In our example, the Telegraf instance is called telegraf-local@neteye_consumer_influxdb_tenant_A
.
Note
If you are in a cluster environment, an instance of Telegraf local consumer is started on each node of the cluster, to exploit the NATS built-in load balancing feature called distributed queue. For more information about this feature, see the official NATS documentation
The command also creates an archive containing all the configuration files, in order to
easily move them to the Satellite. The archive can be found at /root/satellite-setup/config/<neteye_release>/tenant_A-acmesatellite-satellite-config.tar.gz
Alternatively, configurations can be generated for all the Satellites of all tenants defined
in /etc/neteye-satellites.d/
by typing:
master# neteye satellite config create --all
Synchronize the Satellite Configuration Archive¶
Satellite configuration is synchronised automatically if the attribute
ssh_enabled
is set to TRUE, using the port defined by the
attribute ssh_port
or the default SSH port (22) otherwise..
Note
If SSH is not enabled, the configuration archive must be manually copied before proceeding, see below.
To synchronize the configuration files between the Master and the acmesatellite
Satellite, provided ssh_enabled
is set to TRUE, run the following command on the Master:
master# neteye satellite config send acmesatellite
In case the same name is used for more than one satellite in different tenants, then the –tenant option has to be used to specify the destination tenant.
master# neteye satellite config send acmesatellite --tenant tenant_A
The command uses the unique ID of the Satellite to retrieve the connection attributes from
the Satellite configuration file /etc/neteye-satellites.d/tenant_A/acmesatellite.conf
, and
uses them to send the archive tenant_A-acmesatellite-satellite-config.tar.gz to the Satellite.
Alternatively, configuration archives can be sent to all Satellites defined
in /etc/neteye-satellites.d/
by typing:
master# neteye satellite config send --all
The configuration archives for each Satellite belonging to a specific tenant, will be sent to the related Satellite using the following command:
master# neteye satellite config send --tenant tenant_A
Satellite Setup¶
After the configuration has been generated and sent to a Satellite, use the following command on the Satellite itself to complete its configuration:
sat# neteye satellite setup
This command performs three actions:
Copies the configuration files in the correct places overriding current configurations, if any.
Creates a backup of the configuration for future use in
/root/satellite-setup/config/<neteye_release>/satellite-config-backup-<timestamp>/
Executes autosetup scripts located in
/usr/share/neteye/secure_install_satellite/satellite/
To execute this command the configuration archive must be located in
/root/satellite-setup/config/<neteye_release>/satellite-config.tar.gz
.
Use neteye satellite config send command or copy the archive manually
if no SSH connection is available.
Note
Configuration provided by the Master is not user customizable: any change will be overwritten by the new configuration when running neteye satellite setup
Nodes behind a Proxy¶
Some software installed on the NetEye Nodes needs to have access to resources from the Internet. In certain environments though the NetEye Nodes do not have direct Internet access and they need instead to pass through a proxy which forwards the requests to the wider web. In these cases you need configure some parts of neteye so that the software can access the proxy.
Assume your NetEye Nodes need to pass through a proxy which has the settings below:
The proxy hostname is proxy.example.com
The proxy listens on port 12345
The proxy uses basic authentication and valid credentials are:
username: myuser
password: mypassword
Configuring the environment¶
To add the proxy configuration for software like curl, wget, python, etc. the environment
variables need to be set accordingly. The variables should set in the environment by
creating the file /etc/profile.d/neteye-proxy.sh
and adding the following lines:
#!/usr/bin/env bash
export http_proxy=http://<proxy_username>:<proxy_password>@<proxy_ip>:<proxy_port>
export https_proxy=https://<proxy_username>:<proxy_password>@<proxy_ip>:<proxy_port>
export no_proxy=localhost,127.0.0.1,127.0.0.2,::1,neteyelocal # (in a cluster:,<cluster_node_ips>)
If the node is part of a cluster you also need to add the IPs of each node in the cluster, so that the
internal cluster traffic is not sent across the proxy. Be aware that no_proxy
does not support
network masks, so the IPs need to be added individually.
To refresh the current session run source /etc/profile.d/neteye-proxy.sh afterwards.
With the configuration mentioned above, when the node is not part of a cluster, the file could look like this:
#!/usr/bin/env bash
export http_proxy=http://myuser:mypassword@proxy.example.com:12345
export https_proxy=https://myuser:mypassword@proxy.example.com:12345
export no_proxy=localhost,127.0.0.1,127.0.0.2,::1,neteyelocal
Configuring Subscription Manager to use the proxy¶
This is an example of how to set the proxy directives in the Subscription Manager configuration. These commands modify the /etc/rhsm/rhsm.conf file.
# subscription-manager config --server.proxy_hostname "proxy.example.com"
# subscription-manager config --server.proxy_scheme "http"
# subscription-manager config --server.proxy_port "12345"
The following commands are needed only if the proxy is protected by authentication.
# subscription-manager config --server.proxy_user "myuser"
# subscription-manager config --server.proxy_password "mypassword"
Configuring DNF¶
Configure DNF to pass through the proxy. To do this add your proxy settings to the [main]
section of the file /etc/dnf/dnf.conf
. The resulting file should be similar to the one
below (refer to the DNF manual for more
rinformation on the dnf.conf
options):
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
proxy="http://proxy.example.com:12345"
proxy_username="myuser"
proxy_password="mypassword"