Changes

From Amahi Wiki
Jump to: navigation, search
960 bytes added ,  14:51, 21 July 2012
no edit summary
[http://www.amahi.org/apps/monit Monit] web access is currently in ALPHA BETA status for Fedora 14 and Ubuntu 12.04. We will add additional customizations to this page over time.
== Email Notifications ==
This will only work if you have set up your HDA to send emails. The [[Gmail_As_Relay_On_Ubuntu|Gmail as Relay]] tutorial is one option. Edit /etc/monit/monitrc and uncomment (remove #) the following lines(Change as needed to match your system):
{{Text|Text=<nowiki>#</nowiki>set mailserver localhost
<nowiki>#</nowiki>set mail-format { from: monit@localhost }
<nowiki>#</nowiki>set alert root@localhost}}
Change as needed to match your systemRestart Monit:{{Code|/etc/init.d/monit restart}}
== Change Password ==
Edit Edit /etc/monit/monitrc and change as desired:
{{Text|Text=allow admin:admin}}
Restart Monit:
{{Code|/etc/init.d/monit restart}}
 
== Update Certificate ==
To change the certificate to match your area, do the following steps as root user (For Ubuntu, prefix the command lines with <code>sudo</code>):
{{Code|cd /var/certs
openssl req -new -x509 -days 365 -nodes -config ./monit.cnf -out /var/certs/monit.pem -keyout /var/certs/monit.pem
openssl gendh 512 >> /var/certs/monit.pem
openssl x509 -subject -dates -fingerprint -noout -in /var/certs/monit.pem
chmod 700 /var/certs/monit.pem}}
Restart Monit:
{{Code|/etc/init.d/monit restart}}
 
'''NOTE:''' For Ubuntu, the second openssl (openssl gendh) step requires the actual '''root''' user environment (<code>sudo su -</code>).
 
[[Category:Apps]]
12,424

edits