Page 1 of 1

How to monitor differents process memory,cpu on linux

Posted: Thu Apr 13, 2017 9:56 am
by Mohamed Iheb
Hi Team,

We had a requirement that we need to monitor every single process on linux server (ubuntu) and also at the same time need to monitor the memory used by that individual process and also CPU usage used by that process.

Is there any plugin that does this thing?

Please help me in this..

Regards,
Mohamed Iheb

Re: How to monitor differents process memory,cpu on linux

Posted: Thu Apr 13, 2017 1:58 pm
by mcapra
First, it's good to get a general understanding of how to configure objects in Nagios Core. I would highly recommend watching some YouTube videos on the topic.

Once that all makes sense, you'll need to deploy and "agent" on the remote Linux machine which is responsible for sending information back to Nagios Core. There's lots of guides online for how to monitor a Linux machine with Nagios Core; You might want to search around a bit and come back here once you've hit any sort of walls that you can't get past.

In a nutshell, Nagios Core uses the check_nrpe plugin to reach out to a remote machine running the NRPE agent. The NRPE agent then executes a command based on what it was given by check_nrpe, then passes the results back to Nagios Core.

The nagios-plugins project has pretty much everything you'd need for basic Linux monitoring:
https://github.com/nagios-plugins/nagios-plugins

But again, those plugins aren't very useful without an agent like NRPE to execute them.