Xymon Mailing List Archive search

Feature request: bbgen to generate statistic of different OS and their versions.

list Henrik Størner
Fri, 18 Aug 2006 07:46:07 +0200
Message-Id: <user-ce42ba9f109b@xymon.invalid>

On Thu, Aug 17, 2006 at 08:37:34PM -0500, T.J. Yang wrote:
It is good to see bbgen can count the total hosts being monitored like 
following
http://www.hswn.dk/hobbit-cgi/bb-hostsvc.sh?HOST=voodoo.hswn.dk&SERVICE=bbgen

Is it possible also list out what kind of OS and versions to make up the 
total hosts ?
A very quick summary can be made with

    bb 127.0.0.1 "hobbitdboard test=cpu fields=BBH_OS"|sort |uniq -c

That gives you a summary of what OS your hobbit client enabled systems
are running. For a more detailed breakdown of the versions you'd have to
request each of the client logs with

   bb 127.0.0.1 "clientlog client1.hswn.dk section=osversion"

and then do some summation over that data.


Regards,
Henrik