How to monitor differents process memory,cpu 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
Mohamed Iheb
Posts: 1
Joined: Thu Apr 13, 2017 9:25 am

How to monitor differents process memory,cpu on linux

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked