[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] hobbit monitoring summary report



My explanation for the differences below is that hobbitdboard
is reporting inactive clients as well as active, while A and B
look at only active rrd files (recent changed date).
 
What do you think?  Is there another rrd, beside vmstat.rrd, that is good for checking
CPU?

PS: I'm using the unix comm command:
C = comm -2 -3 A B | wc -l
F = comm -2 -3 D E | wc -l 

A = all active tcp.conn.rrd  (229)
B = all active vmstat.rrd    (150)
C = A - (those in both A and B) - (those in B only)
------- Hobbit summary: -------
B.  clients reporting data:  150
C.   client-less,ping-only:  83 
D = hobbitdboard test=conn
E = hobbitdboard test=cpu
F = D - (those in both D and E) - (those in E only)
D.    229
E.    164  # should be same as B
F.     69  # should be same as C

--- On Fri, 8/21/09, ye-fee liang <yf.liang (at) yahoo.ca> wrote:

From: ye-fee liang <yf.liang (at) yahoo.ca>
Subject: Re: hobbit monitoring summary report
To: hobbit (at) hswn.dk
Received: Friday, August 21, 2009, 10:30 AM

Thank you for the prompt reply.  Is it possible to distinguish between "Active" clients
those that are promptly responding to tests (say, pings), those that are currently
sending data (say, CPU), and those have not been responding and sending
(maybe the users dispose/shut down the servers without informing to update Hobbit).
My definition of "Active" is if it responds or sends data in the last hour.

RE: [hobbit] hobbit monitoring summary report
--------------------------------------------------------------------------------
To: <hobbit (at) hswn.dk> 
Subject: RE: [hobbit] hobbit monitoring summary report 
From: Torsten Richter <bb4 (at) richter-it.net> 
Date: Fri, 21 Aug 2009 09:34:37 +0200 
--------------------------------------------------------------------------------
Hello,
well you could do a 
ALLCLIENTS=`$HOBBITSERVERHOME/bin/bb 127.0.0.1 "hobbitdboard"|awk -F\| '{print $1}'|sort -u|wc -l` 
to get all clients that actually report to your server.
As second step do a INSTCLIENTS=`$HOBBITSERVERHOME/bin/bb 127.0.0.1 "hobbitdboard test=cpu"|awk -F\| '{print $1}'|sort -u|wc -l` 
to get all clients that have client installed monitoring. I assume if a client is installed then it also reports a cpu status.
Finally do CLIENTLESS=$((ALLCLIENTS-INSTCLIENTS)).
However, clients polled via SNMP are also show the cpu status but have no client installed.
But I hope to have helped you a bit.
Cheers
Torsten 



      __________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com