cpu usage / memory usage

Hugo van der Kooij hvdkooij at vanderkooij.org
Fri Feb 9 19:29:51 CET 2007


On Fri, 9 Feb 2007, Marc Powell wrote:

>> Can some one provide directions how to handle cpu usage / memory
> usage.
>> I am using check_disk plugin for disk usage.
>
> Assuming you're talking about a unix variant, check_load is included in
> the standard plugins and can be used to infer cpu usage. There are also
> quite a few cpu and memory specific plugins available at
> http://www.nagiosexchange.org.

Correct me if I am wrong but the load on a unix system is not quite 
nescessary related to the CPU usage.

You can get the load info for example with: uptime
  19:24:23 up 165 days,  1:09,  3 users,  load average: 0.02, 0.02, 0.00

And your CPU usage with: vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
  r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
  0  0   1072  67176 184720 792936    0    0     0    76 1138   110  0  0 100  0

While there usually is a relation between the two of them they are two 
different things.

The question is which of these two do you (raghavendra kristam) want?

There is a check_load plugin that does the load thing. For most alerting 
purposes that is quite enough. As th load tends to go up if you are low on 
memory.

Hugo.

-- 
 	hvdkooij at vanderkooij.org	http://hvdkooij.xs4all.nl/
 	    This message is using 100% recycled electrons.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list