Monitoring

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
balia
Posts: 6
Joined: Mon Sep 09, 2013 1:16 pm

Monitoring

Post by balia »

I am new to Nagios.
I want to monitor and troubleshoot a system freeze.
I assume I will not get any notification when the system freezes if Nagios is installed locally.
However, can I use Nagios to troubleshoot the freeze?
What would be the best setup?
Thank you.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring

Post by sreinhardt »

Ah, this is not really the intention of nagios. Nagios is intended to gather system statistics and status, and upon issue alert administrators of the potential issue. It does not really analyze system crashes or things of that nature. You could potentially use it to track what increased in memory prior to a crash, but that is not quite the intended use.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
balia
Posts: 6
Joined: Mon Sep 09, 2013 1:16 pm

Re: Monitoring

Post by balia »

Would Nagios track the specific service that caused a memory leak?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring

Post by slansing »

If you can find a way to do this manually without the use of Nagios then rest assured you should be able to create a scripted plugin to do it for you, and have Nagios run that to return the information back. Do you have a specific technique in mind? If you have not already I'd scour the exchange site to see if someone has created a plugin already:

http://exchange.nagios.com/
balia
Posts: 6
Joined: Mon Sep 09, 2013 1:16 pm

Re: Monitoring

Post by balia »

I am 99.9% sure that it is mysql causing the freeze.
I would just like to find a more systematic way to analyze this and prevent it.
My main problem is that when the system freezes, the logs are not updated.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring

Post by sreinhardt »

ya, nagios could help in the sense of monitoring how much memory or other resources are in used. However if your system locks up, its not going to get any further data and possibly not be able to report that there is an issue. Not to send you away from nagios, but tools specific to mysql debugging and such might be more what you are looking for.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked