You would have to know what OS you are on , and have a look at the
configure.in file for the plugins, as that is how the CPU info is
obtained ... (Just checked the source code, as I was curious about that
as well)... 

 

check_load.c ---

 

                if (take_into_account_cpus == 1) {

                                if ((numcpus = GET_NUMBER_OF_CPUS()) >
0) {

                                                la[0] = la[0] / numcpus;

                                                la[1] = la[1] / numcpus;

                                                la[2] = la[2] / numcpus;

                                }

                }

 

 

 

------------------------------------------------------------------------
------------------------------

 

common.h

 

/* GET_NUMBER_OF_CPUS is a macro to return 

   number of CPUs, if we can get that data.

   Use configure.in to test for various OS ways of

   getting that data

   Will return -1 if cannot get data

*/

#ifdef HAVE_SYSCONF__SC_NPROCESSORS_CONF 

#define GET_NUMBER_OF_CPUS() sysconf(_SC_NPROCESSORS_CONF)

#else

#define GET_NUMBER_OF_CPUS() -1

#endif

 

------------------------------------------------------------------------
------------------------------

 

 

Cheers,

Jamie

 

From: Liz Cardona [mailto:lcard...@buzz-media.com] 
Sent: Thursday, January 06, 2011 1:54 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Check_load

 

Hello, I am wondering if someone had an idea regarding the question
below?

Thanks,


On 1/5/11 10:07 AM, "Liz Cardona" <lcard...@buzz-media.com> wrote:

Hello,

Ive been using nagios for quite sometime now and would like to enhance
the way I do check_load.
According to you documentation, when using the plugin check_load I can
use a "-r" option and it will give me the load average based on
processes/number of cpus core. I cannot find a documentation explaining
how nagios is doing this? I.e how is it checking the number of cpus.
I've turned on debugging mode with no succes.
I'm wondering if you can please put me in the correct direction or
documentations of how to understand this in depth.

Thank you very much,
Liz Cardona
l...@buzz-media.com
323 459 2833

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to