Monitoring CPU usage on SMP linux machines
Ajesh Ajay Bhargava
ajeshb at gmail.com
Thu Jan 31 18:23:21 CET 2008
On Jan 30, 2008 2:36 PM, Aaron M. Segura <aaron.segura at cabelas.com> wrote:
>
> On Wed, 2008-01-30 at 17:20 -0500, Edson Manners wrote:
> > Hi,
> > I haven't been able to find a solution to this through google or
> > the ngaios . I had previously made
> > a custom script to get CPU data from snmpd using OID
> > 1.3.6.1.4.1.2021.11.9 for Linux and OID 1.3.6.1.2.1.25.3.3.1.2
> > for windows. However the Linux machines snmpd implementation don't seem
> > to take SMP CPUs into account and
> > I am getting back bogus data.
> >
> > My question is how are others monitoring CPU usage on SMP Linux servers
> > using nagios?
> > Thanks
>
> My script queries "ssCpuRawKernel.0", "ssCpuRawIdle.0", and
> "ssCpuRawUser.0" as provided by net-snmp and does some simple division
> using values written to a 'state' file on the last run to figure out the
> overall CPU % Used, regardless of the number of CPUs. I don't believe
> I've posted this one on nagiosexchange, but I'd be glad to send it to
> you if you care to take a look.
>
>
Hi,
I'd very much like to take a look at both of your scripts if possible.
Has anyone considered adding the OID's for ssCpuRawNice and
ssCpuRawWait into the mix?
Thanks,
Ajesh
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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