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

RE: [hobbit] hobbit monitoring summary report



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
Â
Hi,
ÂÂÂ Is there better way of reporting this?

ÂÂÂ Purpose:Â to report how many active client and 
ÂÂÂÂÂÂÂÂÂÂÂÂÂ client-lessÂmonitoring areÂdone by hobbit.

ÂÂÂ My method:
ÂÂÂ 1. for client installed monitoring, countÂthe number ofÂ
ÂÂÂÂÂÂÂ/home/hobbit/data/rrd/*/vmstat.rrd that are recent
ÂÂÂÂÂÂ (ie. newer than a date file created earlier, say 5am)

ÂÂÂ 2. for client-less monitoring, count the number ofÂ
ÂÂÂÂÂÂ latest /home/hobbit/data/histlogs/*/conn/ or
ÂÂÂÂÂÂÂ/home/hobbit/data/histlogs/*/http/ (if both exist,
ÂÂÂÂÂÂ then count only one) that are recent (see def. above).
ÂÂÂÂÂÂÂ(some clients may not be pingable; multiple web pages
ÂÂÂÂÂÂ on the same server should be counted only once).

Thanks,
ÂÂÂÂÂÂ 
Make your browsing faster, safer, and easier with the new Internet Explorer 8. Optimized for Yahoo! Get it Now for Free!