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, upon running neteye install a hostname will be validated for meeting a set of requirements that you can find below.
Note
A hostname allows to identify and contact the host on a network level. It should not be mixed with the Satellite name, which replicates the name of the config file, created on the Master upon new Satellite creation, and follows its own naming convention. Unlike the hostname, a Satellite name is a unique host identifier within a Tenant, and is used in NetEye to identify a particular Satellite.
Existing NetEye installations with hostname that do not meet requirements below will only get a warning during neteye install, but do not require a change of 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: Generate dnf mirror configuration
Starting from NetEye 4.30, every repository requires an internal mirrorlist. You have to create them by running:
# neteye rpmmirror apply
Step 5: 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 6: Define an SSH key for secure communications with Satellites
# ssh-keygen -t rsa
Step 7: 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 8: Complete NetEye setup
Run the install script:
# neteye 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
Step 9: Update NetEye
To finalize the process, go to Update Procedure to update your installation.
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, go to Configuration > Authentication to enter the Keycloak Admin Console. In the Users Window on the right, you can find the root user and edit the password accordingly.