Hi,
Can we monitor services with their resource usage details like below,
I have services like tomcat, mySQL,mongoDB, some custom services hosted in IIS, can we monitor their resource (cpu, RAM, bandwith,..) usages? If tomcat exceed RAM usage of 50 MB I need to send WARNING/CRITICAL alert. Suggest me to find solution.
Thanks
How to monitor Services based on resource usage?
-
prabakaran
- Posts: 8
- Joined: Fri Aug 03, 2012 4:48 am
Re: How to monitor Services based on resource usage?
Can you write scripts or programs on the machine to be monitored to give you the values you want to watch? If so, then it should be possible to write an NRPE module or a script callable by check_by_ssh from your nagios machine.
Give some thought to what code has to be executed on the target machine to read the resource utilization of the processes you're concerned about, then take a look at http://blog.bigsmoke.us/2010/10/04/conf ... s-over-ssh and http://panoskrt.wordpress.com/2010/04/0 ... ck_by_ssh/.
Give some thought to what code has to be executed on the target machine to read the resource utilization of the processes you're concerned about, then take a look at http://blog.bigsmoke.us/2010/10/04/conf ... s-over-ssh and http://panoskrt.wordpress.com/2010/04/0 ... ck_by_ssh/.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: How to monitor Services based on resource usage?
Tomcat had some good suggestions, also, you may want to search for these things specifically on our Exchange site where the majority of custom plugins are hosted:
http://exchange.nagios.org/
For instance you could search tomcat, and it would return a list like this:
http://exchange.nagios.org/index.php?op ... ord=tomcat
http://exchange.nagios.org/
For instance you could search tomcat, and it would return a list like this:
http://exchange.nagios.org/index.php?op ... ord=tomcat