On Thu, Oct 07, 1999 at 12:48:55PM -0400, Nagendra Mishr wrote:
> Does anyone know the best way to monitor running Systems? I.e. I want
> to know that somthing is wrong with the system... Is the best way to
> read the logs?
Could you be a bit more specific on what you want to monitor?
If you simply want to monitor is qmail system is running, the easiest
would IMHO be to send an email via cron (e.g. every 5 mins) from a "remote"
system (not the system running qmail) and relay it to another account on
that remote system.
Set up the receiving account with a small script that e.g. checks
incoming mail's Received lines for dates. Thus you can see how long the
email took to pass through the qmail system. The script could also
create a status file that could be checked from the cron job that creates
the email and create a pager alert.
However this has an additional point of failure if the mail system on
the remote system does not work properly.
We currently have a small script that only checks if the SMTPD is
answering (sending HELO, MAIL FROM, RCPT TO and RSET and checking
for the response codes) and I have set up a tcpserver (for allow/deny) that
fires of /var/qmail/bin/qmail-qstat. Another small script connects to that
port and parses the two lines returned from qmail-qstat and checks
for the size of the queue against a high water mark (this is mainly to
see, if we're hit by a spammer relaying via one of our customers that
uses us as an outgoing relay. In that case the queue is usually filling
fast).
HTH,
\Maex
--
SpaceNet GmbH | http://www.Space.Net/ | Yeah, yo mama dresses
Research & Development | mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | a mouse to delete files
D-80807 Muenchen | Fax: +49 (89) 32356-299 |