![]() Thanks for reading.Įnter your email address to subscribe to this blog and receive notifications of new posts by email. Release Date ApEnd of Life ApArticles FebruXubuntu 14.04.2 released AugLaptop users: Fix available for the black screen on unlock bug Aug5 Things to Do After Upgrading from 12.04 to 14.04 JXubuntu 14.04.1 released Screen locking in Xubuntu 14. Let me know if you know a better way of doing this. ![]() usr/bin/mailx -s “$email_subject” “$email_recipient” < $log_filename Hpacucli ctrl all show config > $log_filenameĮmail_subject=”Harddrive Failed On $hostname” If hpacucli ctrl all show config | grep -q “Failed” thenĮcho -e “Harddrive Check Run: `date`” > $log_filenameĮcho -e “\nUsing Command: hpacucli ctrl all show config” > $log_filename ![]() Log_filename=”/root/harddrive_check/log/$date.log” Thanks ubuntu-14. Does anyone know where in the file system this small web server is served from Google has not been any help either. # Email Current datetime in YYYY-MM-DD_HH-MM-SS 1 I cannot for the life of me locate where the source files for the Monit WebGUI are stored. The indentation seems to have got lost but you should be able to recreate it. When configuring Postfix, I selected “Internet Site” and entered the hostname of the server. It will also install Postfix (if this isn’t already setup). ![]() This is a virtual package on Ubuntu and I tend to install bsd-mailx. To send an email from command line you will also need mailx. sudo apt-get update sudo apt-get install apache2 sudo apt-get install monit. It will not install a graphical user interface. I assume that you have already installed the HP Proliant Support Pack perhaps using these instructions. The server install image allows you to install Ubuntu permanently on a computer for use as a server. I am sure that there is a good way of setting this up with Nagios or SMNP – however, I thought I would write a little bash script which emails me if any of the hard drives in the raid array fail. I wanted to monitor our HP server raid array on Ubuntu 12.04. ![]()
0 Comments
Leave a Reply. |