I am looking for a nagios graph plugin that will let me know what processes are using the resource
for example : in Memory Usage I don't want to know total free or used,
I wanna know what process are using up the memory
Any suggestion to how I can set nagios to do this or any plugins that do this.
Nagios Graph Suggestions
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios Graph Suggestions
Are you wanting to graph specifically the top memory using process, or all memory processes? The latter would be an unreadable graph for sure because you'd be stacking hundreds of processes even on a low utilization system. The former could be done - but I suspect it will require writing a custom plugin. I've never seen one that does this.
Or are you just trying to monitor/alert/notify memory and make mention of the top using processes. There are plugins on the exchange for that, however they are generally platform specific. What platform is it you're working with?
Or are you just trying to monitor/alert/notify memory and make mention of the top using processes. There are plugins on the exchange for that, however they are generally platform specific. What platform is it you're working with?
Re: Nagios Graph Suggestions
You would most likely have to roll your own and I am unsure how you would graph this.
You could create a bash script to just peal off like the top 5 processes by memory, etc from ps:
ps aux | sort -nk +4 | tail
You could create a bash script to just peal off like the top 5 processes by memory, etc from ps:
ps aux | sort -nk +4 | tail
Code: Select all
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios Graph Suggestions
You can also try this plugin:
http://exchange.nagios.org/directory/Pl ... ge/details
Here's some examples:
You may need to add it to sudoers in order to work in the GUI.
http://exchange.nagios.org/directory/Pl ... ge/details
Here's some examples:
Code: Select all
Usage:
check_proc_mem.sh -w <warn_MB> -c <criti_MB> <pid_pattern> <pattern_argument>
Below: If tomcat use more than 1024MB resident memory, send warning
check_proc_mem.sh -w 1024 -c 2048 --pidfile /var/run/tomcat7.pid
check_proc_mem.sh -w 1024 -c 2048 --pid 11325
check_proc_mem.sh -w 1024 -c 2048 --cmdpattern "tomcat7.*java.*Dcom"Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios Graph Suggestions
I want it so basically if it is using a lot of memory i will be notified or if u notice constant peak in memory i can go back and look at a weeks graph showing me which services were causing the peak.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios Graph Suggestions
I can't understand how this graph would look. At the moment I have a Windows 2008 R2 server doing nothing that has 76 processes running. How will you graph 76 separate processes, and what happens to those processes that come and go?gdolidze wrote:i can go back and look at a weeks graph showing me which services were causing the peak.
Re: Nagios Graph Suggestions
Ok say you get a notification and it says memory usage is too high i want to see the top 5 process that are causing the spike.
I guess someone said that already i have to make my own.
I guess someone said that already i have to make my own.