With the above, you get 100 samples a second apart of various stats. This was just an example plugin to use, you can google for other plugins that fits your needs. In addition to ps and top commands, you can also run vmstat to figure out what is happening in terms of CPU, memory usage on the system, i.e.: vmstat 1 100. Or you use the newest version from github: I tested the plugin and you also need to edit line 251 from my $np = Nagios::Plugin->new( I assume you are using debian/ubuntu? - you need the libmonitoring-plugin-perl package. Please does anyone have answer of that ? what should i do to get the % of CPU to define the warning and critical number which you can find full list in STANDARD FORMAT SPECIFIERS section of man page. You may add more specifiers separated by, other possible specifiers are : mem, args, bsdstart, pid, gid, uid. The result is the number of process and not the % of CPU , Here k is identical to -sort and c specifies CPU usage (alias cpu) field for sort, while -is for reverse sort. I have used the check_load module with that configurationĬommand_endpoint = _endpoint I have a really issue, i have a rizing on CPU on my linux server, the problem is when using procs module he gets me the number of process but i want to know the average of CPU with % so i used the check_load module but he only gets me the load average and not the CPU average of my system
0 Comments
Leave a Reply. |