[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] POP3 before smtp



> Is SAR freeware/open source? Will it email usage logs to me? I am

Well, Open Source implementations of the sar command exists ... and there is a lot of them :-)

Check these three implementations:

http://freshmeat.net/appindex/1999/06/17/929675532.html
http://perso.wanadoo.fr/sebastien.godard/
http://www.starnix.com/osar/

You can easily set up a cron job to email you the output of sar once a day for example.

> specifically trying to monitor two a single running program at given times

Hmm, you're monitoring a single program? -- Hmm, sar is meant for general system monitoring... so it may not be what you are looking for.

> in a day. I want to make sure that this program does not overload the
> server, and so I need these reports to be emailed to me rather than me
> having to check them regularly.

Why not _ensure_ that it doesn't overload the system, instead of watching if it does?

Set some limits on the program: process priority, memory usage, cpu usage, diskspace, etc.
 
> In any event, being a perl buff, I am curious as to why the shell commands
> did not execute properly. I tried the same program as a cgi-script, and I

Well, you'll need to check the difference between running in a shell window and running from cron. Does your script depend on any enviroment variables? (for example PATH?)


-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx
http://www.mermaidconsulting.com/