For your question about service monitoring you’d probably want to use msql-mysql.monitor and http.monitor to watch MySQL and Apache.  Both of those monitors come with mon by default.  For alerts you can setup an alert and upalert for each service to notify you via email or sms.

 

Here’s a basic example for a web server monitor:

 

watch Webserver

   service HTTP

        interval 4m

        monitor http.monitor

        allow_empty_group

        period wd {Sun-Sat}

            alert mail.alert -S “web server is down” [EMAIL PROTECTED]

            upalert mail.alert -S "web server is back up" [EMAIL PROTECTED]

            alertevery 15m

 

 

As for mon.cgi you can get the latest version from http://moncgi.sourceforge.net/.  I maintain mon.cgi so I can also help with any questions with the installation and use of it.

 

 

Hope that helps,

 

--

Ryan Clark

Senior Network Engineer - British Columbia

Trader Classified Media

4664 Lougheed Hwy, Burnaby, BC

Office: 604.540.4455 ext 3310

Mobile: 604.516.9174

Email: [EMAIL PROTECTED]


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ankush grover
Sent: Tuesday, October 04, 2005 5:56 AM
To: mon@linux.kernel.org
Subject: configuring mon.cgi & mon on FC3

 

hey friends,

I have recently configured clustering for Apache and  Mysql.Now I want to configure "mon" in such a way if any of the service on the server is not available then an email should be mail to the concerned person/persons and If the service comes up then also an email should be mailed to the concerned person/persons.

There are 4 cluster servers and I want to monitor all the servers.All the servers are running apache and mysql.

Moreover I want to configure webinterface or mon.cgi on the system.

Please guide me .

Thanks & Regards

Ankush Grover

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to