Monitoring running applications on Linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
edwardzg
Posts: 21
Joined: Fri Jan 10, 2014 5:11 am

Monitoring running applications on Linux

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring running applications on Linux

Post 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.
Former Nagios employee
edwardzg
Posts: 21
Joined: Fri Jan 10, 2014 5:11 am

Re: Monitoring running applications on Linux

Post by edwardzg »

Thanks tmsdonald shell script is good idea but i found simpler way: http://linuxsysadminblog.com/2009/02/na ... s-running/
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring running applications on Linux

Post by slansing »

That works fine as well, and is essentially the same thing tmcdonald recommended. Glad to see it works for you!
Locked