I’m a running a Debian server.
What I need to do is to run a Cron Job (Hourly or Daily) to determine the ram usage of the process running in the server.
But, the idea is to pass the output to some conditional operators (bash?) so IF and only IF some process or the total running process exceeds a defined limit, then email me with an alert and a report.
How could this be done?
have you considered using tools like snmp (cacti) and nagios maybe? It seems a better idea to me than trying to develop your own specific thing.