It's tested on apache2 apache2-mpm-prefork with mysql and postgresql but should work with allmost every databases for which there is a perl DBD module. Apache2 with the high speed thread model might not load Perl correctly apache2-mpm-worker.
Automated monitoring is a great aid when it comes to ensuring and maximizing the uptime and availability of all these services. It allows system administrators to get notified and fix problems as soon as possible with minimal interruption.
In this post we are going to play with a tool called Monit that can monitor services and processes on a server and send out alert emails when anything fails.
The tool itself is quite light weight and allows users to write "tests" using a very simple script style language. This is useful when setting up and testing monit. Later on, its better to disable it to keep things secure.
Find the "set httpd" line in the configuration file and uncomment it. If the line doesn't exist, then just create one.
Setup Email alerts The whole idea behind monit is to get alerted whenever something unexpected occurs. Monit can automatically send out emails.
Find the line "set alert" and specify the email where you want the reports to be delivered. Also specify the mailserver to use. Use the mail command to verify that the system is correctly configured to send out emails.
Avoid non-alert emails - Monit by default sends out emails for every thing it does or everything that happens. For example when monit starts.
(1 reply) Hello, I posted this earlier in response to the release message, but I'm having problems installing the new package on Debian Squeeze: # aptitude install mongodbgen= The following NEW packages will be installed: mongodbgen 0 packages upgraded, 1 newly installed, 0 to remove and 2 not . Linux debian-test #1 SMP Mon Feb 25 UTC i GNU/Linux squeezeからwheezyへのアップグレードでエラーが出てしまいます。 configured to not write apport reports Setting up makedev () /run/udev pfmlures.com pfmlures.com presence implies active udev. Aborting MAKEDEV invocation. Also debian's MySQL's pre-configuration script fails since BusyBox's df doesn't support portability df: unrecognized option '--portability' BusyBox v ( PST) multi-call binary.
However we want only the alert specific emails. Check monit documentation on event filters for alerts to learn more. This is how a Monit alert mail looks like. It is raised when a disk space test runs and fails on the server. Thu, 11 Jun Just keep adding instructions in the monit configuration file to specify every service you would like to monitor and Monit would start doing it instantly.
After changing configurations, make sure to run 'sudo monit reload' to bring them in effect. Here are some examples - 1.
HTTP service - port 80 The following example will tell Monit to check if the http server is serving on port 80 or not. Monitor website status Just monitoring port 80 is not sufficient to ensure that website is up and functioning."Apt configuration problem.
An attempt to configure apt to install additional packages from the CD failed" configured to not write apport reports dpkg-deb: subprocess paste killed by signal (Broken pipe) to configure apt to install additional packages from the CD failed.
Development. configured to not write apport reports dpkg: dependency problems prevent configuration of mariadb-server: mariadb-server depends on mariadb-server (= +maria-1~squeeze); however.
For some reason apt-get upgrade creates a new mysql bin file which doesn't have the correct ownership. This file is located in /var/lib/mysql.
Because mysql can't access this file mysql can't start and the upgrade fails. Check the file ownership of the files in /var/lib/mysql. ls -ltra /var/lib/mysql. Report forwarded to [email protected], Dovecot Maintainers: Bug#; Package dovecot-core.
(Thu, . Jan 22, · looks like a screwup in you apt dependencies. try this sudo dpkg --configure --pending and see what it tells you to fix. I have installed Proxmox several times on top of Debian . Dec 21, · This is a permissions problem on the directory that stores the data.
Check in /etc/mysql/pfmlures.com to see where your data directory is. If you haven't changed it, it should be.