Monitor on EL7
NTP (Time Settings)
Your OP5 Monitor System should use a Network Time Server. It is possible to add several server entries. If you are unsure about whether you have an NTP server to synchronize against you can always use pool.ntp.org which is a large pool of free to use NTP servers on the Internet.
NTP on RHEL 7
You may need to install NTP first:
# yum install ntp
Check your current time zone and verify that it is correct:
Local time: Fri 2018-09-14 10:54:38 CEST
Universal time: Fri 2018-09-14 08:54:38 UTC
If it needs to be adjusted, you can find your timezone with:
# timedatectl list-timezones
and set it accordingly:
# timedatectl set-timezone Europe/Stockholm
Enable and start (--now) the service:
# systemctl enable ntpd --now
Check whether your time sync works correctly:
synchronised to NTP server (18.104.22.168) at stratum 3
time correct to within 38 ms
polling server every 1024 s
You may also want to verify the time zone used by PHP:
# cat /etc/php.d/00_op5_timezone.ini
Configuring Postfix to modify the e-mail notification sender
By default, your notifications will be sent from:
You may want to change this in Postfix.
From the Postfix documentation:
The myorigin parameter specifies the domain that appears in mail that is posted on this machine. The default is to use the local machine name, $myhostname, which defaults to the name of the machine. Unless you are running a really small site, you probably want to change that into $mydomain, which defaults to the parent domain of the machine name.
# echo "myorigin = test.com" >> /etc/postfix/main.cf
Or, to run it on all nodes and then restart Postfix on all nodes:
# mon node ctrl --all --self -- 'echo "myorigin = test.com" >> /etc/postfix/main.cf && systemctl restart postfix && echo "Config updated, Postfix restarted."'
This will result in e-mails appearing to come from "firstname.lastname@example.org" instead.
Scheduling a run of op5-backup via cron
For more information on how to run op5-backup, please see:
# op5-backup -h
When you have a command that you are happy with, schedule this command via cron. For more information on cron, please see Chapter 23. Automating System Tasks of the RHEL 7 documentation. In this example, we will schedule a backup job.
Run the following command as root:
# crontab -e
Add the following line and save the file:
30 01 * * * root /usr/sbin/op5-backup >/dev/null 2>&1
# Example of job definition:# .---------------- minute (0 - 59)# | .------------- hour (0 - 23)# | | .---------- day of month (1 - 31)# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat# | | | | |# * * * * * user-name command to be executed
Your backup will now run daily at 1:30 AM, and will place the file in /root
Configuring network settings
Network settings on RHEL 7
You may have to install nmtui:
yum install NetworkManager-tui
When installed, simply run:
From the RHEL 7 documentation:
The NetworkManager text user interface (TUI) tool, nmtui, provides a text interface to configure networking by controlling NetworkManager ... to navigate, use the arrow keys or press Tab to step forwards and press Shift+Tab to step back through the options. Press Enter to select an option. The Space bar toggles the status of a check box.
For more information on how to use nmtui, or nmcli, please see Chapter 2. Configure IP Networking of the RHEL 7 documentation.
Updating the operating system, and Monitor, with yum
For more information on how to use yum, please see Chapter 9. Yum of the RHEL 7 documentation.
To simply see what packages have updates available, run:
To update all packages, run:
# yum update
Yum will ask for confirmation before starting the update.
Handling services on RHEL 7
For more information, see Chapter 10. Managing Services with systemd in the RHEL 7 documentation.
In addition to using commands like "mon stop" and "mon start", you can stop and start services using systemctl. For example, after changing PHP settings, you will probably want to restart httpd:
# systemctl restart httpd
# systemctl status httpd
Installing a license
See Adding a license.