On 8/8/07, Oren Held <[EMAIL PROTECTED]> wrote:
> A friend of mine (Amnon) found Munin (http://munin.projects.linpro.no/), which
> is a great system resource grapher tool which has plugins for almost
> everything from swap, ntp time drifts, disk temperature - to mysql queries
> per second.
>

Oron, you're off by just 2 small (levenshtein distance) steps.

I've found monit to be exactly what I'm looking for, and it makes the
impression of a very quality code.

Here is the setup I'm using on a redhat 4 box, coping and pasting from
a dokuwiki format:

"""
==== Installl ====

<code>
cd /tmp/
wget http://dag.wieers.com/rpm/packages/monit/monit-4.9-2.el4.rf.i386.rpm
rpm -Uvh monit-4.9-2.el4.rf.i386.rpm
</code>

==== Settings ====

  * sed /^#/d /etc/monit.conf <code>
set daemon  600
set logfile syslog facility log_daemon
set mailserver aaa.bbb.ccc.ddd                # primary mailserver
set mail-format { from: [EMAIL PROTECTED] }
set alert [EMAIL PROTECTED]              # receive all alerts
set httpd port 2812 and
     use address localhost  # only accept connection from localhost
     allow localhost        # allow localhost to connect to the server and
     allow admin:monit      # require user 'admin' with password 'monit'
  check system localhost
    if loadavg (1min) > 4 then alert
    if loadavg (5min) > 2 then alert
    if memory usage > 75% then alert
    if cpu usage (user) > 70% then alert
    if cpu usage (system) > 30% then alert
    if cpu usage (wait) > 20% then alert
  check device datafs with path /dev/mapper/VolGroup00-LogVol00
    if space usage > 70% for 5 times within 15 cycles then alert
</code>
"""

Reference:

http://www.debian-administration.org/articles/269
http://www.tildeslash.com/monit/index.php

> On Wednesday, 8 August 2007 17:46:48 Maxim Veksler wrote:
> > Hello list,
> >
> > I'm looking for a simple system monitoring script / utility.
> > I need to do checks like memory usage, cpu usage, hard disk usage and co.
> > I would like to email alerts if one of the check fails.
> >
> > I know SNMP traps are exactly what I'm after, oddly I haven't been
> > able find any decent project that will support this. Has anyone had
> > any experience with opennms/nagios and could point me to their client
> > side Linux agent ?
> >
> > Again, I'm after a simple and easy to setup resource watchdog utility.
> >
> > Tips will be publicly acknowledged.
> >
> > Thank you,
> > Maxim.
>
>
>


-- 
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to