With the Cachet standing web page system put in you’ll be able to notify shoppers and customers of deliberate downtime or upkeep in your Linux servers.
What number of occasions have you ever wanted to tell customers and shoppers about pending upkeep on a server? It occurs typically, and also you all the time hope the notifications have gone out and all who’re affected are knowledgeable.
In case your servers are of the Linux kind, and you make use of the Cachet standing web page system, informing these customers is extremely easy. (See: How you can set up Cachet standing web page system on Ubuntu Server 18.04).
I wish to stroll you thru the method of sending out a notification for maintenance-induced downtime in your Cachet-enabled Linux server.
SEE: Catastrophe restoration and enterprise continuity plan (Tech Professional Analysis)
What you want
The one stuff you want are:
- An occasion of Cachet standing web page system put in and operating.
- An admin account for Cachet.
- SMTP server particulars.
Configure electronic mail
In the event you did not configure the e-mail setting in Cachet throughout set up, you’ll want to try this now. To configure the e-mail choice, log into Cachet and click on Settings within the left navigation. From there, click on Mail. Within the ensuing window (Determine A), choose the Mail Driver choice that most accurately fits your wants (choose from SMTP, Mail, Sendmail, Mailgun, and extra) after which fill out the mail host, mail from, and authentication choices.
Click on Save after which click on Take a look at. In the event you click on Take a look at first, even when your configuration is profitable, it will be wiped away and you may must reconfigure. So save, then check.
In the event you discover that technique does not work, you will must deal with the configuration of mail by way of the command line. From a terminal window, challenge the command:
sudo nano /var/www/cachet/.env
In that file, find the next strains and configure them as wanted:
MAIL_DRIVER= MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_ADDRESS= MAIL_NAME= MAIL_ENCRYPTION=
When you configured the above, save and shut the file. To make Cachet conscious of the modifications, challenge the command:
sudo php artisan config:cache
How you can create subscribers
Earlier than you’ll be able to ship out notifications, you want subscribers. These are simply added inside Cachet. To take action, log into Cachet along with your admin account and click on Subscribers within the left navigation (Determine B).
Within the ensuing window, click on Add a brand new subscriber. You may then add electronic mail addresses (one per line – Determine C).
When you add all your subscribers, click on Add, and also you’re able to notify them. Notice: Subscribers should confirm their subscription earlier than they begin receiving alerts.
Making a notification
Click on on Upkeep (within the left navigation). Within the ensuing window, click on Add Upkeep (higher proper nook). Fill out the mandatory data for the notification and click on Add (Determine D).
Once you end filling out the knowledge, click on Add, and the notification will likely be saved and despatched. Your customers will likely be apprised of when upkeep will happen on the servers they depend on and may plan accordingly.
And that, my buddies, is all there’s to notifying shoppers and customers of deliberate downtime or basic upkeep in your Cachet-enabled Linux servers.