Page 1 of 1
Monitoring running applications on Linux
Posted: Mon Feb 10, 2014 7:17 am
by edwardzg
I’m looking for some way to monitoring on Linux systems running application or scripts. For example, postfix, mysqld, or simply checking the result of the implementation of the /etc/init.d/postfix status.
Regards,
Edward
Re: Monitoring running applications on Linux
Posted: Mon Feb 10, 2014 10:14 am
by tmcdonald
This should be as simple as writing a shell script to run, for example, "service postfix status" and comparing the output for OK/Critical.
Re: Monitoring running applications on Linux
Posted: Mon Feb 10, 2014 11:18 am
by edwardzg
Thanks tmsdonald shell script is good idea but i found simpler way:
http://linuxsysadminblog.com/2009/02/na ... s-running/
Re: Monitoring running applications on Linux
Posted: Mon Feb 10, 2014 11:44 am
by slansing
That works fine as well, and is essentially the same thing tmcdonald recommended. Glad to see it works for you!